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

Local test setup fails #18061

Open
JamesKingdon opened this issue Aug 31, 2023 · 5 comments
Open

Local test setup fails #18061

JamesKingdon opened this issue Aug 31, 2023 · 5 comments

Comments

@JamesKingdon
Copy link
Contributor

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 #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
Copy link
Member

pshipton commented Sep 5, 2023

@llxia pls take a look.

@llxia
Copy link
Contributor

llxia commented Sep 5, 2023

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

  • What is the Java version?
  • What platform do you use?
  • What env variables do you set?

@JamesKingdon
Copy link
Contributor Author

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
Copy link
Contributor

llxia commented Sep 5, 2023

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
Copy link
Contributor Author

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants