Skip to content

Retry transient GitHub API timeouts#111

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

Retry transient GitHub API timeouts#111
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sentry-error-investigation-b987

Conversation

@cursor

@cursor cursor Bot commented May 21, 2026

Copy link
Copy Markdown

Summary

  • Add explicit timeout to GitHub API metadata fetches
  • Retry transient transport failures such as ConnectTimeout, ConnectionError, Timeout, and SSLError
  • Add regression coverage for retry success and retry exhaustion

Validation

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

Sentry

  • Addresses SENTRY-GITHUB-ACTIONS-APP-6S / issue 7293948378 (ConnectTimeout fetching GitHub Actions run metadata)
  • Note: the Sentry MCP server was unauthenticated in this automation run, so full event payloads could not be fetched; the fix is based on trigger metadata and matching code evidence.
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_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