Repository navigation
test: replace MinIO test containers with S3Proxy (#33370) [2.0 backport] - #34014
Conversation
MinIO deleted the minio/minio repository from Docker Hub, which Docker reports as a misleading "pull access denied" and which broke every Java IT lane and the Python integration shards at once. Pinning quay.io/minio/minio restored the builds but left the suite depending on a vendor that had already withdrawn its images once. Swap every test container over to S3Proxy (Apache-2.0, multi-arch, ready in ~2.7s vs MinIO's 5-15s). The shared helper keeps the previous public surface -- access_key/secret_key/port/get_client() -- so the call sites only change name, and get_client() still returns a minio.Minio client, which is a client library independent of the server. S3Proxy answers NotImplemented to bucket/object tagging and bucket lifecycle. Both are already best-effort in product code (the caller of S3Source._fetch_s3_tags and S3LogStorage.configureLifecyclePolicy each swallow the exception) and no test asserted on them, but this does mean S3 tag ingestion can no longer be covered by an integration test. The Trino catalog stays named `minio`: it is a catalog identifier baked into 38 asserted entity FQNs, so renaming it would change what the tests assert rather than which server they run. Verified against s3proxy 4.1.1 on both the transient and filesystem backends: AWS SDK v2 2.41.30 11/11 (incl. putObject under the SDK's default flexible-checksum behaviour), core S3 26/31 (the 5 are the tagging and lifecycle calls above), delta-rs/s3fs/pyarrow 20/20, Trino 418 + Hive Metastore 3.0 over Hadoop S3A 13/13, and DriveFileUploadIT 21/21 end to end. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Mohit Tilala <63147650+mohittilala@users.noreply.github.com> (cherry picked from commit 8b8a0c2)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved🟡 Medium risk · Replaces MinIO with S3Proxy across Java and Python integration-test infrastructure Clean cherry-pick of S3Proxy migration to replace MinIO testcontainers across Java and Python integration tests. MinIO's public Docker images are now private, causing all 2.0 integration CI to fail at container setup; this backport restores test infrastructure. No issues found. OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
✅ Playwright Results — workflow succeededValidated commit ✅ 620 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 54m 30s ⏱️ Max setup 2m 57s · max shard execution 17m 50s · max shard-job elapsed before upload 21m 2s · reporting 5s 🌐 214.64 requests/attempt · 2.74 app boots/UI scenario · 7.57% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |



Backport of #33370 to the
2.0branch.Why
MinIO made its public Docker images private on both Quay and Docker Hub. The integration tests start a MinIO testcontainer by pulling
quay.io/minio/minio:*, which now fails with:On
mainthis was already fixed by #33370 (merged Sep 20), which replaced the MinIO testcontainer with S3Proxy (an S3-compatible store that needs no private image). That fix was never backported to2.0, so every2.0PR's integration lanes and Pythonshard-2/shard-3integration tests now abort at container setup (setup_failure, 0 tests run). This is branch-wide — not specific to any one PR — and only became fatal today when MinIO flipped the images to private (2.0 integration lanes were green as recently as Sep 24).What
Clean cherry-pick of #33370 (
8b8a0c24ae) onto2.0— no conflicts. Test-infra only, no product code:TestSuiteBootstrapandDriveFileUploadITnow use S3Proxy instead of MinIO (0 MinIO refs remain).ingestion/tests/integration/**conftests +containers.py(S3ProxyContainer) replace MinIO across datalake / auto-classification / s3 / delta_lake / mlflow / trino.ingestion/setup.py.Verification
mvn -pl openmetadata-integration-tests -am install -DskipTests→ BUILD SUCCESS.Unblocks all
2.0integration CI, including the queued RDF fix #34005.