Review round 1 of fd7f049e, the kind "a test waits a fixed quiet window"
(the 50 ms window of the hand pass was the first, note 14's shadow part the
second). The shadow part of TheNodeComposesItsWantsFromTheBus counted its
answers after fixed windows (150 ms drains, a 100 ms no-answer window, two
30 ms sleeps) and failed under load on trunk too (2 of 48 processes).
It now runs in a bubble of testing/synctest: each of those waits ends only
once every goroutine of the bubble is idle and the bubble's clock passed
it, so a slow build node cannot end it early. The pattern bus's watch ends
with its context, as the bus's own does, so the bubble's readers end with
it. What the steps after the shadow use (the record, the assignment, the
want) is made before the bubble; the shadow ends inside it.
Under load (48 processes x 5, GOMAXPROCS=2, race detector): 240 of 240
passed (trunk: 6 of 48 processes failed).
Issue 721 (note 15, acceptance criterion 721/AC2).
Review round 1 of fd7f049e. The test of an ask while a pass runs waited a
fixed 50 ms for a pass made by hand not to begin. It now checks, while the
loop's pass is held, that the lock of a whole pass is taken (TryLock is
false), which needs no wall time and fails at once when compose takes no
lock; the pass made by hand must still end once the held pass did. Both
tests of the fix cite their criterion, 721/AC2.
Issue 721 (note 15, acceptance criterion 721/AC2).
TestSelfcompose/TheNodeComposesItsWantsFromTheBus failed pipelines main.266,
main.459 and main.479: its issue 1966 step composed by hand beside the
composer's running loop, and a loop pass woken by an entry's answer composed
tool too and handed it on out, so a later quiet or wait saw n1.tool.
The kind is two passes over one composer's state at once. compose and
composeEarly now hold one lock (passMu) for the whole pass, so a pass asked
while another runs is made after it. The lock alone does not take the
order away (the loop's woken pass may still come before the test's), so the
step's passes run on a copy of what the composer holds (scratch), which runs
no loop; the take-back pass at its end is no longer needed and goes.
The test of an ask while a pass runs also makes a pass by hand there: it
does not begin until the running one ended (fails without the lock). Its
read of what runs no longer blocks once eight reads are unheard (a pass
reads it more than once, and the extra pass filled the channel).
Issue 721 note 11 (a blocking fault for its live proof).