Repository navigation
Retry buildx on transient registry/mirror errors in Docker server image job - #108986
Merged
alexey-milovidov merged 2 commits intoJul 1, 2026
Merged
Conversation
…ge job The `Docker server image` Master CI job runs each `docker buildx build` and `docker buildx imagetools create` command exactly once, so a brief Docker Hub (`registry-1.docker.io`) hiccup or an `apt-get` mirror blip fails the whole job. This was observed as HTTP `500 Internal Server Error` responses from Docker Hub both while resolving the `docker/buildkit-syft-scanner` helper image (pulled by `--sbom=true`) and while pushing image layer blobs: https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=36f0c2d95475aafa597cacebace14f5888908dcd&name_0=MasterCI&name_1=Docker%20server%20image Add `retries` plus a `retry_errors` allow-list of transient registry and package-mirror signatures to both `buildx` invocations in `build_and_push_image`, mirroring the existing retry-on-`manifest unknown` pattern in `ci/praktika/docker.py`. Matching is substring-based against stderr and only fires on these signatures, so a genuine build error still fails fast. This also covers the Keeper image job, which shares `build_and_push_image`. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [4918be1] Summary: ✅ AI ReviewSummaryThis PR broadens the retry allow-list for the Docker server/Keeper image Final VerdictStatus: ✅ Approve |
…r-image-registry-retries # Conflicts: # ci/jobs/docker_server.py
zeekay
pushed a commit
to hanzoai/datastore
that referenced
this pull request
Sep 11, 2026
…rver-image-registry-retries Retry buildx on transient registry/mirror errors in Docker server image job
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.
Closes: #104152
Related: #108969
The
Docker server image(andDocker keeper image) job runs eachdocker buildx buildanddocker buildx imagetools createcommand exactly once. As a result a brief Docker Hub (registry-1.docker.io) hiccup, or a transientapt-getmirror blip during the build, fails the entire Master CI job even though nothing in ClickHouse is broken.This was seen on master as HTTP
500 Internal Server Errorresponses from Docker Hub both while resolving thedocker/buildkit-syft-scannerhelper image (pulled by--sbom=true) and while pushing image layer blobs:https://s3.amazonaws.com/clickhouse-test-reports/json.html?REF=master&sha=36f0c2d95475aafa597cacebace14f5888908dcd&name_0=MasterCI&name_1=Docker%20server%20image
Both
buildxinvocations inbuild_and_push_imagepassretriesand aretry_errorsallow-list of transient registry and package-mirror signatures. Matching is substring-based against the command's stderr and only fires on these signatures, so a genuine build error still fails fast (it is not retried). The retries also cover the Keeper image job, which sharesbuild_and_push_image.While this was in review, #108969 landed the base retry mechanism on
master(theretrieswiring plus a smallerBUILDX_RETRY_ERRORSallow-list). This branch has been merged with it: the mechanism is now shared, and the remaining change here broadens that allow-list to also cover the Docker Hub HTTP5xx/429responses,unexpected EOF, and theapt-getmirror failures (Failed to fetch/Connection failed/Connection timed out) — the exact signatures from #104152 that the original list did not match.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
🤖 Generated with Claude Code
Version info
26.7.1.318(included in26.7and later)