Repository navigation
Retry multi-arch manifest creation on transient registry errors - #269
Merged
Merged
Conversation
merge-manifests.sh called `docker buildx imagetools create` once per tag. A few seconds of 500/503 from ghcr.io during the scheduled release on 2026-11-20 therefore left four tags unpublished and failed the job. Wrap the call in the existing with-retry.sh (3 attempts, 10s then 20s backoff). A tag that still fails after the retries is reported and fails the job as before. Tests: a create call that fails once is retried and succeeds; a call that always fails is attempted three times and still fails the run. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified, and the supplied evidence indicates the retry behavior and exhaustion handling are covered by regression tests.
No open issues 🎉
What changed in this PR
This pull request makes multi-architecture manifest publication resilient to transient registry failures by applying the existing retry helper to each docker buildx imagetools create invocation while preserving failure behavior after retries are exhausted.
Changes:
- Wraps manifest creation with the existing retry helper.
- Extends the Docker stub to simulate transient and persistent failures.
- Adds regression tests for retry success and exhaustion.
| File | Description |
|---|---|
| .github/scripts/tests/stubs/docker | Adds support for simulating transient and persistent imagetools create failures. |
| .github/scripts/tests/run.sh | Adds tests covering successful retries and failure after the retry limit. |
| .github/scripts/merge-manifests.sh | Retries multi-architecture manifest creation before reporting failure. |
Review effort: Lite
bluvulture
approved these changes
Nov 20, 2026
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.
Problem
The scheduled release run on 2026-11-20 failed in
process-tags: ghcr.io answered 500/503 for a few seconds while the multi-arch manifests were being published. Four GHCR tags were not updated (one was missing, three stayed on the previous build). All image builds and the other 236 manifests were fine.Run: https://github.com/pimcore/docker/actions/runs/44661512846
merge-manifests.shcallsdocker buildx imagetools createonce per tag with no retry, so one transient registry error fails that tag and the job.Change
Wrap the call in the existing
with-retry.sh(3 attempts, 10 s then 20 s backoff), the same helper already used for the Trivy calls. A tag that still fails after the retries is reported and fails the job exactly as before.Tests
.github/scripts/tests/run.shpasses locally (205 assertions). New:Both new checks failed before the change. Not covered: a real registry outage. Locally this was checked with the stubbed
dockerand with a--dry-runthrough the wrapper against ghcr.io.Trade-off
During a long registry outage every failing tag now waits 30 s in total before giving up, so the job fails later than today (an hour or more with about 120 tags per registry) instead of after about 20 minutes.
🤖 Generated with Claude Code