Skip to content

Maven functional tests fail when using the latest GraalVM version #661

@dnestoro

Description

@dnestoro

Before reporting

Describe the bug
JavaApplicationWithAgentFunctionalTest has test that expects that metadata should be separate files (resource-config.json, reflection-config.json, jni-config.json...). Because new GraalVM version uses reachability-metadata.json this check fails.

To Reproduce
Run ./gradlew :native-maven-plugin:functionalTest --tests JavaApplicationWithAgentFunctionalTest from the project root.

Expected behavior
Tests should pass no matter which GraalVM version we are using.

Logs

Condition not satisfied:

file("target/native/agent-output/test/${name}-config.json").exists()
|                                       |                   |
|                                       jni                 false
/tmp/spock_agent_is_used_for_J_0_testDirectory1507716754170115022/target/native/agent-output/test/jni-config.json

	at org.graalvm.buildtools.maven.JavaApplicationWithAgentFunctionalTest.agent is used for JVM tests when native image tests are skipped via -DskipNativeTests_closure1(JavaApplicationWithAgentFunctionalTest.groovy:66)
	at app//groovy.lang.Closure.call(Closure.java:412)
	at app//groovy.lang.Closure.call(Closure.java:428)
	at org.graalvm.buildtools.maven.JavaApplicationWithAgentFunctionalTest.agent is used for JVM tests when native image tests are skipped via -DskipNativeTests(JavaApplicationWithAgentFunctionalTest.groovy:65)


System Info (please complete the following information):

  • OS: [Ubuntu 22.04]
  • GraalVM Version [GraalVM Runtime Environment Oracle GraalVM 23.0.1+11.1]
  • Java Version [23]
  • Plugin version [native-maven-plugin:0.10.14]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions