Repository navigation
fix: retry the CLI installer download - #261
Merged
Merged
Conversation
not-matthias
reviewed
Dec 1, 2026
not-matthias
left a comment
Member
There was a problem hiding this comment.
Looks good, I'll let @adriencaccia accept
adriencaccia
reviewed
Dec 1, 2026
adriencaccia
left a comment
Member
There was a problem hiding this comment.
@fargito seen together, let's simplify and only have a retry on all errors, with an explicit error message when they all fail. And drop the test
Member
Author
|
updated |
adriencaccia
approved these changes
Dec 1, 2026
GitHub Releases can redirect to a signed link that has already expired, and that link answers HTTP 618, which `curl --retry` does not retry. One such answer failed the whole job before any benchmark ran. Download the installer with `curl --retry 5 --retry-all-errors`: each retry starts again from codspeed.io, so github.com issues a fresh link. `latest` and prereleases are now downloaded the same way instead of being piped into bash, since curl can send duplicate data down a pipe when it retries. Once the retries run out, the error says the installer is hosted on GitHub Releases. Refs COD-4520
check-installer-hashes failed 3 of its 72 downloads once on this PR, then passed on a rerun: GitHub Releases fails transiently. Refs COD-4520
fargito
force-pushed
the
cod-4520-retry-installer-downloads
branch
from
December 1, 2026 15:23
d1aea3e to
fa55c2f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Releases sometimes answers HTTP 618 for an expired signed link (root cause). The installer download hit one in Ruff's CI, which failed before any benchmark ran.
The installer is now downloaded with
curl --retry 5 --retry-all-errors, since plain--retrydoesn't retry 618. Each retry starts again from codspeed.io, so GitHub issues a fresh link.latestand prereleases are downloaded the same way instead of being piped intobash: curl can send duplicate data down a pipe when it retries. When all 6 attempts fail:--retry-all-errorsneeds curl 7.71 (2020): no CodSpeed upload in the last 28 days came from an older system.scripts/check-hashes.shretries the same way.The installer then downloads the CLI archive from GitHub Releases. Installers from the next CLI release retry that download too (CodSpeedHQ/codspeed#640).
Builds on #260: 5 retries instead of 2,
latestand prereleases covered, and an error that points to GitHub.Checked against a local fake of GitHub: one expired link, and a 504 then an expired link for
latest, both installed. Six expired links failed after 31 s with the error above.Refs COD-4520