-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ref(auto_source_config): Support multiple code mappings asserted #87915
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
ref(auto_source_config): Support multiple code mappings asserted #87915
Conversation
Instead of expecting that only one could be created.
tests/sentry/issues/auto_source_code_config/test_process_event.py
Outdated
Show resolved
Hide resolved
| self, | ||
| filename: str | None = None, | ||
| in_app: bool | None = True, | ||
| module: str | None = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Java tests were not taking advantage of this helper function.
| frame["in_app"] = in_app | ||
| return frame | ||
|
|
||
| def code_mapping( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| repo_trees={REPO1: [file_in_repo]}, | ||
| frames=[self.frame(frame_filename, True)], | ||
| platform=platform, | ||
| expected_new_code_mapping={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From here forward, we're swapping to use self.frame and self.code_mapping.
MichaelSun48
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice reduction in LOC!

This change enables tests to assert that multiple code mappings are created rather than just one.
This also adds:
code_mappingfunctionframehelper