Skip to content

Retry transient GitHub API fetch failures#106

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

Retry transient GitHub API fetch failures#106
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sentry-error-investigation-c328

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 13, 2026

Summary

  • Add bounded retries and a timeout for transient GitHub metadata fetch failures (SSLError, connection errors, timeouts)
  • Preserve existing HTTP status failure behavior
  • Add tests covering retry success and retry exhaustion

Validation

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

Fixes SENTRY-GITHUB-ACTIONS-APP-7B

Open in Web View Automation 

Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>
Comment thread src/github_sdk.py
Comment on lines +57 to +61
req = requests.get(
url,
headers=headers,
timeout=GITHUB_REQUEST_TIMEOUT,
)
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.

2 participants