Skip to content

Commit 8268af4

Browse files
committed
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 <martin.vogel.tech@gmail.com>
1 parent b40a164 commit 8268af4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎tests/test_daemon_application.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,10 @@ static bool app_wait_for_terminal_job_with_subscribers(cbm_daemon_application_t
14711471
cbm_daemon_application_job_subscribers(application, project) >= minimum_subscribers) {
14721472
return true;
14731473
}
1474+
/* Yield like every sibling wait helper: a sleepless spin pins a core
1475+
* and can starve the daemon threads it polls on scarce-CPU runners
1476+
* (windows-11-arm release leg, run 30305464193). */
1477+
cbm_usleep(1000);
14741478
}
14751479
return false;
14761480
}

0 commit comments

Comments
 (0)