adoptium / aqa-tests

Home of test infrastructure for Adoptium builds
https://adoptium.net/aqavit
Apache License 2.0
128 stars 308 forks source link

JDK11 alpine-linux failures #5425

Closed smlambert closed 1 month ago

smlambert commented 2 months ago

All JDK11 test jobs on alpine-linux are failing with the error below. See example from recent Grid view:

Screenshot 2024-07-08 at 5 46 33 PM
10:11:27  + bash ./compile.sh
10:11:27  JAVA_HOME is set to /home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/jdkbinary/j2sdk-image
10:11:27  UNAME_OS is Linux
10:11:27  LIB_DIR is set to /home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/../../testDependency/lib
10:11:27  rm -f -r /home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/aqa-tests/TKG/../TKG/output_compilation; \
10:11:27  mkdir -p /home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/aqa-tests/TKG/../TKG/output_compilation; \
10:11:27  (ant -f ./scripts/build_tools.xml -DTEST_JDK_HOME=/home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/jdkbinary/j2sdk-image -DTEST_ROOT=/home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/aqa-tests/TKG/.. -DLIB_DIR=/home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/../../testDependency/lib 2>&1; echo $? ) | tee "/home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/aqa-tests/TKG/../TKG/output_compilation/compilation.log"; \
10:11:27  if [ -z "$(tail -1 /home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/aqa-tests/TKG/../TKG/output_compilation/compilation.log | grep 0)" ]; then perl scripts/moveDmp.pl --compileLogPath="/home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/aqa-tests/TKG/../TKG/output_compilation/compilation.log" --testRoot="/home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/aqa-tests/TKG/.."; false; else rm -f -r "/home/jenkins/workspace/Test_openjdk11_hs_sanity.openjdk_x86-64_alpine-linux_testList_1/aqa-tests/TKG/../TKG/output_compilation"; fi
10:11:27  Exception in thread "main" java.lang.NoSuchMethodError: getMainType
10:11:27  1
10:11:27  make: *** [makefile:114: compileTools] Error 1

Possibly related: https://github.com/adoptium/aqa-tests/pull/4559/files, in which case try removing the restriction on JDK8 from that PR and monitor behaviour.

smlambert commented 2 months ago

Suggested fix is to update https://github.com/adoptium/aqa-tests/blob/master/buildenv/jenkins/JenkinsfileBase#L11

if (JDK_IMPL == 'hotspot' && JDK_VERSION == '8' && PLATFORM.contains('alpine-linux')) {

to

if (JDK_IMPL == 'hotspot' && PLATFORM.contains('alpine-linux')) {