CI flake: the martha#70 setsid-loop case runs past the 60 s test timeout on a loaded box (again after #274) #362

Open
opened 2026-12-02 10:31:17 +00:00 by neptunus · 0 comments
Member

Purpose (fix): the martha#70 setsid-loop case stays green on a loaded box, so a whole npm test red names a real defect.

Refs #274, #249, #222 (the same case, closed).

What happened. On 2026-12-02 the whole npm test on branch neptunus/361-start-acp (5ebf3a19, martha#361) ran on host00 beside two reckon-db forge CI runs. Of 5976 tests, 1 failed:

  • prove_the_core/a_test_run_keeps_one_temporary_root/keep_a_test_run_in_one_temporary_root.node-test.ts:535, "a process a run started in a session of its own ends with the run, and its root goes after it (martha#70)".
  • It ran 60412 ms against --test-timeout=60000. At :543, strictEqual gave actual true, expected false: "the loop 69953 (state S) the run left in a session of its own outlived the run".
  • The same run also printed owner.json could not be read (ENOENT) for three /tmp/m724-* roots, and "relay.sock is 120 bytes, longer than the 107 a socket address holds".

The same file alone, straight after, passes (run_the_tests_in_a_namespace_of_their_own.sh node --test --test-timeout=60000 ... keep_a_test_run_in_one_temporary_root.node-test.ts, rc=0). The first whole run on the same branch an hour earlier also passed it. The branch touches nothing under prove_the_core/.

So the bounded wait that #274 added still runs past the file's 60 s test timeout when the box is loaded. The loop is then read while it is still dying.

Done when:

  1. The case's own wait ends inside the per-test timeout, with room to spare, on a box loaded as above (for example, a wait budget derived from the test timeout, not a fixed one).
  2. A loop that really outlives the run still fails the case, and a mutant that skips the kill dies.
Purpose (fix): the martha#70 setsid-loop case stays green on a loaded box, so a whole `npm test` red names a real defect. Refs #274, #249, #222 (the same case, closed). **What happened.** On 2026-12-02 the whole `npm test` on branch neptunus/361-start-acp (5ebf3a19, martha#361) ran on host00 beside two reckon-db forge CI runs. Of 5976 tests, 1 failed: - `prove_the_core/a_test_run_keeps_one_temporary_root/keep_a_test_run_in_one_temporary_root.node-test.ts:535`, "a process a run started in a session of its own ends with the run, and its root goes after it (martha#70)". - It ran 60412 ms against `--test-timeout=60000`. At :543, `strictEqual` gave actual true, expected false: "the loop 69953 (state S) the run left in a session of its own outlived the run". - The same run also printed `owner.json could not be read (ENOENT)` for three /tmp/m724-* roots, and "relay.sock is 120 bytes, longer than the 107 a socket address holds". **The same file alone, straight after, passes** (`run_the_tests_in_a_namespace_of_their_own.sh node --test --test-timeout=60000 ... keep_a_test_run_in_one_temporary_root.node-test.ts`, rc=0). The first whole run on the same branch an hour earlier also passed it. The branch touches nothing under prove_the_core/. **So** the bounded wait that #274 added still runs past the file's 60 s test timeout when the box is loaded. The loop is then read while it is still dying. Done when: 1. The case's own wait ends inside the per-test timeout, with room to spare, on a box loaded as above (for example, a wait budget derived from the test timeout, not a fixed one). 2. A loop that really outlives the run still fails the case, and a mutant that skips the kill dies.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
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#362
No description provided.