From 8268af4188f623b2f16ec31c6d79844b3c8d5214 Mon Sep 17 00:00:00 2001 From: Martin Vogel Date: Tue, 28 Jul 2026 00:01:12 +0200 Subject: [PATCH] test(daemon-app): yield in the terminal-job wait like every sibling helper app_wait_for_terminal_job_with_subscribers was the only app_wait_for_* helper polling without cbm_usleep(1000): a sleepless spin pins a core for up to 10s and can starve the daemon threads it is polling on scarce-CPU runners. Release run 30305464193 hit exactly this on windows-11-arm (test_daemon_application.c:2671 ASSERT(terminal_with_prior_subscribers)); the suite passes 47/47 locally with the yield in place. Signed-off-by: Martin Vogel --- tests/test_daemon_application.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_daemon_application.c b/tests/test_daemon_application.c index 2911d07df..934944c90 100644 --- a/tests/test_daemon_application.c +++ b/tests/test_daemon_application.c @@ -1471,6 +1471,10 @@ static bool app_wait_for_terminal_job_with_subscribers(cbm_daemon_application_t cbm_daemon_application_job_subscribers(application, project) >= minimum_subscribers) { return true; } + /* Yield like every sibling wait helper: a sleepless spin pins a core + * and can starve the daemon threads it polls on scarce-CPU runners + * (windows-11-arm release leg, run 30305464193). */ + cbm_usleep(1000); } return false; }