Skip to content

CI: prefer unauthenticated release downloads with auth fallback - #4766

Merged
reaperhulk merged 2 commits into
mainfrom
ci/public-download-first
Nov 8, 2026
Merged

reaperhulk merged 2 commits into
mainfrom
ci/public-download-first

Conversation

@reaperhulk

@reaperhulk reaperhulk commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Release downloads now try the public URL first, even when GH_TOKEN is available, with five-second socket timeouts and up to five attempts for transient failures (2, 4, 8, 16 second backoff). If public downloads fail, fall back to the authenticated API with the same retry policy. Tokens remain restricted to the API and are not forwarded on redirects.

The code comment explains that we have seen unauthenticated endpoints fail while authenticated endpoints work, but want to avoid using up our rate limits.

Based on main after #4765 merged (7e2c0ba). Metrics upload already ignores failures on main, so no workflow change is needed.

Validation: all steps from the Static checks job passed, including the full Python unit suite; 13 focused downloader tests also passed. No Lean, Rust, or generated artifact changes.

@reaperhulk
reaperhulk added this pull request to the merge queue Nov 8, 2026
Merged via the queue into main with commit c2bece0 Nov 8, 2026
20 of 21 checks passed
@reaperhulk
reaperhulk deleted the ci/public-download-first branch November 8, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant