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

fix(sdk-crash): Keep SDK frames based on filename #52242

Merged
merged 3 commits into from
Jul 5, 2023

Conversation

philipphofmann
Copy link
Member

Adding a test case with an anonymized real-world Cocoa SDK crash in the thread inspector surfaced a bug in the frame stripping logic. The event stripper removed SDK frames cause it applied the allow list before stripping the frames, which removed information required to detect whether a frame is an SDK frame. This PR fixes that problem by calling the frame stripping logic before applying the allow list.

Adding a test case with an anonymized real-world Cocoa SDK
crash in the thread inspector surfaced a bug in the frame stripping
logic. The event stripper removed SDK frames cause it applied the
allow list before stripping the frames, which removed information
required to detect whether a frame is an SDK frame. This PR fixes
that problem by calling the frame stripping logic before applying
the allow list.
@philipphofmann philipphofmann requested a review from a team July 5, 2023 07:13
@philipphofmann philipphofmann self-assigned this Jul 5, 2023
@philipphofmann philipphofmann added the Scope: Backend Automatically applied to PRs that change backend components label Jul 5, 2023
src/sentry/utils/sdk_crashes/event_stripper.py Outdated Show resolved Hide resolved
src/sentry/utils/sdk_crashes/event_stripper.py Outdated Show resolved Hide resolved
philipphofmann and others added 2 commits July 5, 2023 09:30
Co-authored-by: Iker Barriocanal <32816711+iker-barriocanal@users.noreply.github.com>
Co-authored-by: Iker Barriocanal <32816711+iker-barriocanal@users.noreply.github.com>
@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Merging #52242 (6ea0f24) into master (c16a237) will decrease coverage by 2.38%.
The diff coverage is 50.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #52242      +/-   ##
==========================================
- Coverage   79.31%   76.93%   -2.38%     
==========================================
  Files        4903     4903              
  Lines      205319   205321       +2     
  Branches    35102    35102              
==========================================
- Hits       162843   157959    -4884     
- Misses      37502    42275    +4773     
- Partials     4974     5087     +113     
Impacted Files Coverage Δ
src/sentry/utils/sdk_crashes/event_stripper.py 86.79% <50.00%> (+2.47%) ⬆️

... and 339 files with indirect coverage changes

@philipphofmann philipphofmann merged commit bb4a618 into master Jul 5, 2023
@philipphofmann philipphofmann deleted the fix/sdk-crash-frame-stripping branch July 5, 2023 07:59
@github-actions github-actions bot locked and limited conversation to collaborators Jul 20, 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.

2 participants