Design 47 H2: H-A-637, the pipeline runner's test-run test waits on what it causes (issue 1984)
This commit is contained in:
@@ -585,3 +585,16 @@ where the design and the code disagree; the lead's answers follow, each against
|
||||
the keeper's plan tests (a ledger with `max-mib` 1024 plans its state and index buckets at 1 GiB, one with none at the
|
||||
default); live, `mesh-broker.show` of the gate's records names its state bucket at 1 GiB and the condition clears.
|
||||
Principles 7 and 11.
|
||||
- **H-A-637 (the pipeline runner's test-run test waits on what it causes, never on a clock across a restart, 01:59)** 24 Nov,
|
||||
issue 1984; answers the failure of main.512 (mesh-delivery-pipeline's integration step on a loaded build node, "1 failed:
|
||||
TestTestRunsAreAskedOncePerLevelAndMoveEveryReader", which the same commit passed in main.511): the test writes the
|
||||
setting test-step-bound "2s", restarts the runner inside the test while that clock runs, and needs the restarted
|
||||
runner to hear its first step-progress before the clock ends; under load it did not (testruns_integration_test.go:411,
|
||||
60 s); two more waits of the same test fail under load (:357, the ask read once; :519, cause not known). The test
|
||||
restarts the runner under a bound longer than the restart (the setting rewritten to the short bound between the stop
|
||||
and the start), its start waits for the new runner's own take-in line, the ask is waited for as every other wait is,
|
||||
a wait whose run has ended stops at once naming it, and :519's cause is read before it is changed (principle 3: a
|
||||
check fails only for the change it checks, never for the machine's load; principle 7: the test's own waits, no new
|
||||
seam). Test-only: no behaviour of the runner changes. How it is checked: the test passes 10 of 10 runs pinned to one
|
||||
core under three busy loops, and fails at once when the runner's real behaviour it checks is taken out. Principles 3
|
||||
and 7.
|
||||
|
||||
Reference in New Issue
Block a user