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

Jep442Tests_testLinkerFfi_DownCall FAILED: test_addBoolStruct1AndNestedBoolArrayStruct2WithXor_returnStruct2_dupStruct #20087

Closed JasonFengJ9 closed 2 months ago

JasonFengJ9 commented 2 months ago

Failure link

From an internal build(paix906):

java version "21.0.5-beta" 2024-10-15
IBM Semeru Runtime Certified Edition 21.0.5+4-202408290026 (build 21.0.5-beta+4-202408290026)
Eclipse OpenJ9 VM 21.0.5+4-202408290026 (build master-41d13b1de3, JRE 21 AIX ppc64-64-Bit Compressed References 20240829_246 (JIT enabled, AOT enabled)
OpenJ9   - 41d13b1de3
OMR      - 6dc282ee5
JCL      - 405d32414 based on jdk-21.0.5+4)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2024-08-29T04:45:27.817Z] variation: --enable-preview
[2024-08-29T04:45:27.817Z] JVM_OPTIONS:  --enable-preview 

[2024-08-29T04:45:33.953Z] FAILED: test_addBoolStruct1AndNestedBoolArrayStruct2WithXor_returnStruct2_dupStruct
[2024-08-29T04:45:33.953Z] java.util.NoSuchElementException: No value present
[2024-08-29T04:45:33.953Z]  at java.base/java.util.Optional.get(Optional.java:143)
[2024-08-29T04:45:33.953Z]  at org.openj9.test.jep442.downcall.DuplicateStructTests.test_addBoolStruct1AndNestedBoolArrayStruct2WithXor_returnStruct2_dupStruct(DuplicateStructTests.java:227)
[2024-08-29T04:45:33.953Z]  at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[2024-08-29T04:45:33.953Z]  at java.base/java.lang.reflect.Method.invoke(Method.java:586)
[2024-08-29T04:45:33.953Z]  at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
[2024-08-29T04:45:33.953Z]  at org.testng.internal.Invoker.invokeMethod(Invoker.java:580)
[2024-08-29T04:45:33.953Z]  at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:716)
[2024-08-29T04:45:33.953Z]  at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:988)
[2024-08-29T04:45:33.953Z]  at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
[2024-08-29T04:45:33.953Z]  at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
[2024-08-29T04:45:33.953Z]  at org.testng.TestRunner.privateRun(TestRunner.java:648)
[2024-08-29T04:45:33.953Z]  at org.testng.TestRunner.run(TestRunner.java:505)
[2024-08-29T04:45:33.953Z]  at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
[2024-08-29T04:45:33.953Z]  at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
[2024-08-29T04:45:33.953Z]  at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
[2024-08-29T04:45:33.953Z]  at org.testng.SuiteRunner.run(SuiteRunner.java:364)
[2024-08-29T04:45:33.953Z]  at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
[2024-08-29T04:45:33.953Z]  at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
[2024-08-29T04:45:33.953Z]  at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
[2024-08-29T04:45:33.953Z]  at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
[2024-08-29T04:45:33.953Z]  at org.testng.TestNG.runSuites(TestNG.java:1049)
[2024-08-29T04:45:33.953Z]  at org.testng.TestNG.run(TestNG.java:1017)
[2024-08-29T04:45:33.953Z]  at org.testng.TestNG.privateMain(TestNG.java:1354)
[2024-08-29T04:45:33.953Z]  at org.testng.TestNG.main(TestNG.java:1323)
[2024-08-29T04:45:33.953Z] 
[2024-08-29T04:45:33.953Z] 
[2024-08-29T04:45:33.953Z] ===============================================
[2024-08-29T04:45:33.953Z]     Jep442Tests_testLinkerFfi_DownCall
[2024-08-29T04:45:33.953Z]     Tests run: 595, Failures: 1, Skips: 0
[2024-08-29T04:45:33.953Z] ===============================================
[2024-08-29T04:45:33.953Z] 
[2024-08-29T04:45:33.953Z] 
[2024-08-29T04:45:33.953Z] ===============================================
[2024-08-29T04:45:33.953Z] Java21 only test suite
[2024-08-29T04:45:33.953Z] Total tests run: 595, Failures: 1, Skips: 0
[2024-08-29T04:45:33.953Z] ===============================================
[2024-08-29T04:45:33.953Z] 
[2024-08-29T04:45:34.710Z] 
[2024-08-29T04:45:34.710Z] 15 + 27 = 42
[2024-08-29T04:45:34.710Z] 
[2024-08-29T04:45:34.710Z] 15 + 27 = 42
[2024-08-29T04:45:34.710Z] 
[2024-08-29T04:45:34.710Z] 15 + 27 = 42
[2024-08-29T04:45:34.710Z] 
[2024-08-29T04:45:34.710Z] 15 + 27 = 42
[2024-08-29T04:45:34.710Z] -----------------------------------
[2024-08-29T04:45:34.710Z] Jep442Tests_testLinkerFfi_DownCall_0_FAILED

50x internal grinder - all failed

This is different from

pshipton commented 2 months ago

@ChengJin01 @TobiAjila fyi

ChengJin01 commented 2 months ago

[1] Looking at the failure with No value present which means it failed to locate the test changed yesterday at https://github.com/eclipse-openj9/openj9/pull/20080.

[2024-08-29T04:45:33.953Z] FAILED: test_addBoolStruct1AndNestedBoolArrayStruct2WithXor_returnStruct2_dupStruct
[2024-08-29T04:45:33.953Z] java.util.NoSuchElementException: No value present <-------
[2024-08-29T04:45:33.953Z]  at java.base/java.util.Optional.get(Optional.java:143)
[2024-08-29T04:45:33.953Z]  at org.openj9.test.jep442.downcall.DuplicateStructTests.test_addBoolStruct1AndNestedBoolArrayStruct2WithXor_returnStruct2_dupStruct(DuplicateStructTests.java:227)

[2] Looking at the test-images at .gz in https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk21_j9_sanity.functional_ppc64_aix_testList_1/220/consoleFull

-bash-5.0$ dump -Tv -X64  libclinkerffitests.so
libclinkerffitests.so:
                        ***Loader Section***
                        ***Loader Symbol Table Information***
[Index]      Value      Scn     IMEX Sclass   Type           IMPid Name
[323]   0x1100024a0    .data      EXP     DS SECdef        [noIMid] addBoolStruct1AndNestedBoolArrayStruct2WithXor_returnStruct1_dupStruct M<---- only this function exist in the library

in which addBoolStruct1AndNestedBoolArrayStruct2WithXor_returnStruct2_dupStruct was missing in the library.

So there was a mismatch between the Jenkins job and the native test library, in which the test code in java was the latest one but the native library was outdated without the latest changes at https://github.com/eclipse-openj9/openj9/pull/20080, which means the building job was the outdated.

ChengJin01 commented 2 months ago

The internal JDK & test-images

JDK 2024-08-28 21:35:51 -0400 255.4 MB
test-image 2024-08-28 21:36:05 -0400  60.9 MB

were generated at 21:36 yesterday before the changes at https://github.com/eclipse-openj9/openj9/pull/20080 which is merged at 20:56.

ChengJin01 commented 2 months ago

@JasonFengJ9 & @pshipton, please wait to let the Jenkins job to pick up the latest nightly build generated today to verify the test.

JasonFengJ9 commented 2 months ago

Passed an internal grinder with latest nightly build.

Closing