You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BUG-16: doc13-test fails on CI at docs/13's run step, after the new LDAP steps #118
In-ProgressWork started and not complete; the comment gives the pull request or the jobbugSomething isn't workingsev:lowA small defect, a defect no code path reaches yet, or a cleanupstatus:openNo fix yet
What is wrong: on PR #112, CI's manifests job fails: FAIL crc-guard.py snapshot ... failing: the step after 12 ran crc-guard.py watch ..., then doc13 cases failed: 1, mutants survived: 0. So with the snapshot failing, the step after step 12 still ran the watch, or the test's step mapping is wrong after the steps moved up by 2.
Where:docs/13-crc-deployment.md around step 12, and deploy/tests/doc13-test.py. CI run 42249576037 at 44083ff, measured. The implementer's local run passed, and the difference is not diagnosed.
How to prove it:python3 deploy/tests/doc13-test.py docs/13-crc-deployment.md in Ubuntu, as CI runs it. A real step running after a failed snapshot would be a stop that doesn't hold. The test is python3 deploy/tests/doc13-test.py docs/13-crc-deployment.md.
Measured or inferred: Measured on CI run 42249576037 at 44083ff. The comment of 2026-11-07 gives the diagnosis, measured on the Intel Mac and not on CI.
Severity: Low. The test harness fails. The stop in docs/13 holds (the comment of 2026-11-07).
What must hold after the fix: The test waits for each process that a step left in the background. The next step logs to its own file.
Research: The mandate when filed: search the primary sources, compare the options, choose the industry best practice, fix the cause rather than the symptom, and record the choice and its sources. This issue holds no research record. The review record is docs/reviews/2026-11-06-pr112/README.md.
Solution: Commit ecc5cb3 ("doc13-test waits for what a step left in the background") on branch ldap-rbac-names, in draft PR #112. It is not merged.
Class: No class. The race is in the test harness that PR #98 merged, and the fix adds no control.
Diagnosis, measured on the Intel Mac, not on CI. The failure is a race in the test's harness, not a stop in docs/13 that does not hold. deploy/tests/doc13-test.py logs each stubbed call to one file, $CALLS, and step 12 starts crc-guard.py watch in the background. A watch that logs late is then read as "the step after 12 ran" it.
Delaying only the stub's watch, with the document unchanged, 8 runs of step 12 at each delay:
Delay
One shared $CALLS (as shipped)
One $CALLS per case
0.02 s
8 of 8
7 of 8
0.05 s
0 of 8
0 of 8
0.08 s
7 of 8
0 of 8
0.1 s
8 of 8
0 of 8
0.13 to 0.2 s
0 of 8
0 of 8
0.25 s
3 of 8
0 of 8
0.3 s
3 of 8, with CI's exact message (crc-guard.py snapshot ... failing: the step after 12 ran)
0 of 8
0.4, 0.6 s
0 of 8
0 of 8
So there are two races. Across cases: an earlier case's watch logs into a later case's file. Within a case: at 0.02 s, watching fails, the step ends, and that case's own watch logs after the next mark. A separate file per case fixes only the first.
Why this is not a real stop failing: with snapshot failing, the step's subshell stops before it reaches the watch line, so that run cannot have started one. Inferred: that CI's single failure at 44083ff was this race. The job passed on the next three heads, with no change under deploy/ between them. Not reproduced on CI itself.
Next: a fix to the harness that closes both, with a test that fails before and passes after, under fix-defect.
changed the title [-]doc13-test fails on CI at docs/13's run step, after the new LDAP steps[/-][+]BUG-16: doc13-test fails on CI at docs/13's run step, after the new LDAP steps[/+]on Nov 13, 2026
Work tag: In-Progress. Draft PR #112 (branch ldap-rbac-names, head ecc5cb3) closes this issue. The fix is commit ecc5cb3 on that branch. The pull request is not merged, and the branch is not the default branch. Read from gh and git at 2026-11-13T09:18Z.
In-ProgressWork started and not complete; the comment gives the pull request or the jobbugSomething isn't workingsev:lowA small defect, a defect no code path reaches yet, or a cleanupstatus:openNo fix yet
Activity
ephico2real2 commentedon Nov 7, 2026
Diagnosis, measured on the Intel Mac, not on CI. The failure is a race in the test's harness, not a stop in
docs/13that does not hold.deploy/tests/doc13-test.pylogs each stubbed call to one file,$CALLS, and step 12 startscrc-guard.py watchin the background. Awatchthat logs late is then read as "the step after 12 ran" it.Delaying only the stub's
watch, with the document unchanged, 8 runs of step 12 at each delay:$CALLS(as shipped)$CALLSper casecrc-guard.py snapshot ... failing: the step after 12 ran)So there are two races. Across cases: an earlier case's
watchlogs into a later case's file. Within a case: at 0.02 s,watchingfails, the step ends, and that case's ownwatchlogs after thenextmark. A separate file per case fixes only the first.Why this is not a real stop failing: with
snapshotfailing, the step's subshell stops before it reaches thewatchline, so that run cannot have started one. Inferred: that CI's single failure at44083ffwas this race. The job passed on the next three heads, with no change underdeploy/between them. Not reproduced on CI itself.Next: a fix to the harness that closes both, with a test that fails before and passes after, under
fix-defect.PR #112's rulings, #118's diagnosis and proof, and the handover for s…
doc13-test waits for what a step left in the background
[-]doc13-test fails on CI at docs/13's run step, after the new LDAP steps[/-][+]BUG-16: doc13-test fails on CI at docs/13's run step, after the new LDAP steps[/+]ephico2real2 commentedon Nov 13, 2026
Work tag: In-Progress. Draft PR #112 (branch
ldap-rbac-names, headecc5cb3) closes this issue. The fix is commitecc5cb3on that branch. The pull request is not merged, and the branch is not the default branch. Read fromghandgitat 2026-11-13T09:18Z.