Repository navigation
Conversation
The ct tarball and Sigstore bundle downloads use `--fail --retry 5`, but
plain `--retry` only retries timeouts and HTTP 408/429/500/502/503/504.
GitHub Releases has been intermittently answering with HTTP 618, which
fails the action on the first attempt:
curl: (22) The requested URL returned error: 618
ERROR: Unable to download chart-testing version: v3.15.0
Add `--retry-all-errors` so any failure is retried, and raise the delay
to 5s so the retries span more than a few seconds. This matches the
download flags used by helm/kind-action.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Timothée Bavelier <timothee.bavelier@datadoghq.com>
|
I got 618 myself on some projects. I think github is just having issues. |
Author
|
Agreed, most/a lot of projects have made PRs recently to tackle these errors from GitHub, it's quite widespread, so might as well be slightly more resilient to them I think |
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.
What
Add
--retry-all-errorsto the twocurldownloads inct.sh(the ct tarball and its Sigstore bundle), and raise--retry-delayfrom 1s to 5s.Why
Plain
--retryonly retries timeouts and HTTP 408/429/500/502/503/504. GitHub Releases has been intermittently returning HTTP 618. That status isn't in the list, so the action fails on the first attempt:With
--retry-all-errors, curl retries any failure up to the existing limit of 5 attempts.--failstays, so an error response is still never saved as the tarball, and signature verification is unchanged. These are the same download flagshelm/kind-actionuses (helm/kind-action#171). Other projects have hit the same 618 on GitHub release downloads, for example ai-dynamo/dynamo#19775.Testing
test_downloads_retry_all_errorstotests/ct_test.sh. Thecurlstub now logs its arguments, and the test asserts that every download passes--retry-all-errors. It fails against the currentct.shand passes with this change. All 19 tests pass andshellcheckis clean.curl: (22) ... 618. The new flags retry twice and succeed.🤖 Generated with Claude Code