Skip to content

Restore compatibility with GraalVM 25 - #5901

Open
marcphilipp wants to merge 6 commits into
mainfrom
marc/graalvm-25
Open

Restore compatibility with GraalVM 25#5901
marcphilipp wants to merge 6 commits into
mainfrom
marc/graalvm-25

Conversation

@marcphilipp

@marcphilipp marcphilipp commented Jul 23, 2026

Copy link
Copy Markdown
Member
  • Add test coverage for GraalVM 25
  • Log test events and output when using --info
  • Add serialization-config.json for compatibility with GraalVM 25

Fixes #5892.


I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@marcphilipp marcphilipp self-assigned this Jul 23, 2026
@marcphilipp marcphilipp changed the title Add serialization-config.json for compatibility with GraalVM 25 Restore compatibility with GraalVM 25 Jul 23, 2026
@marcphilipp
marcphilipp marked this pull request as draft July 23, 2026 14:25
@marcphilipp
marcphilipp marked this pull request as ready for review July 23, 2026 14:30
@@ -0,0 +1,5 @@
[
{
"name": "org.junit.platform.engine.UniqueId$SerializedForm"

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.

This looks really fragile. Is there a way to generate it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the tracing agent does that for actual Graal applications. Maybe we can attach that to the test and at least verify it produces the same file?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sbrannen @vjovanov Could one of you please chime in here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've switched to the newer reachability-metadata.json now and added a test that uses the tracing agent and verifies that the serializable classes in the shipped file are identical to those generated by the agent for regular (non-native-image) test execution.

@testlens-app

testlens-app Bot commented Jul 24, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 4754d4d
▶️ Tests: 34070 executed
⚪️ Checks: 17/17 completed


Learn more about TestLens at testlens.app.

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.

Native build failure since JUnit 6.1.0

2 participants