From 0cae753296bb9b0f854728d1a54eb560953e7caf Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 24 Nov 2026 01:59:48 +0100 Subject: [PATCH] Design 47 H2: H-A-637, the pipeline runner's test-run test waits on what it causes (issue 1984) --- .../01-to-be/47-milestones/H2-lead-answers-3.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-3.md b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-3.md index b0de408c..f2b39120 100644 --- a/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-3.md +++ b/03-DESIGN/01-to-be/47-milestones/H2-lead-answers-3.md @@ -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.