The martha#70 terminal-start test reads the forker's children before any has forked, so it fails under load #139

Open
opened 2026-11-24 08:56:17 +00:00 by venus · 0 comments
Member

Purpose (fix): the martha#70 terminal-start test stops failing under a loaded full-suite run, so a red installer job means a real fault.

installer/prove_a_clean_install/prove_a_clean_install.node-test.mjs "a start on a terminal ends with the run that started it, and takes its tree with it (martha#70)" fails at line 729, "the run had forked children before it went". The test waits only for the pid file, then reads childrenOfTheRun(began) once. Under load, the forker has not forked a child yet, so the ring is empty.

Seen 2026-11-24 on venus/114-tag-release: failed in both full npm test runs (inside run_the_installer_job), passed twice when run alone. The branch does not touch this test or the code it drives.

Fix: wait (bounded by MEMBER_WAIT_MS) until childrenOfTheRun(began) is non-empty before taking the ring, as the pid file is already waited for.

Purpose (fix): the martha#70 terminal-start test stops failing under a loaded full-suite run, so a red installer job means a real fault. `installer/prove_a_clean_install/prove_a_clean_install.node-test.mjs` "a start on a terminal ends with the run that started it, and takes its tree with it (martha#70)" fails at line 729, "the run had forked children before it went". The test waits only for the pid file, then reads `childrenOfTheRun(began)` once. Under load, the forker has not forked a child yet, so the ring is empty. Seen 2026-11-24 on venus/114-tag-release: failed in both full `npm test` runs (inside run_the_installer_job), passed twice when run alone. The branch does not touch this test or the code it drives. Fix: wait (bounded by MEMBER_WAIT_MS) until `childrenOfTheRun(began)` is non-empty before taking the ring, as the pid file is already waited for.
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#139
No description provided.