Skip to content

[#14105] improvement(build): Upgrade JUnit to 6.1.3 - #14083

Open
nevzheng wants to merge 2 commits into
apache:mainfrom
nevzheng:claude/13900-tc-00a-junit6
Open

nevzheng wants to merge 2 commits into
apache:mainfrom
nevzheng:claude/13900-tc-00a-junit6

Conversation

@nevzheng

@nevzheng nevzheng commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

What changes were proposed in this pull request?

  • JUnit 5.8.1 → 6.1.3. The root build applies junit-bom to every test configuration and puts junit-platform-launcher on the test runtime, which Gradle 8.2 needs to drive a 6.x engine. The three module-level BOM pins (5.9.1, 5.11.4, 6.0.0) go away.
  • Two extension API changes: ExtensionContext.Store.CloseableResource → AutoCloseable, and getOrComputeIfAbsent → computeIfAbsent, in BackendTestExtension and CloseContainerExtension.
  • Test fixtures compile at release 17 in the release-8 modules, as their test sources already did; main sources are unchanged.
  • The JUnit 4 conversions are in the PR below, [#14105] test: Replace the last JUnit 4 code and declare the test libraries each module uses #14103.

Why are the changes needed?

JUnit 6 adds AutoCloseable store values and other extension features the next PRs use for container and database cleanup. Every test already runs on Java 17.

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: 13,785 tests, 0 failures.

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-00a-junit6 branch 7 times, most recently from b058e92 to c8ce829 Compare October 21, 2026 19:28
@nevzheng
nevzheng force-pushed the claude/13900-tc-00a-junit6 branch 3 times, most recently from ac67207 to b50f32f Compare October 21, 2026 19:44
@nevzheng
nevzheng force-pushed the claude/13900-tc-00a-junit6 branch 2 times, most recently from 81cc7b1 to 056db38 Compare October 21, 2026 21:16
@nevzheng
nevzheng force-pushed the claude/13900-tc-00a-junit6 branch from 056db38 to 25f772f Compare October 21, 2026 21:18
@nevzheng nevzheng changed the title [#14001] improvement(build): Upgrade JUnit to 6.1.3 [#14105] improvement(build): Upgrade JUnit to 6.1.3 Oct 21, 2026
@nevzheng
nevzheng force-pushed the claude/13900-tc-00a-junit6 branch from 25f772f to 343145c 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:17
@nevzheng
nevzheng force-pushed the claude/13900-tc-00a-junit6 branch 3 times, most recently from 922cd51 to 113bd9a 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.

1 participant