adoptium / aqa-tests

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

jdk_security1_2 / AKISerialNumber testcase FAILED in Test_openjdk8_hs_sanity.openjdk_arm_linux #5097

Closed smlambert closed 9 months ago

smlambert commented 9 months ago

AKISerialNumber testcase fails with sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Appears to start failing in this way around Feb 3rd.

Console output:

[2024-02-23T19:12:59.238Z] rerun:
[2024-02-23T19:12:59.238Z] cd /home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/TKG/output_17087153473001/jdk_security1_2/work/scratch/1 && \
[2024-02-23T19:12:59.238Z] DISPLAY=:0 \
[2024-02-23T19:12:59.238Z] HOME=/home/jenkins \
[2024-02-23T19:12:59.238Z] PATH=/bin:/usr/bin:/usr/sbin \
[2024-02-23T19:12:59.238Z]     /home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/jdkbinary/j2sdk-image/bin/java \
[2024-02-23T19:12:59.238Z]         -Dtest.vm.opts='-ea -esa -Xmx512m' \
[2024-02-23T19:12:59.238Z]         -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m' \
[2024-02-23T19:12:59.238Z]         -Dtest.compiler.opts= \
[2024-02-23T19:12:59.238Z]         -Dtest.java.opts= \
[2024-02-23T19:12:59.238Z]         -Dtest.jdk=/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/jdkbinary/j2sdk-image \
[2024-02-23T19:12:59.238Z]         -Dcompile.jdk=/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/jdkbinary/j2sdk-image \
[2024-02-23T19:12:59.238Z]         -Dtest.timeout.factor=8.0 \
[2024-02-23T19:12:59.238Z]         -Dtest.root=/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/openjdk/openjdk-jdk/jdk/test \
[2024-02-23T19:12:59.238Z]         -Dtest.name=java/security/cert/CertPathBuilder/akiExt/AKISerialNumber.java \
[2024-02-23T19:12:59.238Z]         -Dtest.file=/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/openjdk/openjdk-jdk/jdk/test/java/security/cert/CertPathBuilder/akiExt/AKISerialNumber.java \
[2024-02-23T19:12:59.238Z]         -Dtest.src=/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/openjdk/openjdk-jdk/jdk/test/java/security/cert/CertPathBuilder/akiExt \
[2024-02-23T19:12:59.238Z]         -Dtest.src.path=/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/openjdk/openjdk-jdk/jdk/test/java/security/cert/CertPathBuilder/akiExt \
[2024-02-23T19:12:59.238Z]         -Dtest.classes=/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/TKG/output_17087153473001/jdk_security1_2/work/classes/1/java/security/cert/CertPathBuilder/akiExt \
[2024-02-23T19:12:59.238Z]         -Dtest.class.path=/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/TKG/output_17087153473001/jdk_security1_2/work/classes/1/java/security/cert/CertPathBuilder/akiExt \
[2024-02-23T19:12:59.238Z]         -Dtest.class.path.prefix=/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/TKG/output_17087153473001/jdk_security1_2/work/classes/1/java/security/cert/CertPathBuilder/akiExt:/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/openjdk/openjdk-jdk/jdk/test/java/security/cert/CertPathBuilder/akiExt \
[2024-02-23T19:12:59.238Z]         -classpath /home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/TKG/output_17087153473001/jdk_security1_2/work/classes/1/java/security/cert/CertPathBuilder/akiExt:/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/aqa-tests/openjdk/openjdk-jdk/jdk/test/java/security/cert/CertPathBuilder/akiExt:/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/jdkbinary/j2sdk-image/lib/tools.jar:/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/jvmtest/openjdk/jtreg/lib/javatest.jar:/home/jenkins/workspace/Test_openjdk8_hs_sanity.openjdk_arm_linux/jvmtest/openjdk/jtreg/lib/jtreg.jar \
[2024-02-23T19:12:59.238Z]         AKISerialNumber
[2024-02-23T19:12:59.238Z] STDERR:
[2024-02-23T19:12:59.238Z] sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[2024-02-23T19:12:59.238Z]  at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:148)
[2024-02-23T19:12:59.238Z]  at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:129)
[2024-02-23T19:12:59.238Z]  at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
[2024-02-23T19:12:59.238Z]  at AKISerialNumber.main(AKISerialNumber.java:131)
[2024-02-23T19:12:59.238Z]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2024-02-23T19:12:59.238Z]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2024-02-23T19:12:59.238Z]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2024-02-23T19:12:59.238Z]  at java.lang.reflect.Method.invoke(Method.java:498)
[2024-02-23T19:12:59.238Z]  at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
[2024-02-23T19:12:59.238Z]  at java.lang.Thread.run(Thread.java:750)
[2024-02-23T19:12:59.238Z] 
[2024-02-23T19:12:59.238Z] JavaTest Message: Test threw exception: sun.security.provider.certpath.SunCertPathBuilderException
[2024-02-23T19:12:59.238Z] JavaTest Message: shutting down test
[2024-02-23T19:12:59.238Z] 
[2024-02-23T19:12:59.238Z] 
[2024-02-23T19:12:59.238Z] TEST RESULT: Failed. Execution failed: `main' threw exception: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[2024-02-23T19:12:59.238Z] --------------------------------------------------
[2024-02-23T19:15:50.569Z] Test results: passed: 175; failed: 1

Test Info Test Name: jdk_security1_2 Test Duration: 3 min 3 sec Machine: test-docker-ubuntu2004-armv7l-4 TRSS link for the test output: https://trss.adoptium.net/output/test?id=65d92ea543ff67006e8dbe59

Build Info Build Name: Test_openjdk8_hs_sanity.openjdk_arm_linux Jenkins Build start time: Feb 23 2024, 02:07 pm Jenkins Build URL: https://ci.adoptium.net/job/Test_openjdk8_hs_sanity.openjdk_arm_linux/648/ TRSS link for the build: https://trss.adoptium.net/allTestsInfo?buildId=65d92dac43ff67006e8dbd79

Java Version openjdk version "1.8.0_412-beta" OpenJDK Runtime Environment (Temurin)(build 1.8.0_412-beta-202402231854-b04) OpenJDK Client VM (Temurin)(build 25.412-b04, mixed mode)

This test has been failed 5 times since Jan 29 2024, 08:41 pm Java Version when the issue first seen openjdk version "1.8.0_402-beta" OpenJDK Runtime Environment (Temurin)(build 1.8.0_402-beta-202401300130-b06) OpenJDK Client VM (Temurin)(build 25.402-b06, mixed mode) Jenkins Build URL: https://ci.adoptium.net/job/Test_openjdk8_hs_sanity.openjdk_arm_linux/642/

The test failed on machine test-docker-ubuntu2004-armv7l-4 1 times The test failed on machine test-docker-ubuntu2004-armv7l-1 2 times The test failed on machine test-docker-ubuntu2004-armv7l-2 1 times The test failed on machine test-docker-ubuntu2204-armv7l-2 1 times

Rerun in Grinder

pshipton commented 9 months ago

FYI https://bugs.openjdk.org/browse/JDK-8325096

smlambert commented 9 months ago

Will plan to exclude on JDK8 arm_linux while the fix is not ported to the aarch32-jdk8u branch we build from:

https://github.com/adoptium/aarch32-jdk8u/blob/master/jdk/test/java/security/cert/CertPathBuilder/akiExt/AKISerialNumber.java