Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sdk-crash-detection): Set in app for SDK frames #52083

Merged
merged 6 commits into from
Jul 3, 2023

Conversation

philipphofmann
Copy link
Member

Set in_app to true only for SDK frames and to false for all others.

Closes #51024

Set in_app to true only for SDK frames and to false for all others.

Closes #51024
@philipphofmann philipphofmann requested a review from a team July 3, 2023 09:39
@philipphofmann philipphofmann self-assigned this Jul 3, 2023
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 3, 2023
@codecov
Copy link

codecov bot commented Jul 3, 2023

Codecov Report

Merging #52083 (e603d6a) into master (a1c2d96) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #52083      +/-   ##
==========================================
- Coverage   79.31%   79.31%   -0.01%     
==========================================
  Files        4901     4901              
  Lines      205062   205066       +4     
  Branches    35054    35055       +1     
==========================================
- Hits       162652   162647       -5     
- Misses      37451    37457       +6     
- Partials     4959     4962       +3     
Impacted Files Coverage Δ
src/sentry/utils/sdk_crashes/event_stripper.py 85.71% <100.00%> (+1.09%) ⬆️

... and 5 files with indirect coverage changes

cocoa_sdk_frame = stripped_frames[-1]
assert cocoa_sdk_frame == {
"function": "SentryCrashMonitor_CPPException.cpp",
"package": "/private/var/containers/Bundle/Application/59E988EF-46DB-4C75-8E08-10C27DC3E90E/iOS-Swift.app/Frameworks/Sentry.framework/Sentry",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does the UUID(?) after /Application/ refer to? May this UUID become a flaky test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UUID is generated from iOS. It's the sandbox for every iOS app, and every app has a different UUID / sandbox folder. I just copied the path from one of the installations of our Cocoa sample app.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you think the UUID could lead to a flaky test, @iker-barriocanal?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good in that case, I didn't know where the UUID was coming from.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for asking 🙏, @iker-barriocanal.

@philipphofmann philipphofmann merged commit 2c768b6 into master Jul 3, 2023
@philipphofmann philipphofmann deleted the feat/sdk-crash-detection-set-in-app branch July 3, 2023 14:06
@github-actions github-actions bot locked and limited conversation to collaborators Jul 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SDK Crash Detection: Set in app
2 participants