Skip to content

Retry transient GitHub config fetch timeouts#113

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

Retry transient GitHub config fetch timeouts#113
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sentry-error-investigation-159b

Conversation

@cursor

@cursor cursor Bot commented May 21, 2026

Copy link
Copy Markdown

Summary

  • Add an explicit timeout and bounded retry for transient GitHub API failures while fetching .sentry/sentry_config.ini.
  • Cover ConnectTimeout retry success and retry exhaustion in tests/test_sentry_config_file.py.

Validation

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

Sentry issue: https://sentry.sentry.io/issues/7293946511/

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 +60 to +64
return requests.get(
api_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