The #70 loop case waits, bounded, for the loop to end, never reading it once after a fixed wait (martha#222) #274
Loading…
Reference in a new issue
No description provided.
Delete branch "vesta/222-loop-outlived-the-bound"
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?
Purpose (flake class): the "#70 loop in a session of its own" case reds at 30 s under a full suite although the same case runs in ~250-280 ms on a green rerun, so its wait was measuring the tear-down's worst case rather than the loop.
What changed (the test file only, no product code).
TEAR_DOWN_DEADLINE_MS = 2 * RUN_DEADLINE_MS(60 s), with the measurement and the reason in the comment: the tear-down runs after the command has ended and may give the command's session two 10 s graces, and a SIGKILLed process under a full suite can sit in uninterruptible sleep.THE_CASES_TIMEOUT_MS = RUN_DEADLINE_MS + TEAR_DOWN_DEADLINE_MS + RUN_DEADLINE_MSis given to the case as its owntest(..., { timeout }), above the runner's 60 s, so a process that outlives the wait fails by name instead of being cancelled. The assertion's message now names the process's kernel state (state D/state R/gone from /proc) and what the run said, so the next instance says which candidate it was.Proof. Its own file through the namespace wrapper on the tip: 14/14 pass, the case at 251 ms. The teeth test (the kill dropped) reds by name. The whole npm test on the merged tip that carries this package: 5610 tests, 5572 pass, 0 fail, 38 skipped, 518 s.
.github/workflowsis 0 bytes against the post-268 main, and the private check is clean on both ranges.Nothing else uses
untilGone; this is the one case.Refs #222
b478e03f, PR 268) into vesta/222-loop-outlived-the-bound ca98c44c46