The #70 loop case waits, bounded, for the loop to end, never reading it once after a fixed wait (martha#222) #249
Loading…
Reference in a new issue
No description provided.
Delete branch "hygiea/222-setsid-loop-wait"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cause.
keep_a_test_run_in_one_temporary_root.node-test.ts, "a process a run started in a session of its own ends with the run, and its root goes after it (martha#70)" waited a fixedWAIT_MSafter the wrapper returned, then readisRunning(loop)once. The wrapper's tear-down sends SIGSTOP then SIGKILL before it exits, but on a loaded host the kernel finishes the kill after that window: run 5102 attempt 1, job "gate coverage", task 17025 (2026-11-26 02:21→02:38Z) red attrue !== falseon a commit that does not touch the file, and the same commit passed the case in pass 1.The fix.
untilGonelooks up toWAITSlooks ofWAIT_MS(5 s — 100× the old fixed wait, well above the tear-down's grace) and the case is red only if the loop outlives that limit. The root assertion is unchanged: the wrapper removes its roots synchronously before it exits.Evidence.
endWhatNamesTheDirectoriescall dropped (and restored), the case is red after the bound: "the loop 113 the run left in a session of its own outlived the run" (5.7 s).run_the_tests_in_a_namespace_of_their_own.sh(nice -n 10), twice. One earlier run red on the neighbouring #70 case at "the loop went with the killed run": that case and its code are untouched here, it passed 14/14 on main74041d92on the same box minutes later, and both re-runs here; filed as #248 so it is not mistaken for this diff.Refs #222