eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

Diagnostic files in RasapiTest are not captured #14364

Open llxia opened 2 years ago

llxia commented 2 years ago

Ideally, all tests should output into aqa-tests/TKG/output_<timestamp>/<testTargetName> and the test pipeline will archive it after the test execution in the case of failure. However, diagnostic files in RasapiTest are outputted into test resource dir (i.e., /home/jenkins/workspace/Grinder/jvmtest/functional/RasapiTest/) , not aqa-tests/TKG/output_<timestamp>/RasapiTest.

https://openj9-jenkins.osuosl.org/view/Test/job/Grinder/570/

12:14:57       [test]     [junit] JVMDUMP032I JVM requested System dump using '/home/jenkins/workspace/Grinder/jvmtest/functional/RasapiTest/core.20220125.121443.18087942.0026.dmp' in response to an event
12:14:57       [test]     [junit] JVMDUMP010I System dump written to /home/jenkins/workspace/Grinder/jvmtest/functional/RasapiTest/core.20220125.121443.18087942.0026.dmp
12:14:57       [test]     [junit] JVMDUMP032I JVM requested Heap dump using '/home/jenkins/workspace/Grinder/jvmtest/functional/RasapiTest/heapdump.20220125.121443.18087942.0027.phd' in response to an event
12:15:28       [test]     [junit] JVMDUMP010I Heap dump written to /home/jenkins/workspace/Grinder/jvmtest/functional/RasapiTest/heapdump.20220125.121443.18087942.0027.phd
12:15:28       [test]     [junit] JVMDUMP032I JVM requested Java dump using '/home/jenkins/workspace/Grinder/jvmtest/functional/RasapiTest/javacore.20220125.121443.18087942.0028.txt' in response to an event
12:15:28       [test]     [junit] JVMDUMP010I Java dump written to /home/jenkins/workspace/Grinder/jvmtest/functional/RasapiTest/javacore.20220125.121443.18087942.0028.txt
12:15:28       [test]     [junit] JVMDUMP032I JVM requested Snap dump using '/home/jenkins/workspace/Grinder/jvmtest/functional/RasapiTest/Snap.20220125.121443.18087942.0029.trc' in response to an event
12:15:28       [test]     [junit] JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2022/01/25 12:15:27 - please wait.
12:15:28       [test]     [junit] JVMDUMP010I Snap dump written to /home/jenkins/workspace/Grinder/jvmtest/functional/RasapiTest/Snap.20220125.121443.18087942.0029.trc

This is due to we are running tests under ant script dir (not the current dir - aqa-tests/TKG/output_<timestamp>/<testTargetName>). This test needs to be updated. We also need to check other ant tests in the repo and update them as needed.

pshipton commented 2 years ago

Unless there is a better solution, I plan to fix testRAPAPI itself via https://github.com/eclipse-openj9/openj9/compare/master...pshipton:ras via -Dbasedir=$(REPORTDIR) as previously suggested. There is no PR created yet, as we're still working on the solution to testRASPI failures https://github.com/eclipse-openj9/openj9/issues/14193. Until we have a solution for the failures, I don't want to collect core files every day when the test fails.

llxia commented 2 years ago

Thanks @pshipton . Please go ahead with the -Dbasedir=$(REPORTDIR) change.