Skip to content

Retry transient GitHub config fetch failures#97

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

Retry transient GitHub config fetch failures#97
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sentry-error-investigation-207d

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented Apr 29, 2026

Summary

  • Add an explicit timeout to the GitHub API request that fetches .sentry/sentry_config.ini
  • Retry transient requests.ConnectionError and timeout failures before surfacing the error
  • Cover the connection-reset retry path with a focused unit test

Validation

  • python3 -m pytest tests/test_sentry_config_file.py
  • python3 -m pytest

Fixes SENTRY-GITHUB-ACTIONS-APP-63

Open in Web View Automation 

Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>
Comment thread src/sentry_config.py
Comment on lines +27 to +31
return requests.get(
api_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