Skip to content

Retry transient GitHub App token requests#109

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sentry-error-investigation-d8f9
Draft

Retry transient GitHub App token requests#109
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sentry-error-investigation-d8f9

Conversation

@cursor

@cursor cursor Bot commented May 21, 2026

Copy link
Copy Markdown

Summary

  • Add a shared GitHub App API request helper with an explicit timeout and bounded retries for transient network failures.
  • Use the helper when creating and revoking installation access tokens.
  • Add focused tests for retrying a token creation ConnectTimeout and for not retrying HTTP status failures.

Validation

  • .venv/bin/python -m pytest tests/test_github_app.py
  • .venv/bin/python -m pytest

Sentry

  • Addresses SENTRY-GITHUB-ACTIONS-APP-6P (ConnectTimeout while POSTing to GitHub installation access token endpoint).
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