adoptium / aqa-tests

Home of test infrastructure for Adoptium builds
https://adoptium.net/aqavit
Apache License 2.0
125 stars 304 forks source link

get.sh failed to detect TEST_JDK_HOME with JRE build #5186

Open psoujany opened 3 months ago

psoujany commented 3 months ago

While testing JCK with Semeru JRE build, get.sh script failed to detect TEST_JDK_HOME.

Error: _ENCODE_FILE_NEW=UNTAGGED curl -OLJSks --user : https://na.artifactory.swg-devops.com/artifactory/sys-rt-generic-local/UploadFile/467/custom_jre.tar.gz 12:52:16 Uncompressing file: custom_jre.tar.gz ... 12:52:17 /home/jenkins/workspace/Grinder_CR/jdkbinary/j2sdk-image/bin/java does not exist! Searching under TEST_JDK_HOME: /home/jenkins/workspace/Grinder_CR/jdkbinary/j2sdk-image... 12:52:17 find: '/home/jenkins/workspace/Grinder_CR/jdkbinary/j2sdk-image': No such file or directory

Test Job : hyc-jenkins/Grinder_CR/14780/

Custom JRE build : hyc-jenkins/Test_grinder/UploadFile/467/

smlambert commented 3 months ago

You are still required to provide an SDK build when wanting to test with a JRE, as some of the tests require compilation (javac). So, if you want to test a custom JRE, you need to provide both a link to a JDK build and to your JRE build.

In order to run tests against a customized JRE, you'd need to set the following parameters:

pshipton commented 3 months ago

@llxia fyi

psoujany commented 3 months ago

@smlambert Thank You for helping on this.

@llxia I don't find USE_JRE=true flag in the Test_grinder/Grinder and Test_grinder/Grinder_CR configuration. Could you please help us in setting it up. Thank You.

smlambert commented 3 months ago

@llxia - so you can find them quickly https://github.com/adoptium/TKG/pull/232 and https://github.com/adoptium/aqa-tests/pull/3159 for reference

psoujany commented 3 months ago

@smlambert @llxia I trigged a sample run by enabling USE_JRE. As suggested I passed both JDK and JRE, but JDK has taken the precedence. Tests executed using JDK instead of custom_jre. hyc-jenkins/Test_grinder/Grinder_CR/15099/

judovana commented 3 months ago

@jandrlik just fyi

psoujany commented 1 month ago

Any updates on this issue?