Skip to content

Handle GitHub App token connect timeouts safely#84

Draft
cursor[bot] wants to merge 1 commit intomainfrom
cursor/high-impact-sentry-errors-431e
Draft

Handle GitHub App token connect timeouts safely#84
cursor[bot] wants to merge 1 commit intomainfrom
cursor/high-impact-sentry-errors-431e

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented Apr 19, 2026

Summary

  • add explicit timeout handling when requesting/revoking GitHub App installation tokens
  • retry transient ConnectTimeout failures for token creation with bounded attempts and linear backoff
  • avoid cascading failures during token revoke by logging and continuing when revoke calls fail
  • add focused unit tests covering retry success, retry exhaustion, and revoke-failure behavior

Validation

  • python3 -m pytest -q

Sentry

  • Addresses issue SENTRY-GITHUB-ACTIONS-APP-6P (https://sentry.sentry.io/issues/7293946414/)
Open in Web View Automation 

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