Skip to content

fix(issue-summary): Catch automation errors #93674

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

Merged
merged 8 commits into from
Jun 17, 2025

Conversation

kddubey
Copy link
Contributor

@kddubey kddubey commented Jun 17, 2025

rn issue summary hard-fails and the generated summary isn't returned if _run_automation fails for whatever reason, e.g., get_autofix_state fails b/c of seer DB flake. this PR changes behavior to log the exception instead. also including a few style changes—can follow along in each commit

@kddubey kddubey requested a review from roaga June 17, 2025 00:48
@kddubey kddubey requested a review from a team as a code owner June 17, 2025 00:48
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 17, 2025
Comment on lines +298 to +300
raise ValueError("Issue summary scores is None or empty.")
if issue_summary.scores.fixability_score is None:
return
raise ValueError("Issue summary fixability score is None.")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

changing to ValueError b/c there isn't a good reason for these to not be populated

Copy link

codecov bot commented Jun 17, 2025

Codecov Report

Attention: Patch coverage is 85.71429% with 6 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/seer/issue_summary.py 71.42% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #93674      +/-   ##
==========================================
+ Coverage   88.02%   88.04%   +0.02%     
==========================================
  Files       10328    10326       -2     
  Lines      596011   595870     -141     
  Branches    23155    23127      -28     
==========================================
- Hits       524640   524639       -1     
+ Misses      70878    70738     -140     
  Partials      493      493              

@kddubey kddubey enabled auto-merge (squash) June 17, 2025 17:42
@kddubey kddubey merged commit 0160194 into master Jun 17, 2025
64 checks passed
@kddubey kddubey deleted the kddubey/seer/catch-automation-failures branch June 17, 2025 17:50
Copy link

sentry-io bot commented Jun 17, 2025

Suspect Issues

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

  • ‼️ ReadTimeout: HTTPConnectionPool(host='seer-web-severity', port=80): Read timed out. (read timeout=0.6) /api/0/organizations/{organization_id_or_slug}/... View Issue
  • ‼️ ReadTimeout: HTTPConnectionPool(host='seer-web-severity', port=80): Read timed out. (read timeout=0.6) sentry.tasks.activity.send_activity_notifications View Issue

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

andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
rn issue summary hard-fails and the generated summary isn't returned if
`_run_automation` fails for whatever reason, e.g., `get_autofix_state`
fails b/c of seer DB flake. this PR changes behavior to log the
exception instead. also including a few style changes—can follow along
in each commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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