Skip to content

Retry multi-arch manifest creation on transient registry errors - #269

Merged
berfinyuksel merged 1 commit into
5.xfrom
fix/retry-manifest-merge
Nov 23, 2026
Merged

berfinyuksel merged 1 commit into
5.xfrom
fix/retry-manifest-merge

Conversation

@berfinyuksel

Copy link
Copy Markdown
Contributor

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.sh calls docker buildx imagetools create once 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.sh passes locally (205 assertions). New:

  • a create call that fails once is retried and the run exits 0
  • a create call that always fails is attempted 3 times, then the run fails as before

Both new checks failed before the change. Not covered: a real registry outage. Locally this was checked with the stubbed docker and with a --dry-run through 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

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>
@berfinyuksel berfinyuksel added the Skip Milestone Check Exempts this PR from the mandatory milestone requirement label Nov 20, 2026
Copilot AI lite review requested due to automatic review settings November 20, 2026 11:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@berfinyuksel
berfinyuksel merged commit ba37660 into 5.x Nov 23, 2026
9 of 10 checks passed
@berfinyuksel
berfinyuksel deleted the fix/retry-manifest-merge branch November 23, 2026 13:47
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Skip Milestone Check Exempts this PR from the mandatory milestone requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants