Repository navigation
ci(linux): pull Docker Hub images through mirror.gcr.io instead of anonymously - #4606
Merged
Merged
Conversation
datlechin
enabled auto-merge (squash)
November 26, 2026 07:09
datlechin
disabled auto-merge
November 26, 2026 07:24
mirror.gcr.io documents only cached images. start_container now pulls through it and tags the Docker Hub name, as a daemon's registry-mirrors does, and leaves a miss to testcontainers.
datlechin
enabled auto-merge (squash)
November 26, 2026 07:27
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.
Summary
start_containerpulls each Docker Hub image through the registry named inTABLEPRO_TEST_DOCKER_HUB_MIRROR, then tags it with its Docker Hub name, the way a daemon'sregistry-mirrorsdoes. If the mirror pull fails, testcontainers pulls from Docker Hub as before. Images from other registries (SQL Server's MCR) skip the mirror.build-linux.ymlsets that variable tomirror.gcr.iofor every job.docker runimages inbuild-linux.yml,linux-packages.ymlandrelease-linux.ymlnow namemirror.gcr.io/library/ubuntuor.../fedora. These are official images, which the mirror keeps cached.build-deb.shtakes its image fromUBUNTU_IMAGE(defaultubuntu). Thedebjob sets it to the mirror.registry-mirrorssetting: a job container pulls its image before any step runs, and its tests reach a daemon no step can configure. Both rate-limit failures so far were in container jobs on AWS-hosted runners (runs 44753132425, 45738826351)..claude/rules/ci.md(Writing workflow and lint code) andlinux/docs/testing.md(Docker or Podman) document the rule and the variable.mirror.gcr.ioas on Docker Hub (HEAD probe, 2026-11-26). No secret is used.Test plan
New unit test:
a_mirror_stands_in_for_docker_hub_and_no_other_registry.New Docker test:
an_image_comes_through_the_mirror_under_its_docker_hub_name.Local Docker run with the mirror set. These pass: the pull-retry test, plus the PostgreSQL TLS, PgBouncer and OpenSSH fixture tests. Each image shows up under its Docker Hub name and its
mirror.gcr.ioname.Also passing: actionlint, zizmor, shellcheck, the CI tooling tests from
ci-lint.yml, andlinux/build-aux/tests.This PR's CI runs every Docker test job and the package jobs on the mirrored images.
CI on 3e44031: every Docker test job, Fast checks and the Fedora 45 RPM passed on the mirrored images. The Flatpak, Debian and Fedora 44 RPM jobs failed only on
account::step_up_tests::a_step_up_that_comes_back_after_an_earlier_sign_in_committed_is_revoked_not_adopted, which fails the same way on main (nightly 45883112027). test(core): let each step-up test permit release one sign-in page #4619 fixes that test.Every image tag the workflows name answers on
mirror.gcr.io(HEAD probe, 2026-11-27):ubuntu22.04, 24.04, 26.04, 26.10, resolute, stonking;fedora44, 45.Review: Codex, one round on the branch after merging main, no findings.