diff mbox series

[2/2] gnutls: skip long-duration tests, sort test_disallow list

Message ID 20261202161500.713127-2-tgamblin@baylibre.com
State New
Headers show
Series [1/2] gnutls: improve disallowed test matching | expand

Commit Message

Trevor Gamblin Dec. 2, 2026, 4:15 p.m. UTC
gnutls' ptest suite has been intermittently failing on the Autobuilder
for some time, particularly for qemuriscv64. Looking at the test
durations (using a modified run-ptest to time them), the longest are:

|gnutls slowest tests:
|--------------------
|   30.05s mini-dtls-hello-verify-48
|   25.83s tls12-ffdhe
|   19.23s x509sign-verify-ecdsa
|   17.83s x509sign-verify-rsa
|   10.20s pkcs12_encode

Drop 'mini-dtls-hello-verify-48' and 'tls12-ffdhe' only, which cuts a
combined ~56s from the test suite (when emulated on a Ryzen 9 7900
x86_64 machine), leaving 'x509sign-verify-ecdsa' as the longest
remaining test at ~19s.  This should help when the host system is under
heavy load, while retaining most of the functionality being validated in
the ptest.

Also sort the test_disallowlist alphabetically.

[YOCTO #16162]

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
 meta/recipes-support/gnutls/gnutls/run-ptest | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-support/gnutls/gnutls/run-ptest b/meta/recipes-support/gnutls/gnutls/run-ptest
index 34cb6cc12c..5342f5d25a 100644
--- a/meta/recipes-support/gnutls/gnutls/run-ptest
+++ b/meta/recipes-support/gnutls/gnutls/run-ptest
@@ -44,10 +44,12 @@  is_disallowed() {
 # currently not exported to target.
 
 test_disallowlist=""
+test_disallowlist="${test_disallowlist} @EXTRA_TEST_DISALLOWLIST@"
 test_disallowlist="${test_disallowlist} compress-cert-conf"
 test_disallowlist="${test_disallowlist} dtls-stress"
 test_disallowlist="${test_disallowlist} handshake-large-cert"
 test_disallowlist="${test_disallowlist} id-on-xmppAddr"
+test_disallowlist="${test_disallowlist} mini-dtls-hello-verify-48"
 test_disallowlist="${test_disallowlist} mini-x509-cas"
 test_disallowlist="${test_disallowlist} pkcs12_simple"
 test_disallowlist="${test_disallowlist} protocol-set-allowlist"
@@ -59,8 +61,8 @@  test_disallowlist="${test_disallowlist} system-override-hash"
 test_disallowlist="${test_disallowlist} system-override-sig"
 test_disallowlist="${test_disallowlist} system-override-sig-tls"
 test_disallowlist="${test_disallowlist} system-prio-file"
+test_disallowlist="${test_disallowlist} tls12-ffdhe"
 test_disallowlist="${test_disallowlist} x509cert-tl"
-test_disallowlist="${test_disallowlist} @EXTRA_TEST_DISALLOWLIST@"
 
 LOG=${PWD}/tests.log
 cd tests