Skip to content

BUG-16: doc13-test fails on CI at docs/13's run step, after the new LDAP steps #118

Closed

Description

@ephico2real2

Part of #110

Related: #94

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.

Activity

  1. ephico2real2 commented on Nov 7, 2026

    @ephico2real2
    OwnerAuthor

    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.

  2. added 2 commits that reference this issue on Nov 7, 2026
  3. added
    In-Progress
    bug
    on Nov 13, 2026
  4. added
    sev:low
    on Nov 13, 2026
  5. 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
  6. ephico2real2 commented on Nov 13, 2026

    @ephico2real2
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-Progressbugsev:lowstatus:open

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions