Skip to content

[Fix][CI] Use MinIO mirror for S3 dry-run tests - #12302

Merged
nzw921rx merged 1 commit into
apache:devfrom
goutamadwant:fix/s3-dry-run-minio-image
Sep 14, 2026
Merged

nzw921rx merged 1 commit into
apache:devfrom
goutamadwant:fix/s3-dry-run-minio-image

Conversation

@goutamadwant

Copy link
Copy Markdown
Collaborator

Purpose of this pull request

Follow up on #12287 by updating the remaining Docker Hub MinIO image reference in S3FileConnectDryRunIT, introduced by #12242.

The fixture still uses minio/minio:RELEASE.2024-06-13T22-53-53Z. Pulling this image fails with pull access denied, preventing the MinIO container from starting and the S3 dry-run tests from executing. This is a test-infrastructure failure before connector assertions run.

This patch changes the image to quay.io/minio/minio:RELEASE.2024-06-13T22-53-53Z.

Does this PR introduce any user-facing change?

No. S3 connector behavior, configuration, dependencies, and compatibility are unchanged. This change restores the existing integration-test fixture.

How was this patch tested?

  • Reproduced the Docker Hub image pull failure.
  • Successfully pulled the same pinned release from Quay.
  • Verified that the Quay image provides AMD64 and ARM64 manifests. This is manifest verification, not runtime testing on both architectures.
  • Ran all six existing S3FileConnectDryRunIT tests against a real MinIO container using Java 11: 6 passed, 0 failures, 0 errors, 0 skipped.
  • Ran Spotless and the selected module's dependency-reactor verification successfully.

The existing tests exercise the S3 source factory metadata and connectivity contract without submitting a SeaTunnel job. No new tests were added because the patch only corrects the image location required by those tests.

Focused verification command, with Java 11 and Docker available:

./mvnw -B \
  -pl seatunnel-e2e/seatunnel-connector-v2-e2e/connector-file-s3-e2e \
  -am verify \
  -Dskip.ui=true \
  -Dlicense.skipAddThirdParty=true \
  -DskipUT=true \
  -DskipIT=false \
  -Dit.test=S3FileConnectDryRunIT \
  -Dit.failIfNoSpecifiedTests=false \
  '-Dsurefire.jvm.args=-Dfile.encoding=UTF-8 -Dapi.version=1.44'

The Docker API version override was used for local Docker 29 compatibility; it is not a repository change.

Check list

The conditional items below are not applicable to this test-fixture-only change. No JAR, documentation, compatibility, connector registration, distribution, or plugin configuration changes are introduced. The existing E2E tests were rerun successfully.

Signed-off-by: Goutam Adwant <workwithgoutam@gmail.com>
@github-actions github-actions Bot added the e2e label Sep 13, 2026
@goutamadwant

Copy link
Copy Markdown
Collaborator Author

@DanielLeens @davidzollo I found one remaining Docker Hub MinIO reference in S3FileConnectDryRunIT and have this PR to address it.

It switches the fixture to Quay while keeping the same release tag. The old image pull failure was reproduced, and all six existing dry-run integration tests passed locally against real MinIO on Java 11 after the change. No production code, assertions, or timeouts are changed.

@goutamadwant goutamadwant self-assigned this Sep 13, 2026

@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 if ci pass

@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?

Following up on the recent Docker Hub minio/minio repository removal incident (pull access denied for minio/minio, repository does not exist ..., which broke MinIO-based e2e tests across several unrelated PRs and was fixed project-wide in #12287), the author found one remaining Docker Hub reference that #12287 missed: S3FileConnectDryRunIT's IMAGE constant. This PR switches that single reference to the quay.io/minio/minio mirror, matching the pattern #12287 already established everywhere else.

1. Code Change Review

1.1 Core Logic Analysis

The entire diff is a one-line image-string change in seatunnel-e2e/seatunnel-connector-v2-e2e/connector-file-s3-e2e/src/test/java/org/apache/seatunnel/e2e/connector/file/s3/S3FileConnectDryRunIT.java:59:

- private static final String IMAGE = "minio/minio:RELEASE.2024-06-13T22-53-53Z";
+ private static final String IMAGE = "quay.io/minio/minio:RELEASE.2024-06-13T22-53-53Z";

Key findings:

  • I independently re-verified the "one remaining reference" claim rather than taking it at face value: I pulled the actual current dev tip (35b2716c, which is #12287's own merge commit) and grepped the full tree for both minio/minio: and quay.io/minio. Every other call site — docker-compose.yml (benchmark), DatabendIT/DatabendCDCSinkIT (GenericContainer with a raw string), and HudiSeatunnelS3MultiTableIT/HudiSparkS3MultiTableIT/IcebergSourceIT/PaimonWithS3IT/S3FileWithFilterIT (MinIOContainer) — is already on quay.io/minio/minio. S3FileConnectDryRunIT is genuinely the only one left. (Worth a note for anyone auditing this later: GitHub's code-search index and a stale local mirror fetch both still showed the old minio/minio content for files #12287 had already fixed hours earlier — classic search/fetch staleness, not a real gap. Re-fetching dev and re-grepping confirmed the true current state.)
  • This test uses new GenericContainer<>(DockerImageName.parse(IMAGE)) (S3FileConnectDryRunIT.java:79-80), not the dedicated org.testcontainers.containers.MinIOContainer. That distinction matters: MinIOContainer validates its image name is a recognized substitute for minio/minio and throws at startup without an explicit .asCompatibleSubstituteFor("minio/minio") declaration (which is exactly why #12287 had to add that wiring to the four MinIOContainer-based files). A plain GenericContainer does no such validation, so swapping the raw image string is the complete, correct fix here — no asCompatibleSubstituteFor call is needed or missing. This exactly matches how DatabendIT/DatabendCDCSinkIT (also GenericContainer-based) were fixed in #12287.
  • No other logic in the file changes — same tag/digest (RELEASE.2024-06-13T22-53-53Z), same startup config, same test assertions. This is a pure registry-mirror swap with zero behavioral surface.

1.2 Compatibility Impact

Fully compatible. Test-infrastructure-only change; no production code, config, API, or default touched. The image tag/digest is unchanged, so the container's actual runtime behavior is identical — only the registry it's pulled from changes.

1.3 Performance / Side-Effect Analysis

None. Single constant-string change in a test class; no new dependencies, no new allocations, no change to container startup logic.

1.4 Error Handling and Logging

Not applicable — no error-handling or logging code touched.

2. Code Quality Assessment

2.1 Coding Standards

Minimal, correctly scoped, no unrelated changes. No new methods/fields introduced, so no doc-completeness concerns.

2.2 Test Coverage and Test Stability

This is a test-infrastructure fix rather than new test coverage. Flaky-pattern check: this replaces a permanently, deterministically broken pull (the upstream Docker Hub repo is gone entirely, not a transient rate-limit) with the same official mirror image already proven stable across #12287's four other call sites — this removes a failure mode rather than introducing one.

Rating: Stable.

2.3 Documentation Updates

Not applicable — no user-facing behavior, config, or docs affected.

3. Architectural Soundness

3.1 Elegance of the Solution

Precise, minimal fix — the smallest possible change that closes the one gap #12287 missed, using the exact same mirror and the exact same non-MinIOContainer pattern already validated elsewhere in the codebase.

3.2 Maintainability

No new pattern introduced; keeps this file consistent with every other MinIO-based test in the repo.

3.3 Extensibility

Not applicable to a one-line test-fixture fix.

3.4 Historical-Version Compatibility

Not applicable — test-only, no serialization/config/checkpoint surface involved.

4. Issue Summary

No issues found.

5. Merge Recommendation

Conclusion: Ready to merge

  1. Blockers — must be fixed: None.
  2. Recommended fixes — non-blocking: None.

Overall assessment: This is a clean, minimal, well-targeted follow-up to #12287 — I independently re-verified against the true current dev tip that this is genuinely the last remaining Docker Hub minio/minio reference in the tree, and confirmed the fix uses the right mechanism for a plain GenericContainer (no asCompatibleSubstituteFor needed, unlike the MinIOContainer-based files #12287 touched). No production code, compatibility surface, or test logic is affected. I don't see anything to ask for here.

CI note: this is a CI-infrastructure-only fix and, appropriately, doesn't touch any business logic. At review time, the fork's own Build run (goutamadwant/seatunnel, run 34775391366) is still queued — the basic style/dead-links/license-header jobs haven't started yet, likely due to concurrent job contention from the author's other in-flight PR on the same fork account. Given the change is a single test-fixture image string with an already-proven-safe replacement, I wouldn't hold up merge waiting on that specifically, but please do confirm the run finishes green (in particular that S3FileConnectDryRunIT itself now passes) before merging, since that's the one thing an isolated string diff can't fully prove on its own.

@nzw921rx
nzw921rx added this pull request to the merge queue Sep 14, 2026
Merged via the queue into apache:dev with commit 0d9f9e2 Sep 14, 2026
4 checks passed
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.

3 participants