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: capture_message does not accept extra #76728

Merged
merged 2 commits into from
Aug 29, 2024
Merged

Conversation

armenzg
Copy link
Member

@armenzg armenzg commented Aug 29, 2024

Fixes issue introduced in #76616.

@armenzg armenzg requested review from a team as code owners August 29, 2024 14:42
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 29, 2024
@armenzg armenzg enabled auto-merge (squash) August 29, 2024 14:44
@armenzg armenzg self-assigned this Aug 29, 2024
@@ -428,7 +428,7 @@ def _populate_trees_process_error(self, error: ApiError, extra: dict[str, str])
else:
# We do not raise the exception so we can keep iterating through the repos.
# Nevertheless, investigate the error to determine if we should abort the processing
capture_message("Continuing execution. Investigate: %s", error_message, extra=extra)
capture_message("Continuing execution. Investigate: %s", error_message)
Copy link
Member

Choose a reason for hiding this comment

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

From the docs it looks it doesn't look like capture_message takes a second arg, You can probably swap it for an f-string here. Also could we add the extra back as context with sentry_sdk.set_context? In case it has something important.

@armenzg armenzg merged commit adb36de into master Aug 29, 2024
51 checks passed
@armenzg armenzg deleted the fix/capture_message/armenzg branch August 29, 2024 15:29
Copy link

codecov bot commented Aug 29, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/integrations/github/client.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #76728      +/-   ##
==========================================
- Coverage   78.15%   78.15%   -0.01%     
==========================================
  Files        6910     6910              
  Lines      307199   307200       +1     
  Branches    50356    50356              
==========================================
- Hits       240096   240095       -1     
- Misses      60751    60752       +1     
- Partials     6352     6353       +1     

@github-actions github-actions bot locked and limited conversation to collaborators Sep 14, 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.

2 participants