Skip to content

ref(commits): Remove "Unable to Fetch Commits" email#113445

Merged
leeandher merged 3 commits intomasterfrom
leander/rm-commit-email
Apr 21, 2026
Merged

ref(commits): Remove "Unable to Fetch Commits" email#113445
leeandher merged 3 commits intomasterfrom
leander/rm-commit-email

Conversation

@leeandher
Copy link
Copy Markdown
Member

retires the "unable to fetch commits" email and locks the identity email's subject to "action required".

Delete the "Unable to Fetch Commits" email templates, debug view,
fixture, and the task code that sent it on fetch failures. The
colocated identity-invalid email stays but its subject is now
hardcoded to "Action Required", so the commit_failure flag and its
template branch are dead code and have been removed as well. Also
drops the now-unused get_emails_for_user_or_org helper and the
release param on fetch_commits_for_ref_with_lifecycle.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 20, 2026
)
emails = get_emails_for_user_or_org(user, release.organization_id)
msg.send_async(to=emails)
lifecycle.record_failure(e)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

does this capture a Sentry event, or some metric at least?

we need to monitor this somehow

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@bruno-garcia lifecycle.record_failure(e) will emit a metric and create a sentry error, so nothing is dropped. The other path with record_halt(e) just does the metric, which is also sufficient 👍

@leeandher leeandher marked this pull request as ready for review April 20, 2026 16:39
@leeandher leeandher requested review from a team as code owners April 20, 2026 16:39
@leeandher leeandher requested a review from a team April 20, 2026 19:16
Copy link
Copy Markdown
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.

Good stuff. Thanks @leeandher

Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit be48985. Configure here.

Comment thread src/sentry/tasks/commits.py Outdated
@leeandher leeandher merged commit dcd5c6c into master Apr 21, 2026
56 checks passed
@leeandher leeandher deleted the leander/rm-commit-email branch April 21, 2026 15:04
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.

4 participants