Repository navigation
Retry the copa and oras release downloads - #271
Closed
berfinyuksel wants to merge 1 commit into
Closed
berfinyuksel wants to merge 1 commit into
berfinyuksel wants to merge 1 commit into
Conversation
In the scheduled release on 2026-11-25 three build jobs failed in "Install Copa": github.com answered 503 to a plain `curl -fsSL`, while other jobs fetched the same file seconds earlier and later. Run the copa downloads (release.yml) and the oras downloads (install-oras.sh) through the existing with-retry.sh (3 attempts, 10s then 20s backoff). The checksum check is unchanged, and a download that still fails after the retries fails the step as before. Tests: install-oras.sh retries a download that fails once and still installs; a download that always fails is attempted three times and fails. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported, and the changes include regression coverage for retry recovery, checksum verification, installation behavior, and permanent download failures.
No open issues 🎉
What changed in this PR
This pull request hardens release artifact downloads against transient GitHub failures by applying the existing retry wrapper to Copa and ORAS downloads while preserving checksum verification and failure behavior.
Changes:
- Wraps Copa archive and checksum downloads in
release.ymlwithwith-retry.sh. - Wraps ORAS archive and checksum downloads in
install-oras.shusing a script-relative helper path. - Adds test stubs and regression coverage for transient and permanent download failures.
| File | Description |
|---|---|
| .github/workflows/release.yml | Retries Copa release archive and checksum downloads. |
| .github/scripts/tests/stubs/sudo | Provides a test stub that records installation calls without modifying the system. |
| .github/scripts/tests/stubs/curl | Simulates successful, transient, and permanent curl download failures. |
| .github/scripts/tests/run.sh | Tests retry recovery, checksum verification, installation behavior, and permanent download failures. |
| .github/scripts/install-oras.sh | Retries ORAS archive and checksum downloads using the sibling retry helper. |
Review effort: Lite
Contributor
Author
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Follow-up to #269 and #270: the next flaky network call in the release run.
Problem
In the scheduled release run on 2026-11-25, three of the 16 build jobs failed in "Install Copa". A plain
curl -fsSLof the copa release from github.com got503at 02:44:37, 02:44:38 and 02:46:10 UTC, while other jobs of the same run downloaded the same file fine at 02:45:02 and 02:45:49. So the errors were sporadic, and one more try would very likely have worked.Run: https://github.com/pimcore/docker/actions/runs/45533837822 (attempt 1)
Copa is installed after the plain images are pushed, so no image was lost through this. But each of these jobs ended red, its hardened scan and gate did not run, and the run had to be re-run by hand.
Change
Run the release downloads through the existing
with-retry.sh(3 attempts, 10 s then 20 s backoff):release.ymlinstall-oras.sh(same kind of download from github.com, used by the build jobs and byprocess-tags)The checksum verification is unchanged. A download that still fails after the retries fails the step exactly as before.
Verification
.github/scripts/tests/run.shpasses locally (211 assertions). New:install-oras.shretries a download that fails once and still verifies and installs; a download that always fails is attempted three times and fails with curl's exit code. These failed before the change.curlthrough the wrapper against a local server:503once then200gives exit 0 after one retry;503every time gives exit 22 after three attempts.actionlint1.7.7 passes locally.Not covered by this PR's checks: the "Install Copa" step itself only runs in release runs.
Not in this PR
The fourth failed job of that run broke inside the image build: the imagick build could not download a tarball from github.com ("Connection died"), and that job's missing arch is why 40
php8.2/ v3.8 tags were skipped. A retry there means changing thedocker buildline, which #267 also changes, so that is left for a separate decision.🤖 Generated with Claude Code