-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed as not planned
Closed as not planned
Copy link
Description
The upgrade from JUnit 6.0.0 to 6.0.1 breaks our native image test setup
https://github.com/neo4j/neo4j-jdbc/actions/runs/19024418716/job/54326185115?pr=1163#step:6:505
Reproducible with this branch https://github.com/neo4j/neo4j-jdbc/tree/dependabot/maven/org.junit-junit-bom-6.0.1:
./mvnw -Dnative -pl neo4j-jdbc-it/neo4j-jdbc-it-cp -am clean verify
Results in:
Error: Classes that should be initialized at run time got initialized during image building:
org.junit.jupiter.engine.discovery.MethodSegmentResolver was unintentionally initialized at build time. To see why org.junit.jupiter.engine.discovery.MethodSegmentResolver got initialized use --trace-class-initialization=org.junit.jupiter.engine.discovery.MethodSegmentResolver
To see how the classes got initialized, use --trace-class-initialization=org.junit.jupiter.engine.discovery.MethodSegmentResolver
Tested with
GraalVM 21 and JUnit 6.0.1 and GraalVM Maven plugin 0.11.2
Doesn't seem to happen on GraalVM 24 and 25.
As I do wanted to upgrade the pipelines to 25 anyway, it won't be a biggy for us, but it might be for others.