Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dnestoro opened this issue Dec 23, 2024 · 0 comments · May be fixed by #660
Open

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

dnestoro opened this issue Dec 23, 2024 · 0 comments · May be fixed by #660
Assignees
Labels
bug Something isn't working

Comments

@dnestoro
Copy link
Collaborator

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]
@dnestoro dnestoro added the bug Something isn't working label Dec 23, 2024
@dnestoro dnestoro self-assigned this Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant