Skip to content

feat(code-mappings): Support using abs_path when applying code mappings#62768

Merged
malwilley merged 2 commits intomasterfrom
malwilley/fix/code-mappings-abs-path
Jan 17, 2024
Merged

feat(code-mappings): Support using abs_path when applying code mappings#62768
malwilley merged 2 commits intomasterfrom
malwilley/fix/code-mappings-abs-path

Conversation

@malwilley
Copy link
Member

@malwilley malwilley commented Jan 8, 2024

Fixes #61730
Fixes #43516

Followup to #63128 which added convert_stacktrace_frame_path_to_source_path().

  • Converts stacktrace-link endpoint to use convert_stacktrace_frame_path_to_source_path()
  • Converts suspect commits to use convert_stacktrace_frame_path_to_source_path()

Importantly, this will allow users to set up code mappings which reference the abs_path instead of just filename.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 8, 2024
@bruno-garcia
Copy link
Member

woo thanks!!

@codecov
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (26dda1d) 81.34% compared to head (a02bd73) 81.34%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #62768      +/-   ##
==========================================
- Coverage   81.34%   81.34%   -0.01%     
==========================================
  Files        5207     5207              
  Lines      231053   231006      -47     
  Branches    39925    39914      -11     
==========================================
- Hits       187948   187908      -40     
+ Misses      37332    37327       -5     
+ Partials     5773     5771       -2     
Files Coverage Δ
...rc/sentry/api/endpoints/project_stacktrace_link.py 90.21% <ø> (-0.11%) ⬇️
src/sentry/integrations/utils/stacktrace_link.py 89.06% <100.00%> (-2.43%) ⬇️
src/sentry/ownership/grammar.py 96.05% <ø> (-0.06%) ⬇️
src/sentry/tasks/commit_context.py 89.32% <ø> (ø)
src/sentry/integrations/utils/commit_context.py 82.14% <83.33%> (-1.41%) ⬇️

... and 11 files with indirect coverage changes

@malwilley malwilley force-pushed the malwilley/fix/code-mappings-abs-path branch from 0680ff4 to 3cc4989 Compare January 12, 2024 19:59
@malwilley malwilley marked this pull request as ready for review January 12, 2024 20:46
@malwilley malwilley requested review from a team as code owners January 12, 2024 20:46
@malwilley malwilley requested review from armenzg and removed request for a team January 12, 2024 20:46
Copy link
Member

@wedamija wedamija left a comment

Choose a reason for hiding this comment

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

Looks good to me, looks a lot cleaner too

Copy link
Member

@armenzg armenzg left a comment

Choose a reason for hiding this comment

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

@malwilley so grateful for these fixes 🎉 A lot of spaghetti code that needed attention.

@malwilley malwilley merged commit 867de55 into master Jan 17, 2024
@malwilley malwilley deleted the malwilley/fix/code-mappings-abs-path branch January 17, 2024 21:01
trillville pushed a commit that referenced this pull request Jan 19, 2024
…gs (#62768)

Fixes #61730
Fixes #43516

- Converts stacktrace-link endpoint to use
`convert_stacktrace_frame_path_to_source_path()`
- Converts suspect commits to use
`convert_stacktrace_frame_path_to_source_path()`

Importantly, this will allow users to set up code mappings which
reference the `abs_path` instead of just `filename`.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
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.

Stack Trace Link doesn't work even with mapping GitHub Code Mappings don't work for my iOS/tvOS Project

4 participants