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

system test prerequisite problem - zip file is empty #4912

Open
pshipton opened this issue Dec 9, 2023 · 5 comments
Open

system test prerequisite problem - zip file is empty #4912

pshipton opened this issue Dec 9, 2023 · 5 comments

Comments

@pshipton
Copy link
Contributor

pshipton commented Dec 9, 2023

https://openj9-jenkins.osuosl.org/job/Test_openjdk17_j9_extended.system_x86-64_mac_Nightly_testList_1/546 - mac10-x86-3

21:47:20  build-java:
21:47:20      [javac] Compiling 58 source files to /Users/****/workspace/Test_openjdk17_j9_extended.system_x86-64_mac_Nightly_testList_1/aqa-tests/system/STF/stf.core/bin
21:47:20      [javac] error: error reading /Users/****/workspace/Test_openjdk17_j9_extended.system_x86-64_mac_Nightly_testList_1/aqa-tests/systemtest_prereqs/junit/junit.jar; zip file is empty
21:47:20      [javac] error: error reading /Users/****/workspace/Test_openjdk17_j9_extended.system_x86-64_mac_Nightly_testList_1/aqa-tests/systemtest_prereqs/junit/hamcrest-core.jar; zip file is empty
21:47:20      [javac] error: error reading /Users/****/workspace/Test_openjdk17_j9_extended.system_x86-64_mac_Nightly_testList_1/aqa-tests/systemtest_prereqs/log4j/log4j-api.jar; zip file is empty
21:47:20      [javac] error: error reading /Users/****/workspace/Test_openjdk17_j9_extended.system_x86-64_mac_Nightly_testList_1/aqa-tests/systemtest_prereqs/log4j
@pshipton
Copy link
Contributor Author

pshipton commented Dec 9, 2023

@llxia fyi

@llxia
Copy link
Contributor

llxia commented Dec 11, 2023

This is a known issue with Jenkins copyArtifacts on UNB machine.

00:17:31.891  Timeout set to expire in 1 hr 0 min
[Pipeline] {
[Pipeline] copyArtifacts
01:17:31.892  Cancelling nested steps due to timeout
[Pipeline] }
[Pipeline] // timeout
[Pipeline] echo
01:17:32.069  Exception: org.jenkinsci.plugins.workflow.steps.FlowInterruptedException
[Pipeline] echo
01:17:32.071  Cannot run copyArtifacts from test.getDependency/systemtest.getDependency. Skipping copyArtifacts...

The solution for #4500 resolved the get dependencies (logic in TKG) - test.getDependency for all tests except for system tests. And it worked as expected. systemtest.getDependency has its own logic (in both STF and aqa-systemtest repo). It does not align with the logic in TKG.

If we want to pre-stage system test libs on the machines (same as the rest of tests in TKG), we need to look into system tests logic and update it accordingly.

btw, I do not think systemtest can check sha and re-download. And it uses SDK to build some test libs. https://openj9-jenkins.osuosl.org/job/systemtest.getDependency/36/consoleFull

@llxia
Copy link
Contributor

llxia commented Jan 16, 2024

Alternatively, we can leave https://ci.adoptium.net/job/systemtest.getDependency/ as it is. And leverage https://github.com/adoptium/TKG/blob/master/scripts/getDependencies.pl in TKG to pre-stage 3rd party jars for system tests.

@llxia
Copy link
Contributor

llxia commented Feb 21, 2024

@annaibm Please take a look when you have time. We can talk in more detail in the meeting.

annaibm added a commit to annaibm/TKG that referenced this issue Apr 16, 2024
- Enables to avoid system test prerequisite zip file being empty.

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Apr 16, 2024
- Enables to avoid system test prerequisite zip file being empty.

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Apr 16, 2024
- Enables to avoid system test prerequisite zip file being empty.

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Apr 16, 2024
- Enables to avoid system test prerequisite zip file being empty.

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Apr 17, 2024
- Prestage system test prequisities to system_prereq_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Apr 17, 2024
- Prestage system test prequisities to system_prereq_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Apr 17, 2024
- Prestage system test prequisities to system_prereq_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Apr 17, 2024
- Enables to avoid system test prerequisite zip file being empty.

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
@llxia
Copy link
Contributor

llxia commented Apr 18, 2024

Just for the record, we will break down this into several tasks:

  • download the system test jars from https://ci.adoptium.net/job/systemtest.getDependency/ and ignore checksum if the jar is generated by systemtest.getDependency
  • pre-stage system test jars in a separate folder on the machine (i.e., testDependency/system_lib)(some system test libs may be the same as functional tests libs with version differences)

Enhancements:

annaibm added a commit to annaibm/TKG that referenced this issue Apr 18, 2024
- Enables to avoid system test prerequisite zip file being empty.

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Apr 18, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Apr 18, 2024
- Enables to avoid system test prerequisite zip file being empty.

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Apr 18, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Apr 19, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Apr 26, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/STF that referenced this issue Apr 30, 2024
- added system_lib_dir env property to top.xml
- added condition to check the if the system_lib_dir property is stage

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/STF that referenced this issue May 21, 2024
- added system_lib_dir env property to top.xml
- added condition to check the if the system_lib_dir property is set

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/STF that referenced this issue May 21, 2024
- added system_lib_dir env property to top.xml
- added condition to check the if the system_lib_dir property is set

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/STF that referenced this issue May 22, 2024
- added system_lib_dir env property to top.xml
- added condition to check the if the system_lib_dir property is set

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue May 22, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue May 22, 2024
- Enables to avoid system test prerequisite zip file being empty.

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue May 22, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue May 22, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue May 28, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue May 28, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue May 29, 2024
- Enables to avoid system test prerequisite zip file being empty.

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
LongyuZhang pushed a commit to adoptium/STF that referenced this issue May 29, 2024
- added system_lib_dir env property to top.xml
- added condition to check the if the system_lib_dir property is set

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
LongyuZhang pushed a commit that referenced this issue May 29, 2024
- Prestage system test prequisities to system_lib

related: #4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Jun 3, 2024
- Enables to avoid system test prerequisite zip file being empty.
- system jars are downloaded under system_lib.

related: adoptium/aqa-tests#4912
related: adoptium#560
related: adoptium#561

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Jun 3, 2024
- Enables to avoid system test prerequisite zip file being empty.
- system jars are downloaded under system_lib.

related: adoptium/aqa-tests#4912
related: adoptium#560
related: adoptium#561

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Jun 3, 2024
- Enables to avoid system test prerequisite zip file being empty.
- System jars are downloaded under system_lib.

related: adoptium/aqa-tests#4912
related: adoptium#560
related: adoptium#561

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Jun 5, 2024
- Enables to avoid system test prerequisite zip file being empty.
- System jars are downloaded under system_lib.

related: adoptium/aqa-tests#4912
related: adoptium#560
related: adoptium#561

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Jun 18, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Jun 18, 2024
- Prestage system test prequisities to system_lib

related: adoptium#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Jun 18, 2024
- Enables to avoid system test prerequisite zip file being empty.
- System jars are downloaded under system_lib.

related: adoptium/aqa-tests#4912
related: adoptium#560
related: adoptium#561

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Jun 20, 2024
- Revert "Revert "Added system_lib for system prestage jars (adoptium#5239)" (adoptium#5361)"
This reverts commit 071c84b.
- Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories.
- Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars.

related: adoptium#4912
related: https://github.ibm.com/runtimes/backlog/issues/1443

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Jun 20, 2024
- Revert "Revert "Added system_lib for system prestage jars (adoptium#5239)" (adoptium#5361)"
This reverts commit 071c84b.
- Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories.
- Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars.

related: adoptium#4912
related: https://github.ibm.com/runtimes/backlog/issues/1443

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Jun 20, 2024
- Revert "Revert "Added system_lib for system prestage jars (adoptium#5239)" (adoptium#5361)"
This reverts commit 071c84b.
- Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories.
- Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars.

related: adoptium#4912
related: https://github.ibm.com/runtimes/backlog/issues/1443

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Jun 21, 2024
- Added system_lib for system prestage jars.
- Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories.
- Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars.

related: adoptium#4912
related: https://github.ibm.com/runtimes/backlog/issues/1443

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Jun 26, 2024
- Enables to avoid system test prerequisite zip file being empty.
- System jars are downloaded under system_lib.

related: adoptium/aqa-tests#4912
related: adoptium#560
related: adoptium#561

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/TKG that referenced this issue Jun 26, 2024
- Enables to avoid system test prerequisite zip file being empty.
- System jars are downloaded under system_lib.

related: adoptium/aqa-tests#4912
related: adoptium#560
related: adoptium#561

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Jun 26, 2024
- Added system_lib for system prestage jars.
- Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories.
- Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars.

related: adoptium#4912
related: https://github.ibm.com/runtimes/backlog/issues/1443

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Jun 26, 2024
- Added system_lib for system prestage jars.
- Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories.
- Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars.

related: adoptium#4912
related: https://github.ibm.com/runtimes/backlog/issues/1443

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/STF that referenced this issue Jun 26, 2024
- added system_lib_dir env property to top.xml
- added condition to check the if the system_lib_dir property is set

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Jun 26, 2024
- Added system_lib for system prestage jars.
- Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories.
- Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars.

related: adoptium#4912
related: https://github.ibm.com/runtimes/backlog/issues/1443

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Jun 26, 2024
- Added system_lib for system prestage jars.
- Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories.
- Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars.

related: adoptium#4912
related: https://github.ibm.com/runtimes/backlog/issues/1443

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
LongyuZhang pushed a commit that referenced this issue Jun 26, 2024
- Added system_lib for system prestage jars.
- Check if vendor test repo is SVTTestRepo and if so create directories `systemtest_prereqs` under respective test directories.
- Copy files from `system_lib` to the created directories so they can levarage the use of the system prestage jars.

related: #4912
related: https://github.ibm.com/runtimes/backlog/issues/1443

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
LongyuZhang pushed a commit to adoptium/STF that referenced this issue Jun 26, 2024
- added system_lib_dir env property to top.xml
- added condition to check the if the system_lib_dir property is set

related: adoptium/aqa-tests#4912

Signed-off-by: Anna Babu Palathingal <anna.bp@ibm.com>
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

2 participants