Skip to content

[#13958] improvement(build): Upgrade Testcontainers to 2.0.5 - #14084

Open
nevzheng wants to merge 3 commits into
apache:mainfrom
nevzheng:claude/13900-tc-00b-testcontainers2
Open

nevzheng wants to merge 3 commits into
apache:mainfrom
nevzheng:claude/13900-tc-00b-testcontainers2

Conversation

@nevzheng

@nevzheng nevzheng commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

What changes were proposed in this pull request?

  • Testcontainers 1.21.4 → 2.0.5: artifacts renamed to testcontainers-*, MySQL and PostgreSQL containers moved to their 2.x packages, docker-java 3.4.2 → 3.7.1. The unused testcontainers-junit-jupiter alias goes away.
  • Doris compose: withLocalCompose(true) is gone in 2.x; the constructor Doris uses already runs the local docker compose, so behavior is unchanged.
  • The MySQL wrapper keeps setting its own configuration override, since the 2.x module no longer ships a default my.cnf.
  • commons-lang3: 2.x brings 3.18 onto the test classpath, so the test code moves off the methods 3.18 deprecates. The catalog stays at 3.14.0 for main code; raising it is a separate change, because main code still uses methods 3.18 deprecates.
  • Not covered: the trino-connector modules. Their tests run in Trino's own trino-testing harness, which brings Testcontainers 1.x of its own.

Why are the changes needed?

1.21 is the last 1.x line. Moving now lets the framework PRs that follow target the 2.x API once instead of migrating it later. It merges on main on its own.

Fix: #13958 (part of #14105)

Does this PR introduce any user-facing change?

No. Test dependencies and test code only.

How was this patch tested?

./gradlew test -PskipITs (with the JUnit 6 PR below it: 0 failures). Docker ITs at the top of the stack, which carries this upgrade: MySQL, PostgreSQL, Hive, S3 (LocalStack), Kafka, ClickHouse, OceanBase and Trino connector ITs pass, apart from known failures that also fail on main.

Stack: #14103 → #14083 → #14084 → #14085 → #14005 → #14006 → #14052 → #14076 → #14007 → #14008 → #14009 → #14010 → #14011 → #14012 → #14013 → #14079 → #14077 → #14078 → #14086 → #14087 → #14088 → #14089 → #14090 → #14091 → #14094

@nevzheng nevzheng self-assigned this Oct 21, 2026
This was referenced Oct 21, 2026
@nevzheng
nevzheng force-pushed the claude/13900-tc-00b-testcontainers2 branch 7 times, most recently from 5598eeb to 0170a2d Compare October 21, 2026 19:28
@nevzheng
nevzheng force-pushed the claude/13900-tc-00b-testcontainers2 branch 3 times, most recently from 78d6ab6 to 87f9006 Compare October 21, 2026 19:44
@nevzheng
nevzheng force-pushed the claude/13900-tc-00b-testcontainers2 branch 2 times, most recently from b31b512 to 16e9f34 Compare October 21, 2026 21:16
@nevzheng
nevzheng force-pushed the claude/13900-tc-00b-testcontainers2 branch from 16e9f34 to 37638aa Compare October 21, 2026 21:18
@nevzheng
nevzheng force-pushed the claude/13900-tc-00b-testcontainers2 branch from 37638aa to 1663e2b Compare October 21, 2026 21:37
@nevzheng
nevzheng requested review from jerryshao and roryqi October 21, 2026 22:17
@nevzheng
nevzheng marked this pull request as ready for review October 21, 2026 22:18
@nevzheng
nevzheng force-pushed the claude/13900-tc-00b-testcontainers2 branch 4 times, most recently from 051bcdf to 65f9553 Compare October 22, 2026 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Upgrade Testcontainers from 1.21.4 to 2.0.x

1 participant