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

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

Open
psoujany opened this issue Mar 27, 2024 · 7 comments
Open

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

psoujany opened this issue Mar 27, 2024 · 7 comments

Comments

@psoujany
Copy link
Contributor

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

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:

  • SDK_RESOURCE=customized
  • CUSTOMIZED_SDK_URL=link to SDK.tar.gz link to JRE.tar.gz // space-separated
  • USE_JRE=true // tells TKG to use the java from the unpacked JRE and not the one from the unpacked SDK

@pshipton
Copy link
Contributor

@llxia fyi

@psoujany
Copy link
Contributor Author

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

smlambert commented Mar 28, 2024

@llxia - so you can find them quickly adoptium/TKG#232 and #3159 for reference

@psoujany
Copy link
Contributor Author

psoujany commented Apr 2, 2024

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

judovana commented Apr 4, 2024

@jandrlik just fyi

@psoujany
Copy link
Contributor Author

Any updates on this issue?

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

No branches or pull requests

4 participants