[PATCH 11/11] tests: increase stalld initialization timeout to 240s
From: Wander Lairson Costa <hidden>
Date: 2026-07-10 13:39:22
Subsystem:
the rest · Maintainer:
Linus Torvalds
On PREEMPT_RT systems with large CPU counts (32+), BPF tracepoint attachment triggers SRCU synchronization that can take well over 15 seconds, causing spurious test failures. Raise the wait_for_stalld_ready timeout from 15s to 240s in start_stalld_with_log and test_backend_selection. This does not affect happy-path latency: the underlying grep -m1 returns as soon as "monitoring started" appears in the log. Signed-off-by: Wander Lairson Costa <redacted> --- tests/functional/test_backend_selection.sh | 2 +- tests/helpers/test_helpers.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/functional/test_backend_selection.sh b/tests/functional/test_backend_selection.sh
index 26654e1..e6924ff 100755
--- a/tests/functional/test_backend_selection.sh
+++ b/tests/functional/test_backend_selection.sh@@ -38,7 +38,7 @@ test_backend_flag() { STALLD_PID=$! CLEANUP_PIDS+=("${STALLD_PID}") - if ! wait_for_stalld_ready "${log_file}" 15; then + if ! wait_for_stalld_ready "${log_file}" 240; then fail "stalld failed to start (${description})" fi
diff --git a/tests/helpers/test_helpers.sh b/tests/helpers/test_helpers.sh
index 9222d07..e06ff8b 100755
--- a/tests/helpers/test_helpers.sh
+++ b/tests/helpers/test_helpers.sh@@ -1162,11 +1162,11 @@ start_stalld_with_log() { STALLD_PID=$! CLEANUP_PIDS+=("${STALLD_PID}") - if ! wait_for_stalld_ready "${log_file}" 15; then + if ! wait_for_stalld_ready "${log_file}" 240; then log "Log contents:" cat "${log_file}" stop_stalld - fail "stalld did not initialize within 15s" + fail "stalld did not initialize within 240s" fi local end_ns=$(date +%s%N)
--
2.55.0