Repository navigation
[Fix][CI] Switch minio/minio test containers to the quay.io mirror - #12287
Conversation
Docker Hub's minio/minio repository no longer serves anonymous, unauthenticated pulls: `docker pull minio/minio:<any tag>` on a GitHub-hosted runner now fails with "pull access denied ... repository does not exist or may require 'docker login'" (confirmed independently: https://hub.docker.com/v2/repositories/minio/minio/ returns 404 for the public API). This breaks every S3-backed e2e test on every PR and on dev's own nightly build, across Databend, S3File, Hudi, Iceberg-S3, and Paimon. quay.io/minio/minio is MinIO's own registry and mirrors the same tags publicly (verified both RELEASE.2024-06-13T22-53-53Z and latest exist there). Switches the seven e2e test containers and one benchmark docker-compose service that reference minio/minio to the quay.io image, with a short comment above each explaining why. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
DanielLeens
left a comment
There was a problem hiding this comment.
What Problem Does This PR Solve?
Docker Hub stopped serving anonymous, unauthenticated pulls of minio/minio (the PR body confirms this independently: https://hub.docker.com/v2/repositories/minio/minio/ now 404s). On a GitHub-hosted runner with no Docker Hub login configured, every S3-backed e2e test that spins up a MinIO Testcontainer (docker pull minio/minio:<tag>) fails with pull access denied ... repository does not exist or may require 'docker login'. That breaks the Databend, S3File, Hudi (x2), Iceberg-S3, and Paimon-S3 e2e suites on every PR and on dev's own nightly build — a CI-infrastructure outage, not a product bug.
The author's approach: point the same eight minio/minio image references (seven e2e test containers + one benchmark docker-compose.yml service) at quay.io/minio/minio, which is MinIO's own registry and mirrors the exact same tags publicly, with a short comment above each explaining why.
One-sentence summary: swap the Docker Hub image repository for MinIO's own quay.io mirror, keeping every existing tag identical, to unblock S3-backed e2e CI.
1. Code Change Review
1.1 Core Logic Analysis
Before: new GenericContainer<>("minio/minio:latest"), new MinIOContainer("minio/minio:RELEASE.2024-06-13T22-53-53Z"), and the equivalent docker-compose.yml image: line, all pointing at Docker Hub.
After: the same eight sites, with only the registry host changed to quay.io/minio/minio — every tag (latest in the two Databend files, RELEASE.2024-06-13T22-53-53Z everywhere else) is preserved byte-for-byte. This is the correct fix direction: quay.io/minio/minio is MinIO's own first-party registry (documented by MinIO itself as the replacement after Docker Hub rate-limited/blocked anonymous minio pulls), not a third-party or untrusted mirror, and since no tag changes, there is no risk of silently picking up a different MinIO version.
However, four of the eight sites use org.testcontainers.containers.MinIOContainer rather than a plain GenericContainer:
seatunnel-e2e/seatunnel-connector-v2-e2e/connector-iceberg-s3-e2e/src/test/java/org/apache/seatunnel/e2e/connector/iceberg/s3/IcebergSourceIT.java:161seatunnel-e2e/seatunnel-connector-v2-e2e/connector-hudi-e2e/src/test/java/org/apache/seatunnel/e2e/connector/hudi/HudiSeatunnelS3MultiTableIT.java:81seatunnel-e2e/seatunnel-connector-v2-e2e/connector-hudi-e2e/src/test/java/org/apache/seatunnel/e2e/connector/hudi/HudiSparkS3MultiTableIT.java:81seatunnel-e2e/seatunnel-connector-v2-e2e/connector-paimon-e2e/src/test/java/org/apache/seatunnel/e2e/connector/paimon/PaimonWithS3IT.java:150
MinIOContainer's constructor validates the supplied DockerImageName against its own hardcoded default (minio/minio) and throws IllegalStateException unless the caller explicitly declares the substitute compatible via DockerImageName.parse(...).asCompatibleSubstituteFor("minio/minio"). Passing a bare String/DockerImageName that resolves to a different repository (quay.io/minio/minio) trips that check immediately, before any network pull is attempted. This is confirmed live on this PR's own fork CI run (see Section 1.3/4 below) — the four MinIOContainer sites now fail deterministically with exactly this error, while the four plain-GenericContainer sites (S3FileWithFilterIT, DatabendIT, DatabendCDCSinkIT, and the benchmark docker-compose.yml) are unaffected since GenericContainer does no such validation.
1.2 Compatibility Impact
Partially incompatible with itself. The four GenericContainer sites are a clean, safe, fully backward-compatible substitution. The four MinIOContainer sites are currently broken by this change (see below) — not because quay.io is a bad choice, but because the typed Testcontainers wrapper needs the substitution declared explicitly.
1.3 Performance / Side-Effect Analysis
This is CI/test-infrastructure only — no engine, API, checkpoint, or runtime-serialization code is touched, so there's no production-load, memory, or concurrency concern to evaluate at the "trillions of rows/day" bar. The only "side effect" that matters here is CI correctness itself, and on that axis this PR's own fork CI run demonstrates a regression:
Fork run https://github.com/davidzollo/seatunnel/actions/runs/34727061577 (head 93fdd1e):
Run / updated-modules-integration-test-part-3 (8, ubuntu-latest)— failure:IcebergSourceIT.startUp:160 » IllegalState Failed to verify that image 'quay.io/minio/minio:RELEASE.2024-06-13T22-53-53Z' is a compatible substitute for 'minio/minio'.Run / updated-modules-integration-test-part-3 (11, ubuntu-latest)— same failure.Run / updated-modules-integration-test-part-4 (8, ubuntu-latest)and(11, ubuntu-latest)— bothHudiSeatunnelS3MultiTableITandHudiSparkS3MultiTableITfail with the identicalIllegalStateException.
By source inspection, PaimonWithS3IT.java:150 uses the same new MinIOContainer(MINIO_DOCKER_IMAGE) pattern and will hit the identical check the moment its job (paimon-connector-it, still in_progress at the time of this review) reaches startUp().
1.4 Error Handling and Logging
No exceptions are swallowed; the comments added above each changed line are accurate and give a verifiable rationale (good practice). Nothing here leaks secrets or misuses log levels — this is purely an image-reference change.
2. Code Quality Assessment
2.1 Coding Standards
Clean, minimal, consistent diff — same comment wording repeated at each site, no unrelated formatting churn.
2.2 Test Coverage and Test Stability
No new tests are expected for a CI-infrastructure fix like this; the "test" is the e2e suite itself passing. Flaky-test stability rating for the touched files: High risk (currently: deterministic failure) for the four MinIOContainer sites listed above — this is not flakiness, it is a 100%-reproducible break introduced by this exact diff, confirmed by the PR's own CI run. Stable for the four GenericContainer sites.
2.3 Documentation Updates
seatunnel-cli/benchmark/README.md:124 documents the benchmark stack's MinIO image in a table: | MinIO (S3) | \minio/minio` | ... |. This PR updates the corresponding seatunnel-cli/benchmark/docker/docker-compose.ymlin the same folder toquay.io/minio/minio` but leaves this README line unchanged, so the doc and the compose file it describes are now out of sync. Low/Medium — worth a one-line fix while this PR already has the context loaded, but it's a description-only inconsistency, not a functional break.
3. Architectural Soundness
3.1 Elegance of the Solution
The overall idea — redirect to MinIO's own quay.io mirror, keep tags pinned — is the right, minimal fix for the Docker Hub anonymous-pull outage, and matches MinIO's own published guidance. No alternative overall approach is needed.
3.2 Maintainability
Good: the inline comments explain "why", which is exactly what's needed for a future reader wondering why the image differs from the well-known minio/minio name.
3.3 Extensibility
N/A — this is a fixed set of eight references, not a pattern other code will extend.
3.4 Historical-Version Compatibility
N/A — CI/test-container configuration only, no production-facing protocol, state, or upgrade path is touched.
4. Issue Summary
| # | Issue | Location | Severity |
|---|---|---|---|
| 1 | MinIOContainer validates the supplied image against its hardcoded default (minio/minio) and throws IllegalStateException for quay.io/minio/minio unless the substitution is declared via DockerImageName.parse(MINIO_DOCKER_IMAGE).asCompatibleSubstituteFor("minio/minio"). CI-confirmed failing now. |
IcebergSourceIT.java:161, HudiSeatunnelS3MultiTableIT.java:81, HudiSparkS3MultiTableIT.java:81, PaimonWithS3IT.java:150 |
High |
| 2 | seatunnel-cli/benchmark/README.md:124 still documents the benchmark MinIO image as bare minio/minio, out of sync with the docker-compose.yml in the same folder that this PR updates to the quay.io mirror. |
seatunnel-cli/benchmark/README.md:124 |
Low |
| 3 | (Pre-existing, not introduced by this PR, but the PR is already touching these exact lines) DatabendIT.java / DatabendCDCSinkIT.java pin to quay.io/minio/minio:latest rather than a fixed release like the other six sites, so a future upstream latest bump could silently reintroduce a version-related S3 test break. |
DatabendIT.java:240, DatabendCDCSinkIT.java:212 |
Low |
5. Merge Recommendation
Conclusion: Not recommended for merge (yet)
-
Blockers — must be fixed
- Issue 1: for the four
MinIOContainersites, construct the container with an explicitly-declared compatible substitute image, e.g.:This is exactly the pattern Testcontainers documents for registry mirrors and is a one-line change at each of the four call sites. Once applied, please re-push and let the fork CI (which already exercises exactly these modules) confirm green before merge — this PR's own CI run is the fastest way to prove the fix actually restores the S3-backed suites it's meant to unblock.new MinIOContainer( DockerImageName.parse(MINIO_DOCKER_IMAGE).asCompatibleSubstituteFor("minio/minio"))
- Issue 1: for the four
-
Recommended fixes — non-blocking
- Issue 2: update
seatunnel-cli/benchmark/README.md:124to sayquay.io/minio/minio(or drop the registry prefix from the table entirely if the table isn't meant to be that precise) so the doc matches the compose file it describes. - Issue 3: optionally pin the two Databend sites to the same
RELEASE.2024-06-13T22-53-53Ztag used everywhere else in this PR, for consistency and to avoid a futurelatest-drift surprise. Not required for this fix.
- Issue 2: update
Overall: the direction is correct and well-justified (the commit message's independent verification of the Docker Hub 404 and the quay.io tag availability is good diligence), and half the sites are a clean, safe fix. But the PR's own fork CI run shows it currently breaks four of the eight modules it touches with a deterministic IllegalStateException, which is the opposite of the PR's stated goal of unblocking those exact e2e suites. No alternative architecture is needed — just apply asCompatibleSubstituteFor at the four MinIOContainer call sites and this is ready to merge.
The parent commit switched these Testcontainers image references from
minio/minio to quay.io/minio/minio (Docker Hub's minio/minio repository no
longer serves anonymous pulls), but 4 of the 8 usages construct Testcontainers'
own specialized MinIOContainer class, which validates its image name against
the "minio/minio" family and throws IllegalStateException at container
startup for any other repository unless explicitly told the image is a
compatible substitute:
Failed to verify that image 'quay.io/minio/minio:...' is a compatible
substitute for 'minio/minio'. ... you should declare compatibility in
code using the `asCompatibleSubstituteFor` method.
Confirmed via this PR's own CI (fork run 34727061577): PaimonWithS3IT,
IcebergSourceIT, HudiSeatunnelS3MultiTableIT, and HudiSparkS3MultiTableIT
all failed with exactly this error after the parent commit, and the same
failures were duplicated on updated-modules-integration-test-part-3/4 since
those buckets also cover connector-iceberg-s3-e2e and connector-hudi-e2e.
The other 4 files (DatabendIT, DatabendCDCSinkIT, S3FileWithFilterIT, and
the benchmark docker-compose.yml) use plain GenericContainer/raw image
strings with no such family-name validation, so they were unaffected.
Fix: wrap each MINIO_DOCKER_IMAGE string with
DockerImageName.parse(...).asCompatibleSubstituteFor("minio/minio") at the
MinIOContainer construction site in all 4 affected files.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…rror Two non-blocking follow-ups from review on this PR: - seatunnel-cli/benchmark/README.md still documented the benchmark stack's MinIO image as bare "minio/minio", out of sync with the docker-compose.yml in the same folder already updated to the quay.io mirror. - DatabendIT/DatabendCDCSinkIT pinned to quay.io/minio/minio:latest rather than a fixed release like the other six MinIO references in this PR, so a future upstream MinIO release could silently change these tests' behavior. Pinned both to the same RELEASE.2024-06-13T22-53-53Z tag used everywhere else in this PR for consistency. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Follow-up on the review above (submitted against
All three items from the review are now closed. Re-running the two currently-failing jobs ( |
|
Supplementary re-verification pass on the current head ( Repo-wide completeness check (not just this PR's diff): a case-insensitive grep across the entire tree at this head for Live CI re-check for this exact head (run One small correction to the record from the prior follow-up comment for accuracy: the cited "run Net: no code-level blockers remain on this head. The |
Sync with latest dev to pick up the MinIO quay.io mirror fix (apache#12287) and unblock the Build check.
The branch was 400 commits behind dev and missing two upstream CI fixes: - apache#12287 and follow-ups: Docker Hub minio/minio no longer serves anonymous pulls, S3-backed e2e tests now use a digest-pinned ghcr.io mirror - apache#12830: self-host the DeepWiki badge image Both caused failures unrelated to this PR's test-only changes (all transform-v2 jobs passed on the old head). PR test additions unchanged; verified with JDK 17: NumericFunctionTest + SQLNumericFunctionsTest green (46 tests), spotless:check clean. Co-Authored-By: Claude Code <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Purpose of this pull request
Docker Hub's
minio/miniorepository no longer serves anonymous, unauthenticated pulls. On a GitHub-hosted runner,docker pull minio/minio:<any tag>now fails with:Confirmed independently:
https://hub.docker.com/v2/repositories/minio/minio/returns HTTP 404 from Docker Hub's own public API, whilehttps://quay.io/api/v1/repository/minio/minio/tag/?specificTag=<tag>returns a valid manifest for both tags this repo uses (RELEASE.2024-06-13T22-53-53Zandlatest).This breaks every S3-backed e2e test on every PR, and on
dev's own nightly build, across the Databend, S3File, Hudi, Iceberg-S3, and Paimon connector test suites. It surfaced repeatedly this week while triaging unrelated CI failures (for example #12134, #11597, #12211), all showing the identicalpull access deniederror againstminio/minio.Change
Switches every
minio/minioimage reference toquay.io/minio/minio, MinIO's own registry, which mirrors the same tags publicly:connector-databend-e2e:DatabendIT,DatabendCDCSinkIT(minio/minio:latest)connector-file-s3-e2e:S3FileWithFilterIT(minio/minio:RELEASE.2024-06-13T22-53-53Z)connector-hudi-e2e:HudiSeatunnelS3MultiTableIT,HudiSparkS3MultiTableIT(same tag)connector-iceberg-s3-e2e:IcebergSourceIT(same tag)connector-paimon-e2e:PaimonWithS3IT(same tag)seatunnel-cli/benchmark/docker/docker-compose.yml(same tag; a benchmark tool, not part of CI, but the same broken reference)Each change is a one-line image reference update, with a short comment explaining why quay.io is used. No test logic, assertions, or MinIO configuration changes.
Verification
./mvnw spotless:apply -DskipTests -nsuon each touched moduleBuildcheck on this PR'sall-connectors-it-*,iceberg-connector-it,paimon-connector-it, andconnector-databend-e2e/connector-hudi-e2elanes actually pulling the image and running the affected tests; Docker/E2E was not run locally.🤖 Generated with Claude Code