Comments (4)
Fix: we need to redirect SharedClasses tests to generate related classes under workspace dir, not system_lib
.
https://github.com/eclipse-aqavit/openj9-systemtest/blob/0cc1cdb8e33b41de4478f8f07d53a461905e5f49/openj9.test.sharedClasses/src/test.sharedClasses/net/openj9/stf/SharedClasses.java#L193
Try getTestRoots(), getTmpDir(), or getResultsDir(). (see https://github.com/adoptium/STF/blob/f40f3ca179d2bcd7f6c32838d5475c5f0a26cb47/stf.core/src/stf.core/net/adoptopenjdk/stf/environment/StfEnvironmentCore.java)
@annaibm please take care of this. We need to ensure that getPrereqRoots()
is not used anywhere other than getting 3rd party jars. Thanks
from openj9.
- SharedClasses.SCM01.SingleCL passed on cent8-aarch64-1: https://openj9-jenkins.osuosl.org/job/Grinder/3638/consoleFull
- SharedClasses.SCM01.SingleCL failed on ub20-aarch64-osu-1: https://openj9-jenkins.osuosl.org/job/Grinder/3639/consoleFull
getDependencies section looks the same.
00:00:30.452 downloading https://openj9-jenkins.osuosl.org//job/systemtest.getDependency/lastSuccessfulBuild/artifact/systemtest_prereqs/log4j/log4j-core.jar
00:00:30.709 --> file downloaded to /home/jenkins/workspace/Grinder/../../testDependency/system_lib/log4j/log4j-core.jar
00:00:30.709 Checksum verification skipped for /home/jenkins/workspace/Grinder/../../testDependency/system_lib/log4j/log4j-core.jar
...
00:01:03.887 downloading https://openj9-jenkins.osuosl.org//job/systemtest.getDependency/lastSuccessfulBuild/artifact/systemtest_prereqs/log4j/log4j-api.jar
00:01:04.359 --> file downloaded to /home/jenkins/workspace/Grinder/../../testDependency/system_lib/log4j/log4j-api.jar
00:01:04.359 Checksum verification skipped for /home/jenkins/workspace/Grinder/../../testDependency/system_lib/log4j/log4j-api.jar
...
00:00:33.510 downloading https://openj9-jenkins.osuosl.org//job/systemtest.getDependency/lastSuccessfulBuild/artifact/systemtest_prereqs/junit/junit.jar
00:00:33.510 --> file downloaded to /home/jenkins/workspace/Grinder/../../testDependency/system_lib/junit/junit.jar
00:00:33.510 Checksum verification skipped for /home/jenkins/workspace/Grinder/../../testDependency/system_lib/junit/junit.jar
00:04:09.878 GEN /home/jenkins/testDependency/system_lib/log4j/log4j-api.jar
00:04:09.878 GEN /home/jenkins/testDependency/system_lib/log4j/log4j-core.jar
00:04:09.878 GEN /home/jenkins/testDependency/system_lib/junit/junit.jar
...
from openj9.
Tested with 3 old SHA:
ADOPTOPENJDK_BRANCH: 42609ec5c70, STF: f8d647e99075 and TKG: 3ed8f8b66bc
https://openj9-jenkins.osuosl.org/job/Grinder/3642/ passed onub20-aarch64-osu-1: https://openj9-jenkins.osuosl.org/job/Grinder/3642/
from openj9.
Failed run:
00:04:52.634 GEN /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1 exists
...
00:04:52.897 STF 21:02:26.302 - +------ Step 1 - Copy sharedClasses jar
00:04:52.897 STF 21:02:26.302 - | Copy a file to another directory
00:04:52.897 STF 21:02:26.302 - | Source file: /home/jenkins/testDependency/system_lib/sharedClassesTestData/v1/classes.jar
00:04:52.897 STF 21:02:26.302 - | Dest dir: /home/jenkins/workspace/Grinder/aqa-tests/TKG/output_17171029401691/SharedClasses.SCM01.SingleCL_0/20240530-210221-SharedClasses/tmp
00:04:52.897 STF 21:02:26.302 - |
...
Passed run:
00:05:45.246 GEN /home/jenkins/workspace/Grinder/jvmtest/system/systemtest_prereqs/sharedClassesTestData/v1 does not exist
...
00:05:45.505 STF 23:43:13.044 - +------ Step 1 - Create Shared Classes jars
...
00:05:45.505 STF 23:43:13.044 - Running command: /home/jenkins/workspace/Grinder/jdkbinary/j2sdk-image/bin/java -classpath /home/jenkins/workspace/Grinder/jvmtest/system/STF/stf.core/bin:/home/jenkins/workspace/Grinder/jvmtest/system/openj9-systemtest/openj9.test.sharedClasses/bin net.openj9.test.sc.JavaGen /home/jenkins/workspace/Grinder/jvmtest/system/systemtest_prereqs/sharedClassesTestData/v1 10000
00:05:45.505 STF 23:43:13.044 - Redirecting stderr to /home/jenkins/workspace/Grinder/aqa-tests/TKG/output_17171125877172/SharedClasses.SCM01.SingleCL_0/20240530-234308-SharedClasses/results/1.CSC.stderr
00:05:45.505 STF 23:43:13.044 - Redirecting stdout to /home/jenkins/workspace/Grinder/aqa-tests/TKG/output_17171125877172/SharedClasses.SCM01.SingleCL_0/20240530-234308-SharedClasses/results/1.CSC.stdout
00:05:45.505 STF 23:43:13.056 - Monitoring processes: CSC
00:05:46.074 CSC 30/05/24 23:43:13: Generating jar files in /home/jenkins/workspace/Grinder/jvmtest/system/systemtest_prereqs/sharedClassesTestData/v1
...
It looks like the test is leveraging system_lib
dir to store sharedClasses jar. It was not a problem because system_lib
(previously called systemtest_prereqs
) was created under workspace (get deleted after each run). The problem shows up when system_lib
is preserved.
from openj9.
Related Issues (20)
- jdk_util_0_FAILED java/util/regex/RegExTest.java NullPointerException: Cannot read the array length because "value" is null at java.base/java.lang.String.rangeCheck(String.java:482)
- JDK23 java/io/PipedInputStream/CloseAndAvailableRC.java Segmentation error vmState=0x00000000 HOT 2
- JDK23 jdk11_tier1_buffer_0_FAILED java/nio/Buffer/BulkPutBuffer.java j9ji.110 ** ASSERTION FAILED ** at codert_vm/jswalk.c:534: ((0 ))
- JDK17 : j9vm.227 * ** ASSERTION FAILED ** at openj9-openjdk-jdk17/openj9/runtime/vm/VMAccess.cpp:431: ((vmThread)->publicFlags & J9_PUBLIC_FLAGS_VM_ACCESS) HOT 1
- OpenJDK langtools failures HOT 1
- TestHashTablePerformance_2 failure with JITServer: collisions have been handled too slow expected [true] but found [false] HOT 11
- The Preload attribute is renamed to LoadableDescriptors in Valhalla HOT 1
- jdk_security3_1_FAILED javax/net/ssl/ServerName/SSLEngineExplorerMatchedSNI.java SSLException: Unrecognized record version TLS-1.82 , plaintext connection?
- JDK23 jenkins job SecurityException: Couldn't parse jurisdiction policy files in: unlimited
- How can I update the information in contributing to the project? HOT 3
- cmdLineTester_criu_nonPortableRestore CheckpointDeadlock Success conditions not found HOT 1
- Improve JITServer/test compatibility with JITAAS HOT 1
- openJcePlusTests_0_FAILED java/lang/OutOfMemoryError, exception "native memory exhausted" HOT 2
- openJcePlusTests_0_FAILED Segmentation error vmState=0x00020019 HOT 14
- openJcePlusTests_0_FAILED com.ibm.crypto.plus.provider.ock.OCKException: Context is not in FIPS mode HOT 1
- cmdLineTester_criu_nonPortableRestore_7_FAILED testTimeCompensation() hang HOT 2
- cmdLineTester_criu_nonPortableRestore MethodTypeDeadlockTest Blocking operation is not allowed in CRIU single thread mode HOT 3
- OpenJDK java/foreign/MemoryLayoutPrincipalTotalityTest crash vmState=0x000503ff HOT 1
- Error
- jdk/incubator/vector crash across platforms vmState=0x000561ad HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openj9.