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

SharedClasses.SCM01 Copy sharedClasses jar fails #19841

Closed
pshipton opened this issue Jul 10, 2024 · 6 comments
Closed

SharedClasses.SCM01 Copy sharedClasses jar fails #19841

pshipton opened this issue Jul 10, 2024 · 6 comments

Comments

@pshipton
Copy link
Member

pshipton commented Jul 10, 2024

https://openj9-jenkins.osuosl.org/job/Test_openjdk22_j9_extended.system_x86-64_linux_Nightly_testList_0/2/ - cent7-x64-2
https://openj9-jenkins.osuosl.org/job/Test_openjdk22_j9_extended.system_x86-64_linux_Nightly_testList_2/3 - cent7-x64-2
SharedClasses.SCM01.SingleCL_0

07:13:39  STF 07:13:38.688 - +------ Step 1 - Copy sharedClasses jar
07:13:39  STF 07:13:38.688 - | Copy a file to another directory
07:13:39  STF 07:13:38.689 - |   Source file: /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1/jdk22/classes.jar
07:13:39  STF 07:13:38.689 - |   Dest dir:    /home/jenkins/workspace/Test_openjdk22_j9_extended.system_x86-64_linux_Nightly_testList_2/aqa-tests/TKG/output_17206066236256/SharedClasses.SCM01.SingleCL_0/20240710-071333-SharedClasses/tmp
07:13:39  STF 07:13:38.689 - |
07:13:39  **FAILED** at step 1 (Copy sharedClasses jar). Expected return value=1 Actual=0 at /home/jenkins/workspace/Test_openjdk22_j9_extended.system_x86-64_linux_Nightly_testList_2/aqa-tests/TKG/../TKG/output_17206066236256/SharedClasses.SCM01.SingleCL_0/20240710-071333-SharedClasses/setUp.pl line 50.

07:14:08 FAILED test targets:
07:14:08 SharedClasses.SCM01.SingleCL_0
07:14:08 SharedClasses.SCM01.SingleCL_1
07:14:08 SharedClasses.SCM01.MultiCL_1
07:14:08 SharedClasses.SCM01.MultiThread_1
07:14:08 SharedClasses.SCM01.MultiThreadMultiCL_1
07:14:08 SharedClasses.SCM23.MultiThreadMultiCL_0

@pshipton
Copy link
Member Author

@LongyuZhang pls take a look. I suspect this has something to do with the changes to preserve the shared test classes (adoptium/openj9-systemtest#156), and cache the system test jar files.

The xlinux machines weren't available so we've only recently been able to resume testing on this platform. We don't have a last working / first failing build.

@LongyuZhang
Copy link
Contributor

I do see console output 09:05:49 GEN /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1/jdk22 exists, suspect the folder exists, but the classes.jar doesn't exist inside it. @annaibm Could you run this test, keep Workspace and ReportDir, then reserve the machine to check if classes.jar is there, if not check if it generated in other places. thanks.

@LongyuZhang
Copy link
Contributor

@annaibm has tested multiple scenarios with test SharedClasses.SCM01.SingleCL, all passed:

  • no pre-stage folder: hyc_grinder 42011
  • with pre-stage folder system_lib, but no sub-folder sharedClassesTestData/v1/jdk22: hyc_grinder 42012
  • with pre-stage folder sharedClassesTestData/v1/jdk22 and classes.jar: hyc_grinder 42013

Suspect the folder sharedClassesTestData/v1/jdk22 created by other tests, but classes.jar not generated or being deleted after that test completes, so running extended.system as target to test now.

@pshipton
Copy link
Member Author

Both failures occurred on the same machine, I'll take a look at it.

@pshipton
Copy link
Member Author

The directory /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1/jdk22 exists, but classes.jar doesn't exist. The subdirectory net/openj9/sc/classes/ exists and is full of classes. Probably there is a logic error and if the test finds something, it expects classes.jar to exist. There were some machines that ran out of space, this may have been one of them. Deleted jdk22 and hopefully that fixes it.

@annaibm
Copy link
Contributor

annaibm commented Jul 11, 2024

Ran the extended.system tests under the following scenarios on the machine rhel9x86-svl-rt1-1.fyre.ibm:

  1. When /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1/jdk22 did not exist - 42017
19:43:16  GEN   /home/jenkins/testDependency/system_lib/junit/junit.jar
19:43:16  GEN 16:43:11.743 - Using Mode NoOptions. Values = ''
19:43:16  GEN /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1/jdk22 does not exist
19:43:16  GEN 16:43:11.968 - 
19:45:48  STF 16:45:47.283 - 
19:45:48  STF 16:45:47.283 - +------ Step 2 - Copy sharedClasses jar
19:45:48  STF 16:45:47.283 - | Copy a file to another directory
19:45:48  STF 16:45:47.283 - |   Source file: /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1/jdk22/classes.jar
19:45:48  STF 16:45:47.283 - |   Dest dir:    /home/jenkins/workspace/Grinder/aqa-tests/TKG/output_17206453097873/SharedClasses.SCM01.SingleCL_0/20240710-164307-SharedClasses/tmp
19:45:48  STF 16:45:47.283 - |
19:45:48  STF 16:45:47.322 - 
  1. When /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1/jdk22 existed - 42018
23:55:01  GEN 20:55:00.847 - Using Mode NoOptions. Values = ''
23:55:01  GEN /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1/jdk22 exists
23:55:01  GEN 20:55:00.995 - 
23:55:01  STF 20:55:01.136 - +------ Step 1 - Copy sharedClasses jar
23:55:01  STF 20:55:01.136 - | Copy a file to another directory
23:55:01  STF 20:55:01.136 - |   Source file: /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1/jdk22/classes.jar
23:55:01  STF 20:55:01.136 - |   Dest dir:    /home/jenkins/workspace/Grinder/aqa-tests/TKG/output_1720660287936/SharedClasses.SCM01.MultiCL_0/20240710-205457-SharedClasses/tmp

All tests passed in both scenarios.

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

3 participants