Skip to content

Retry transient GitHub metadata fetch failures#105

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

Retry transient GitHub metadata fetch failures#105
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sentry-error-investigation-2f8e

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 13, 2026

Summary

  • Add a timeout and bounded retries for transient GitHub API transport failures in GithubClient._fetch_github
  • Retry only SSLError, ConnectionError, and Timeout; preserve existing non-retry behavior for GitHub HTTP status errors
  • Add focused tests for retry success and retry exhaustion

Sentry

Fixes SENTRY-GITHUB-ACTIONS-APP-7B
https://sentry.sentry.io/issues/7479337323/

Validation

  • .venv/bin/python -m pytest tests/test_github_sdk.py
  • .venv/bin/python -m pytest
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_API_TIMEOUT_SECONDS,
)
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