Skip to content

[Fix][CI] Switch minio/minio test containers to the quay.io mirror - #12287

Merged
nzw921rx merged 3 commits into
apache:devfrom
davidzollo:davidzollo-fix-minio-image-20260913
Sep 13, 2026
Merged

nzw921rx merged 3 commits into
apache:devfrom
davidzollo:davidzollo-fix-minio-image-20260913

Conversation

@davidzollo

Copy link
Copy Markdown
Contributor

Purpose of this pull request

Docker Hub's minio/minio repository no longer serves anonymous, unauthenticated pulls. On a GitHub-hosted runner, docker pull minio/minio:<any tag> now fails with:

pull access denied for minio/minio, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Confirmed independently: https://hub.docker.com/v2/repositories/minio/minio/ returns HTTP 404 from Docker Hub's own public API, while https://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-53Z and latest).

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 identical pull access denied error against minio/minio.

Change

Switches every minio/minio image reference to quay.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 -nsu on each touched module
  • Full validation is the GitHub Build check on this PR's all-connectors-it-*, iceberg-connector-it, paimon-connector-it, and connector-databend-e2e/connector-hudi-e2e lanes actually pulling the image and running the affected tests; Docker/E2E was not run locally.

🤖 Generated with Claude Code

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>
@github-actions github-actions Bot added the e2e label Sep 13, 2026

@DanielLeens DanielLeens 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.

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:161
  • seatunnel-e2e/seatunnel-connector-v2-e2e/connector-hudi-e2e/src/test/java/org/apache/seatunnel/e2e/connector/hudi/HudiSeatunnelS3MultiTableIT.java:81
  • seatunnel-e2e/seatunnel-connector-v2-e2e/connector-hudi-e2e/src/test/java/org/apache/seatunnel/e2e/connector/hudi/HudiSparkS3MultiTableIT.java:81
  • seatunnel-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) — both HudiSeatunnelS3MultiTableIT and HudiSparkS3MultiTableIT fail with the identical IllegalStateException.

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)

  1. Blockers — must be fixed

    • Issue 1: for the four MinIOContainer sites, construct the container with an explicitly-declared compatible substitute image, e.g.:
      new MinIOContainer(
              DockerImageName.parse(MINIO_DOCKER_IMAGE).asCompatibleSubstituteFor("minio/minio"))
      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.
  2. Recommended fixes — non-blocking

    • Issue 2: update seatunnel-cli/benchmark/README.md:124 to say quay.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-53Z tag used everywhere else in this PR, for consistency and to avoid a future latest-drift surprise. Not required for this fix.

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.

davidfans and others added 2 commits September 13, 2026 01:29
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>
@DanielLeens

Copy link
Copy Markdown
Contributor

Follow-up on the review above (submitted against 93fdd1e, before two more commits landed):

  • Blocking Issue 1 resolved in 06ec778b: all four MinIOContainer construction sites (PaimonWithS3IT, IcebergSourceIT, HudiSeatunnelS3MultiTableIT, HudiSparkS3MultiTableIT) now wrap the image with DockerImageName.parse(MINIO_DOCKER_IMAGE).asCompatibleSubstituteFor("minio/minio"). Verified directly against this PR's own fork CI logs (run 34727061577 → re-run after the fix): PaimonWithS3IT completed Tests run: 4, Failures: 0, Errors: 0 before that job later hit the unrelated, pre-existing paimon-connector-it runner-budget timeout (see e.g. the "Paimon classloader hang" pattern on many other PRs) — the container itself now starts and passes cleanly.
  • Non-blocking Issue 2 (README doc sync) and Issue 3 (Databend :latest → pinned tag) resolved in 81819857.

All three items from the review are now closed. Re-running the two currently-failing jobs (engine-v2-it on a different PR of mine, paimon-connector-it here) since both failures are unrelated pre-existing flakes/timeouts, not caused by this diff.

@DanielLeens

Copy link
Copy Markdown
Contributor

Supplementary re-verification pass on the current head (8181985), since a request specifically asked me to double-check completeness beyond this PR's own diff (an earlier iteration of this exact fix had only fixed 4 of 8 call sites).

Repo-wide completeness check (not just this PR's diff): a case-insensitive grep across the entire tree at this head for minio/minio, MinIOContainer, and MinioContainer turns up exactly the 9 files this PR already touches (7 e2e test classes + docker-compose.yml + README.md) and nothing else. All 4 sites that construct Testcontainers' MinIOContainer (IcebergSourceIT, HudiSeatunnelS3MultiTableIT, HudiSparkS3MultiTableIT, PaimonWithS3IT) now correctly wrap the image with DockerImageName.parse(MINIO_DOCKER_IMAGE).asCompatibleSubstituteFor("minio/minio"). No stray minio container references were missed anywhere else in the codebase.

Live CI re-check for this exact head (run 34752228232, fork): updated-modules-integration-test-part-3 and part-4 (8 and 11, ubuntu-latest) — which cover connector-iceberg-s3-e2e and connector-hudi-e2e, i.e. the modules with the MinIOContainer fix — are now green for commit 8181985. paimon-connector-it (8, 11) was still in-progress at the time of this check; no job has failed so far on this head.

One small correction to the record from the prior follow-up comment for accuracy: the cited "run 34727061577 re-run after the fix" didn't happen — that run (triggered by the original 93fdd1e commit) stayed at run_attempt: 1 and was never rerun. The actual passing evidence for PaimonWithS3IT is in run 34740420389 (attempt 2, triggered by the 06ec778b fix commit), where paimon-connector-it (8) succeeded; paimon-connector-it (11) in that same run shows cancelled, not a runner-budget timeout — it was cut off because the follow-up 8181985 push superseded it, which is expected GitHub Actions concurrency-cancellation behavior, not a new failure. Doesn't change the conclusion, just flagging so the paper trail is precise.

Net: no code-level blockers remain on this head. The asCompatibleSubstituteFor fix is complete and verified working on the exact modules it needed to fix. Recommend merging once the still-in-progress paimon-connector-it and updated-modules-integration-test-part-1 jobs on this head finish green (pattern so far strongly suggests they will, since the identical container-construction code already passed in the prior commit's run).

@nzw921rx nzw921rx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1 good job

@nzw921rx
nzw921rx added this pull request to the merge queue Sep 13, 2026
Merged via the queue into apache:dev with commit 35b2716 Sep 13, 2026
4 checks passed
hesam-oxe added a commit to hesam-oxe/seatunnel that referenced this pull request Sep 14, 2026
Sync with latest dev to pick up the MinIO quay.io mirror fix (apache#12287)
and unblock the Build check.
zhangshenghang pushed a commit to zhangshenghang/seatunnel that referenced this pull request Oct 18, 2026
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants