Skip to content

Handle transient Sentry ingest envelope failures in webhook flow#95

Draft
cursor[bot] wants to merge 2 commits intomainfrom
cursor/high-impact-sentry-errors-ffae
Draft

Handle transient Sentry ingest envelope failures in webhook flow#95
cursor[bot] wants to merge 2 commits intomainfrom
cursor/high-impact-sentry-errors-ffae

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented Apr 23, 2026

Summary

  • Catch request-layer failures when posting envelopes in GithubClient.send_trace() and raise a typed SentryEnvelopeSendError
  • Handle SentryEnvelopeSendError in WebAppHandler.handle_event() so transient Sentry ingest SSL/network issues do not fail webhook processing
  • Fix PAT fallback branch to use self.config.gh.token when fetching org DSN (previously referenced undefined token)
  • Add regression tests for wrapped ingest failures and non-fatal webhook behavior

Validation

  • Ran python3 -m pytest
  • Result: 21 passed, 1 skipped

Context

Addresses investigation for Sentry issue: https://sentry.sentry.io/issues/6471729383/ (SENTRY-GITHUB-ACTIONS-APP-4E).

Open in Web View Automation 

cursoragent and others added 2 commits April 23, 2026 20:53
Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>
Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant