adoptium / infrastructure

This repo contains all information about machine maintenance.
Apache License 2.0
84 stars 100 forks source link

`sun/security/pkcs11` tests failing on RHEL8 systems #2900

Open sxa opened 1 year ago

sxa commented 1 year ago

Please set the title to indicate the test name and machine name where known.

To make it easy for the infrastructure team to repeat and diagnose, please answer the following questions:

Any other details: Split out from #2030 as that issue is resolved See also https://github.com/adoptium/infrastructure/issues/2360 and https://github.com/adoptium/infrastructure/issues/1829 which are related to issues on this RHEL8 system.

sxa commented 1 year ago

Failures occurred on the s390x RHEL8 system too ... Will assign myself so I can discuss with the Red Hat internal team.

sxa commented 1 year ago

Upstream issue: https://bugs.openjdk.org/browse/JDK-8295343

sxa commented 1 year ago

@smlambert What would you propose as the next action here?

smlambert commented 1 year ago

Exclude the tests in our problem lists under https://bugs.openjdk.org/browse/JDK-8295343 (and no we currently do not support by OS sub-flavours and supporting such granular exclusions is currently not in plan, unless somehow jtreg already offers that feature), and try to see an expedited fix to JDK-8295343 to be able to re-enable the tests quickly.

sxa commented 1 year ago

See also https://ci.adoptium.net/job/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/86/testReport/ and https://ci.adoptium.net/job/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_0/82/testReport/ which ran on test-equinix_esxi-ubuntu2204-x64-1 and test-equinix_esxi-ubuntu2204-x64-2, suggesting that Ubuntu 22.04 may be subject to the same issues as they both failed the following in the jdk_security3 suites:

New grinders to determine problematic tests

RHEL8/x64 failures (JDK8):

On test-docker-ubuntu2204-x64-1 (JDK20):

On test-equinix_esxi-ubuntu2204-x64-1 (JDK8):

Ubuntu 20.04: https://ci.adoptium.net/job/Grinder/6905/ (Same three failures as Ubuntu 22.04)

RHEL8/x64 JDK20: https://ci.adoptium.net/job/Grinder/6909/console - PASSED

Ubuntu 22.04 x64 JDK20: All passed: https://ci.adoptium.net/job/Grinder/6904/

(I was assuming we'd have a nice simple list of things to exclude ... :-) )

On RHEL8/x64: JDK8 (14 failures) JDK11 (16 failures) JDK17 (12 failures) JDK19 (12 failures) JDK20 Nightly (0 failures!) (Note - failures can be /2 since each one is there twice for the _0 and _1` suites)

Test JDK8 JDK11 JDK17 JDK19 JDK20
pkcs11/Signature/ByteBuffers [*]
pkcs11/Signature/ReinitSignature [*]
pkcs11/Signature/TestRSAKeyLength [*] n/a
pkcs11/fips/TestTLS12 n/a n/a n/a
tools/autotest.sh n/a n/a n/a
pkcs11/rsa/TestKeyFactory [+]
pkcs11/rsa/TestSignatures
pkcs11/KeyStore/Basic.java n/a
pkcs11/KeyPair/TestKeyPairGenerator n/a n/a
tools/NssTest n/a n/a n/a
lib/cacerts/VerifyCACerts n/a n/a n/a n/a
X509TrustManager/Distrust.java n/a n/a n/a n/a

[*] - the top 3 in this table are the ones definitely related to the enforced minimum key lengths in RHEL8, and suggests a fix may have gone into to 17+ [+] - Note that while sun/security/pkcs11/rsa/TestKeyFactory.java.TestKeyFactory is a failure, sun/security/pkcs11/rsa/TestKeyFactory passed