None of the 24 offline tests in scripts/tests/ has ever run in ci — the seam does not reference a single one #873

Closed
opened 2026-08-26 19:11:53 +00:00 by ben · 1 comment
Owner

None of the 24 offline harness tests under scripts/tests/ has ever run in
ci.
Not one is referenced by scripts/seam-smoke.sh, and no other runner
sweeps them:

$ grep -c "scripts/tests/" scripts/seam-smoke.sh
0
$ ls scripts/tests/*.sh | wc -l
24

The only thing that has ever run them is the hand of whoever wrote them, in the
session that wrote them.

Why this is not the same ticket as #871

#871 is "the gate cannot fail" — seam() is called as an if condition, set -e
is suspended inside it, so a failing stage is stepped over. This is "the gate
never had these stages in the first place". Fixing #871 would not have run a
single one of these 24 files. They are independent faults that happen to point
the same way, and each one on its own is enough to make a green ci mean less
than it looks.

What it cost, concretely

scripts/tests/broker-install-test.sh is the cautionary tale. It exists to prove
idss-broker-install.sh behaves, and it was green for the entire life of the
SIGPIPE defect it should have caught
(GOTCHAS #91, fixed in 6200acb3) —
because its fake binary is ~40 bytes and the bug needs a large producer. That
was a test-design fault, and it is fixed. But note the second half: had that test
gone red, nothing would have noticed, because nothing ran it. A test that
cannot fail the build is documentation with a shebang.

Landed here

seam-smoke.sh grows a stage that sweeps scripts/tests/*.sh:

  • A loop, not a list — a new scripts/tests/*.sh is covered the moment it
    lands, with nothing for anyone to remember.
  • Tally-and-return, not set -e — because of #871 a bare bash "$t"
    would be stepped over and the loop would run on as if green. An explicit
    return 1 is control flow and is not subject to that suspension, so this
    stage can red ci today, on its own, without waiting for #871.
    Proven:
    with a deliberately failing canary dropped into scripts/tests/, the stage
    returns 1 and names it; the seam's if seam | tee then reads ec=1.
  • Runs the whole sweep before reporting, so one CI run names every broken
    test rather than only the first.
  • Placed with the drift check, before the toolchain stages: pure bash, no
    toolchain, no network, ~54s for all 24.

All 24 pass as of this commit, so this stage adds no red — unlike re-arming
the gate itself (#871), which surfaces #834 and #822 at once. That is why this
could land immediately and #871 correctly could not.

Residue

Placing these in the seam makes them enforcing at HEAD. It does not tell you
whether any of the other 23 are as weak as broker-install-test.sh turned out to
be — green-and-unrun is not evidence of a good test. Auditing them for
fake-smaller-than-production (GOTCHAS #91's testing rule) is a separate pass and
is not done here.

Filed and fixed from #745's session, which walked into this from underneath.

**None of the 24 offline harness tests under `scripts/tests/` has ever run in `ci`.** Not one is referenced by `scripts/seam-smoke.sh`, and no other runner sweeps them: ``` $ grep -c "scripts/tests/" scripts/seam-smoke.sh 0 $ ls scripts/tests/*.sh | wc -l 24 ``` The only thing that has ever run them is the hand of whoever wrote them, in the session that wrote them. ## Why this is not the same ticket as #871 #871 is "the gate cannot fail" — `seam()` is called as an `if` condition, `set -e` is suspended inside it, so a failing stage is stepped over. This is "the gate never had these stages in the first place". Fixing #871 would not have run a single one of these 24 files. They are independent faults that happen to point the same way, and each one on its own is enough to make a green `ci` mean less than it looks. ## What it cost, concretely `scripts/tests/broker-install-test.sh` is the cautionary tale. It exists to prove `idss-broker-install.sh` behaves, and it was **green for the entire life of the SIGPIPE defect it should have caught** (GOTCHAS #91, fixed in `6200acb3`) — because its fake binary is ~40 bytes and the bug needs a large producer. That was a test-design fault, and it is fixed. But note the second half: had that test gone red, **nothing would have noticed**, because nothing ran it. A test that cannot fail the build is documentation with a shebang. ## Landed here `seam-smoke.sh` grows a stage that sweeps `scripts/tests/*.sh`: - **A loop, not a list** — a new `scripts/tests/*.sh` is covered the moment it lands, with nothing for anyone to remember. - **Tally-and-`return`, not `set -e`** — because of #871 a bare `bash "$t"` would be stepped over and the loop would run on as if green. An explicit `return 1` is control flow and is not subject to that suspension, so **this stage can red `ci` today, on its own, without waiting for #871.** Proven: with a deliberately failing canary dropped into `scripts/tests/`, the stage returns 1 and names it; the seam's `if seam | tee` then reads `ec=1`. - **Runs the whole sweep before reporting**, so one CI run names every broken test rather than only the first. - Placed with the drift check, before the toolchain stages: pure bash, no toolchain, no network, **~54s** for all 24. **All 24 pass as of this commit, so this stage adds no red** — unlike re-arming the gate itself (#871), which surfaces #834 and #822 at once. That is why this could land immediately and #871 correctly could not. ## Residue Placing these in the seam makes them enforcing at HEAD. It does **not** tell you whether any of the other 23 are as weak as `broker-install-test.sh` turned out to be — green-and-unrun is not evidence of a good test. Auditing them for fake-smaller-than-production (GOTCHAS #91's testing rule) is a separate pass and is not done here. Filed and fixed from #745's session, which walked into this from underneath.
Author
Owner

Proven in ci: run 23558 on 76e057e2 (success, 22:03:04Z → 22:15:48Z) is the first ci on main to execute the scripts/tests/ stage that f530e72b added — it could not run before because of #878 (the queue was buried under ~2,700 no-op dev-factory runs, not a runner fault). 24 offline tests now run on every push; the loop-not-list shape means the next scripts/tests/*.sh is covered on landing. Closing.

Proven in `ci`: run 23558 on `76e057e2` (**success**, 22:03:04Z → 22:15:48Z) is the first `ci` on `main` to execute the `scripts/tests/` stage that `f530e72b` added — it could not run before because of #878 (the queue was buried under ~2,700 no-op dev-factory runs, not a runner fault). 24 offline tests now run on every push; the loop-not-list shape means the next `scripts/tests/*.sh` is covered on landing. Closing.
ben closed this issue 2026-08-26 22:16:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#873
No description provided.