Skip to contentSkip to conversation

openssl: extend check_cwm test timeout

PATCH Superseded Gyorgy Sarvari 2 participants 2 messages Oct 23, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openssl: extend check_cwm test timeout

Fixes [YOCTO 14649]

The default 3s test execution timeout isn't always enough for the check_cwm test on the autobuilder in case there is a high load on the host machine, and due to this this case fails sometimes.

This patch doubles the timeout for this testcase to 6 seconds to allow enough time for execution even if there is high CPU usage by other processes.

---
 .../0001-extend-check_cwm-test-timeout.patch  | 32 +++++++++++++++++++
 .../openssl/openssl_3.5.4.bb                  |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 meta/recipes-connectivity/openssl/openssl/0001-extend-check_cwm-test-timeout.patch
meta/recipes-connectivity/openssl/openssl/0001-extend-check_cwm-test-timeout.patch new file +32 -0
new file mode 100644
index 0000000000..8b6d69f6ca
@@ -0,0 +1,32 @@
+From c7000672296f4c367341aa3415f26c4d9f5e4749 Mon Sep 17 00:00:00 2001
+From: Gyorgy Sarvari <[email protected]>
+Date: Thu, 23 Oct 2025 11:24:36 +0200
+Subject: [PATCH] extend check_cwm test timeout
+
+The default, 3s long test timeout isn't always enough for this
+particular test in case there is a high load on the host machine
+(assuming it is running in qemu). Extend the default timeout to 6s
+for the check_cwm test to avoid timeouts.
+
+Upstream-Status: Inappropriate [oe-specific: qemu on AB doesn't always get enough CPU]
+Signed-off-by: Gyorgy Sarvari <[email protected]>
+---
+ test/radix/main.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/test/radix/main.c b/test/radix/main.c
+index 4a1e886a71..39f8c61ef9 100644
+--- a/test/radix/main.c
++++ b/test/radix/main.c
+@@ -25,6 +25,11 @@ static int test_script(int idx)
+     int testresult;
+     TERP_CONFIG cfg = {0};
+ 
++    // check_cwm test sometimes times out, the default 3000ms is
++    // not enough if the test execution starves for CPU
++    if (!strncmp("check_cwm", script_info->name, strlen("check_cwm")))
++        cfg.max_execution_time = ossl_ms2time(6000);
++
+     if (!TEST_true(bindings_process_init(0, 0)))
+         return 0;
+ 
meta/recipes-connectivity/openssl/openssl_3.5.4.bb +1 -0
index c222b1533b..e760baf3a0 100644
@@ -12,6 +12,7 @@ SRC_URI = "http://www.openssl.org/source/openssl-${PV}.tar.gz \
            file://0001-buildinfo-strip-sysroot-and-debug-prefix-map-from-co.patch \
            file://0001-Configure-do-not-tweak-mips-cflags.patch \
            file://0001-Added-handshake-history-reporting-when-test-fails.patch \
+           file://0001-extend-check_cwm-test-timeout.patch \
            "
 
 SRC_URI:append:class-nativesdk = " \
#1 lore raw

meta/recipes-connectivity/openssl/openssl/0001-extend-check_cwm-test-timeout.patch line 11

Quoted 6 lines · Gyorgy Sarvari via lists.openembedded.org
meta/recipes-connectivity/openssl/openssl/0001-extend-check_cwm-test-timeout.patch new file +6 -0
+The default, 3s long test timeout isn't always enough for this
+particular test in case there is a high load on the host machine
+(assuming it is running in qemu). Extend the default timeout to 6s
+for the check_cwm test to avoid timeouts.
+
+Upstream-Status: Inappropriate [oe-specific: qemu on AB doesn't always get enough CPU]

I think this does merit at least a ticket upstream, or actual patch submission. High CPU load is not at all an oe-specific problem.

Alex