Karm / mandrel-integration-tests

Integration tests for GraalVM and its Mandrel distribution. Runs Quarkus, Helidon and Micronaut applications and small targeted reproducers. The focus is solely on native-image utility and compilation of Java applications into native executables.
Apache License 2.0
5 stars 3 forks source link

[24.1] JFR integration tests fail for Mandrel for JDK 23 - JDK events initialization #268

Open jerboaa opened 3 days ago

jerboaa commented 3 days ago

Latest Mandrel integration tests fail the JFR integration test with this warning:

[warn][jfr,system] Could not initialize JDK events. jfrTracing

... which usually indicates a larger problem, so we should investigate.

Example test output:

Error:    JFRTest.jfrOptionsSmokeTest:784->jfrOptionsSmoke:922 build-and-run.log log should not contain error or warning lines that are not whitelisted. See /home/runner/work/mandrel/mandrel/mandrel-integration-tests/testsuite/target/archived-logs/org.graalvm.tests.integration.JFRTest/jfrOptionsSmokeTest/build-and-run.log and check these offending lines: 
[warn][jfr,system] Could not initialize JDK events. jfrTracing ==> expected: <true> but was: <false>
Error:    JFRTest.jfrPerfTest:185->jfrPerfTestRun:234 build-and-run.log log should not contain error or warning lines that are not whitelisted. See /home/runner/work/mandrel/mandrel/mandrel-integration-tests/testsuite/target/archived-logs/org.graalvm.tests.integration.JFRTest/jfrPerfTest/build-and-run.log and check these offending lines: 
[warn][jfr,system] Could not initialize JDK events. jfrTracing

See this CI link: https://github.com/graalvm/mandrel/actions/runs/9720067442/job/26831418361#step:11:20582

jerboaa commented 3 days ago

@roberttoyonaga Could you please take a look at this? Thanks!

jerboaa commented 3 days ago

Seems related to https://bugs.openjdk.org/browse/JDK-8331876 new in JDK 23+26.

jerboaa commented 2 days ago

It doesn't seem to be happening for a Mandrel build with JDK 24+3. Looks like we'd need a backport of https://github.com/oracle/graal/pull/9212

jerboaa commented 2 days ago

Steps to reproduce:

export JAVA_HOME=/path/to/mandrel-build-based-on-jdk23
export GRAALVM_HOME=$JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
export FAIL_ON_PERF_REGRESSION=false
mvn clean verify -Dquarkus.version=999-SNAPSHOT -Ptestsuite -Dtest=JFRTest#jfrPerfTest
roberttoyonaga commented 2 days ago

@roberttoyonaga Could you please take a look at this? Thanks!

Yup I can look at this!