Skip to content

test: replace MinIO test containers with S3Proxy (#33370) [2.0 backport] - #34014

Merged
manerow merged 1 commit into
2.0from
backport/33370-s3proxy-2.0
Sep 25, 2026
Merged

manerow merged 1 commit into
2.0from
backport/33370-s3proxy-2.0

Conversation

@sonika-shah

Copy link
Copy Markdown
Collaborator

Backport of #33370 to the 2.0 branch.

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:

com.github.dockerjava.api.exception.InternalServerErrorException:
  Status 500: {"message":"unauthorized: access to the requested resource is not authorized"}

On main this 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 to 2.0, so every 2.0 PR's integration lanes and Python shard-2/shard-3 integration 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) onto 2.0 — no conflicts. Test-infra only, no product code:

  • Java: TestSuiteBootstrap and DriveFileUploadIT now use S3Proxy instead of MinIO (0 MinIO refs remain).
  • Python: ingestion/tests/integration/** conftests + containers.py (S3ProxyContainer) replace MinIO across datalake / auto-classification / s3 / delta_lake / mlflow / trino.
  • Supporting test resources and ingestion/setup.py.

Verification

  • mvn -pl openmetadata-integration-tests -am install -DskipTests → BUILD SUCCESS.
  • Deterministic proof is this PR's own integration CI (the exact lanes that were red on MinIO).

Unblocks all 2.0 integration CI, including the queued RDF fix #34005.

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)
@sonika-shah
sonika-shah requested a review from a team as a code owner September 25, 2026 08:31
@sonika-shah
sonika-shah requested review from mohittilala and removed request for a team September 25, 2026 08:31
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@github-actions github-actions Bot added backend safe to test Add this label to run secure Github workflows on PRs labels Sep 25, 2026
@gitar-bot

gitar-bot Bot commented Sep 25, 2026

Copy link
Copy Markdown
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.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 77c9ca8dcfc68c08783eccfe3cc21c73544d61ca in Playwright run 36113438484, attempt 1.

✅ 620 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

Performance

Blocking 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:

  • Browser traffic was 214.64 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.74 per UI scenario (1781 boots / 650 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 143 0 0 0 0 0
✅ Shard chromium-02 133 0 0 0 0 0
✅ Shard chromium-03 123 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard ingestion-01 34 0 0 0 0 0
✅ Shard ingestion-02 30 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@manerow
manerow merged commit be5ecfe into 2.0 Sep 25, 2026
118 of 131 checks passed
@manerow
manerow deleted the backport/33370-s3proxy-2.0 branch September 25, 2026 09:36

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants