eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 720 forks source link

Local test setup fails #18061

Open JamesKingdon opened 1 year ago

JamesKingdon commented 1 year ago

Attempting to follow the instructions at

https://github.com/eclipse-openj9/openj9/wiki/Reproducing-Test-Failures-Locally

Fails at 8. make compile // fetches test material and compiles it, based on build.xml files in the test directories with multiple errors relating to casting longs in TestThreadMXBean.java. These appear to relate to new code added for https://github.com/eclipse-openj9/openj9/issues/16694. Removing TestThreadMXBean.java allows the make compile step to complete as expected.

Example error: [javac] /testdir/aqa-tests/functional/JLM_Tests/src/org/openj9/test/java/lang/management/TestThreadMXBean.java:365: error: incompatible types: <null> cannot be converted to long

pshipton commented 1 year ago

@llxia pls take a look.

llxia commented 1 year ago

I am not aware of any similar issue on Jenkins. @JamesKingdon could you provide more details for your local run?

JamesKingdon commented 1 year ago

Hi @llxia I tried with ibm-semeru-open-jdk_x64_linux_17.0.6_10_openj9-0.36.0 and IBM sdk 8.0.8.0 using Ubuntu 22.04.2 LTS under wsl2. TEST_JDK_HOME was set according to which JVM I was using, BUILD_LIST=functional.

llxia commented 1 year ago

If ibm-semeru-open-jdk_x64_linux_17.0.6_10_openj9-0.36.0 is used, the corresponding test material from https://github.com/eclipse-openj9/openj9/tree/v0.36.0-release should be used.

There are two ways to set openj9 branch. Starting with a clean workspace:

  1. Use https://github.com/eclipse-openj9/openj9/wiki/Reproducing-Test-Failures-Locally, but set OPENJ9_BRANCH https://github.com/adoptium/aqa-tests/blob/master/get.sh#L119C5-L119C18 when running get.sh
  2. Use AQA test release branch: https://github.com/adoptium/aqa-tests/blob/v0.9.6-release/testenv/testenv.properties. See AQAvit Verification Demonstration: https://youtu.be/1EUi3iTZSzg
JamesKingdon commented 1 year ago

Thanks. It doesn't look like I'm going to get a chance to try this for at least the next few days. If there's a strict version requirement on the test material vs the JVM under test would it make sense to add that information to https://github.com/eclipse-openj9/openj9/wiki/Reproducing-Test-Failures-Locally ?