recorded_inside_the_hold test can leave a child process running, so a full-suite step goes red #225

Closed
opened 2026-11-26 03:24:18 +00:00 by saturnus · 1 comment
Member

Purpose (reliability): a full-suite run is not red because of a child process that one test leaves behind.

Seen in martha-ai/martha PR 204 run 5213 (task 17268, build00-martha-bwrap), step 15 "the suite under a long TMPDIR reached through a link". src/end_a_launch/recorded_inside_the_hold.node-test.ts failed in 211 ms with only the runner's message: "left running after its tests: a child process (ProcessWrap). Stop it in t.after." The same file passed in step 14 of the same job, and on host00 (task 17243). That PR does not touch the file, so this is a timing-dependent leak: a child the test spawns can still be alive when the file's tests end, which is more likely on a slower box (build00 was about 14% slower than host00).

Done-when:

  1. Every child process the file starts is awaited to its exit (or stopped in t.after) before its tests end.
  2. A red-first case shows the leak: the file fails under a delayed child exit before the fix and passes after it.

Refs martha-ai/martha#198 (where it was hit).

Purpose (reliability): a full-suite run is not red because of a child process that one test leaves behind. Seen in martha-ai/martha PR 204 run 5213 (task 17268, build00-martha-bwrap), step 15 "the suite under a long TMPDIR reached through a link". `src/end_a_launch/recorded_inside_the_hold.node-test.ts` failed in 211 ms with only the runner's message: "left running after its tests: a child process (ProcessWrap). Stop it in t.after." The same file passed in step 14 of the same job, and on host00 (task 17243). That PR does not touch the file, so this is a timing-dependent leak: a child the test spawns can still be alive when the file's tests end, which is more likely on a slower box (build00 was about 14% slower than host00). Done-when: 1. Every child process the file starts is awaited to its exit (or stopped in t.after) before its tests end. 2. A red-first case shows the leak: the file fails under a delayed child exit before the fix and passes after it. Refs martha-ai/martha#198 (where it was hit).
Member

Done-when check against main ecb6f372 (landed-but-open sweep, 2026-12-01; closed under the Supervisor ruling of 2026-12-01, which Raf approved). Every commit cited is an ancestor of main (git merge-base --is-ancestor).

  • L1: met, PR 247 by way of PR 280 (61ec8da0), recorded_inside_the_hold.node-test.ts.
  • L2 (the red-first case fails before the fix): the case is in the tree, but its red-first run cannot be shown from it. Covered by the review that landed batch 2 (PR 280).

Every code line is met. The line the tree cannot show was covered by the review PASS that landed it. Closing.

Done-when check against main `ecb6f372` (landed-but-open sweep, 2026-12-01; closed under the Supervisor ruling of 2026-12-01, which Raf approved). Every commit cited is an ancestor of main (`git merge-base --is-ancestor`). - L1: met, PR 247 by way of PR 280 (`61ec8da0`), `recorded_inside_the_hold.node-test.ts`. - L2 (the red-first case fails before the fix): the case is in the tree, but its red-first run cannot be shown from it. Covered by the review that landed batch 2 (PR 280). Every code line is met. The line the tree cannot show was covered by the review PASS that landed it. Closing.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
martha-ai/martha#225
No description provided.