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

chore(derived_code_mappings): Report known issues as non-errors #76616

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

armenzg
Copy link
Member

@armenzg armenzg commented Aug 27, 2024

This reports the exceptions as warning-level errors rather than error-level.

Deployments do not get paused if the error is warning or lower:

--additional-query="issue.type:error !level:info !level:warning"

Rendering of a warning-level exception:
image

PS: This is a redo of #76212 but without passing a level, thus, making it an info-level message.

This reports the exceptions as warning-level errors rather than
error-level.

Deployments do not get paused if the error is [warning or
lower](https://github.com/getsentry/getsentry/blob/b08907d9da3e8856c6cbedbd86d4a722c6f89dd9/gocd/templates/bash/backend/check-sentry-new-errors.sh#L12):
```
--additional-query="issue.type:error !level:info !level:warning"
```

Rendering of a warning-level exception:
<img width="265" alt="image"
src="https://github.com/user-attachments/assets/cd630c9b-9ac7-4894-aa33-736789c17c0b">
@armenzg armenzg self-assigned this Aug 27, 2024
@armenzg armenzg requested review from a team as code owners August 27, 2024 18:44
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 27, 2024
@@ -427,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
logger.error("Continuing execution. Investigate: %s", error_message, extra=extra)
capture_message("Continuing execution. Investigate: %s", error_message, extra=extra)
Copy link
Member Author

Choose a reason for hiding this comment

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

In the original PR it used to be this:
image

I'm removing level="warning" since it is not accepted.

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line 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 75.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #76616   +/-   ##
=======================================
  Coverage   78.16%   78.17%           
=======================================
  Files        6901     6902    +1     
  Lines      307014   306988   -26     
  Branches    52875    52848   -27     
=======================================
+ Hits       239987   239991    +4     
+ Misses      60608    60597   -11     
+ Partials     6419     6400   -19     

@armenzg armenzg requested a review from a team August 28, 2024 18:49
@armenzg armenzg merged commit 897c1ab into master Aug 29, 2024
50 of 51 checks passed
@armenzg armenzg deleted the feat/lower-logging-level/armenzg branch August 29, 2024 12:26
Copy link

sentry-io bot commented Aug 29, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Scope.update_from_kwargs() got an unexpected keyword argument 'extra' sentry.tasks.derive_code_mappings.derive_code_m... View Issue
  • ‼️ TypeError: Scope.update_from_kwargs() got an unexpected keyword argument 'extra' sentry.tasks.derive_code_mappings.derive_code_m... View Issue

Did you find this useful? React with a 👍 or 👎

armenzg added a commit that referenced this pull request Aug 29, 2024
armenzg added a commit that referenced this pull request Aug 29, 2024
@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