martha#263: the test waits for the stand-in's own command line before it asserts #285
Loading…
Reference in a new issue
No description provided.
Delete branch "ceres/263-exec-race"
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?
What it does
a_launcher_ends_with_its_run.node-test.tsnow waits, bounded, for the stand-in's own command line before it asserts.spawn()returns before the child'sexecve, and until that execve/proc/<pid>/cmdlinestill holds the command line the child inherited — the test runner's own, which names no such home.theShellThatWaitsOnUsread once in that window and rightly answeredundefined: a pid whose line does not name the home is not the shell that waits on the launcher, and ending it is the harm #205 exists for. On a quiet box the window is a millisecond; under the suite's own load it was the 190 ms between a 7 ms and a 198 ms run.The wait asks the kernel every 10 ms, gives the child 5 s to become the process it was spawned as, and fails by name — the pid and what the kernel read — when it never does, so the case cannot pass by timing out silently.
The reader is unchanged:
theShellThatWaitsOnUsstill reads once, and #205's mutant still reds this case.Evidence
undefined !== <pid>; with the wait, the same stand-in greens in 314 ms. Both were scratch copies of this file, not committed.run_the_tests_in_a_namespace_of_their_own.sh: green, 6.5 ms; withremovals_without_a_retry.node-test.ts, 13/13."".npm run verifygreen end to end;.github/workflowsdiff vs61ec8da0: 0 bytes.head_sha=16f40503→total_count 0), as #258 intends.Refs #263, #205