gate coverage runs the whole suite twice: pass 2 (long TMPDIR through a link) should run only the path-sensitive tests #228

Open
opened 2026-11-26 04:49:26 +00:00 by supervisor · 0 comments
Owner

Purpose (cost): gate coverage tests each tip once. The second pass runs only the tests a long temporary path can change.

DECIDED 2026-11-26 Raf: "yes", for the fewer-builds rules (martha#43). This item was proposed with them.

What happens

The gate coverage job runs the whole npm test twice. Pass 2 runs it again under a long TMPDIR reached through a link. In task 17025, pass 1 took ~7 min (5,535 tests, all green) and pass 2 took 412 s, failing 2 tests that had passed in pass 1. Over 12 h on the forge, gate coverage used 673 runner-minutes across 49 tasks (13.7 min each), so about half of it was pass 2.

Done when

  • Pass 2 runs only the tests whose outcome can depend on the temporary path: path length, socket paths, links, cleanup of trees under TMPDIR.
  • The way those tests are picked cannot silently drop one. A path-sensitive test left out of pass 2 fails by name, using the same mechanism the suite already uses to list its cases. This is not a new check.
  • Gate coverage's average on the forge, read from the tasks API over one day, is stated on this issue before and after.

Refs #43, #199, #225

Purpose (cost): gate coverage tests each tip once. The second pass runs only the tests a long temporary path can change. DECIDED 2026-11-26 Raf: "yes", for the fewer-builds rules (martha#43). This item was proposed with them. ## What happens The `gate coverage` job runs the whole `npm test` twice. Pass 2 runs it again under a long TMPDIR reached through a link. In task 17025, pass 1 took ~7 min (5,535 tests, all green) and pass 2 took 412 s, failing 2 tests that had passed in pass 1. Over 12 h on the forge, gate coverage used 673 runner-minutes across 49 tasks (13.7 min each), so about half of it was pass 2. ## Done when - Pass 2 runs only the tests whose outcome can depend on the temporary path: path length, socket paths, links, cleanup of trees under TMPDIR. - The way those tests are picked cannot silently drop one. A path-sensitive test left out of pass 2 fails by name, using the same mechanism the suite already uses to list its cases. This is not a new check. - Gate coverage's average on the forge, read from the tasks API over one day, is stated on this issue before and after. Refs #43, #199, #225
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#228
No description provided.