Skip to content

fix: retry chart-testing downloads on all errors - #243

Open
tbavelier wants to merge 1 commit into
helm:mainfrom
tbavelier:retry-all-errors
Open

tbavelier wants to merge 1 commit into
helm:mainfrom
tbavelier:retry-all-errors

Conversation

@tbavelier

Copy link
Copy Markdown

What

Add --retry-all-errors to the two curl downloads in ct.sh (the ct tarball and its Sigstore bundle), and raise --retry-delay from 1s to 5s.

Why

Plain --retry only 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:

Installing chart-testing v3.15.0...
curl: (22) The requested URL returned error: 618
ERROR: Unable to download chart-testing version: v3.15.0

With --retry-all-errors, curl retries any failure up to the existing limit of 5 attempts. --fail stays, so an error response is still never saved as the tarball, and signature verification is unchanged. These are the same download flags helm/kind-action uses (helm/kind-action#171). Other projects have hit the same 618 on GitHub release downloads, for example ai-dynamo/dynamo#19775.

Testing

  • Added test_downloads_retry_all_errors to tests/ct_test.sh. The curl stub now logs its arguments, and the test asserts that every download passes --retry-all-errors. It fails against the current ct.sh and passes with this change. All 19 tests pass and shellcheck is clean.
  • Checked by hand with real curl against a local server that returns 618 twice, then 200. The current flags fail immediately with curl: (22) ... 618. The new flags retry twice and succeed.

🤖 Generated with Claude Code

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>
@tymscar

tymscar commented Dec 1, 2026

Copy link
Copy Markdown

I got 618 myself on some projects. I think github is just having issues.

@tbavelier

Copy link
Copy Markdown
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants