Repository navigation
Description
Summary
scripts/tests/test_hardware_doc_init.py — the 9-test regression suite for the #6890 hardware-doc-init branch-routing fix (landed via PR #7035) — is run by no workflow, flake check, or justfile recipe. The pins verify only when a human remembers to run the suite by hand, so the branch-routing contract can silently regress again.
Evidence (verified 2026-11-08, main 35390d3)
- The suite:
scripts/tests/test_hardware_doc_init.py(9 tests; oracle stated in its docstring: fixture git repositories; the script promises an existing, clean, behind checkout is fast-forwarded and every unsafe state warns and is left byte-identical). Tests: absent target cloned, behind checkout fast-forwarded, no-upstream / detached / dirty / diverged / unpushed states warn and stay untouched, non-repo target errors, up-to-date reports up-to-date. - Run by hand on the laptop at main 35390d3:
python3 -m unittest discover -s scripts/tests -p 'test_hardware_doc_init.py'→ 9 tests, OK (1.1s). The suite is green; it is simply never executed by automation. - Wiring check:
grep -rn hardware .github/workflows/→ no hits for this suite.scripts-test.ymlnames exactly three Python suites (test_update_nixpkgs_inputs.pyupdate-nixpkgs-inputs: PR #599's exit-code contract has no automated test — the stub-nix verification was one-off and scripts/tests covers neither script #603,test_worker_preflight.pylaptop clone: a stray local branch named 'origin/main' shadows the remote-tracking ref (silent stale main for every worker) #4862,test_bitwarden_load_secrets.pybitwarden-load-secrets: multiline values are split into bogus variables #5650) plus the power-guard discover and the sops shell suite — this suite is not among them.research-workflow.ymlrunstest_*workflow*.py+test_plan_check.py, which do not match this file. No flake check or justfile recipe mentions it either. - The script it pins is live:
scripts/hardware-doc-init.sh"also runs automatically in the devshell" (.agents/skills/hardware-device-research/SKILL.md:37), so a routing regression reaches real checkouts with no test signal.
Why it matters
#6890 was exactly the failure mode this suite exists to catch: the update block was unreachable (a condition requiring $TARGET/.git to both exist and not exist), so a clean, behind checkout was adopted as-is with no fetch, warning, or update — silently. The fix and its fixture-oracle suite landed, but with no CI wiring the same class of routing break can return unnoticed, in a script that runs automatically in the devshell.
Acceptance criteria
- A workflow step (the natural home is
scripts-test.yml, alongside the other three named Python suites) runspython3 -m unittest discover -s scripts/tests -p 'test_hardware_doc_init.py'on the same triggers as the sibling suites. - The step is verified to actually execute the suite (a run reports "Ran 9 tests"), not silently match zero files.
- The suite passes on main after the wiring lands.
Notes
- Same verified-nowhere class as ci(scripts): test_program_tending.py is run by no workflow — the #1352 scaffold contracts are verified nowhere #5935 / ci(id-mail): deploy.test.mjs (4 tests pinning the #3281 typo'd-flag deploy guard) run by no workflow — the deploy script can force-delete the live Worker #6082 / ci(mcpx): opencode v2 plugin bun suite (61 tests: permission/sampling/tool-filter/session-env) run by no workflow — mcpx.yml runs only plugin/opencode/mcpx/ (v1) #6092 / pkarr-worker: test suite unrunnable from a clean checkout — lockfile pins vitest 3.2.7 vs package.json ^4.0.0 (npm ci refuses), and vitest 4 breaks the pool-workers runner (0 tests run); no workflow runs it either #6093, but a distinct suite and script; not a duplicate of the hardware-doc-init: the existing-checkout update block is unreachable — a clean, behind checkout is adopted as-is and never fast-forwarded #6890 fix (closed) — this is only about the missing CI wiring for its regression tests.
- Filed by new-issue-creator-code-b, 2026-11-08 run.
Activity
developing-today commentedon Nov 8, 2026
CODE-2282
dezren39 commentedon Nov 8, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked — awaiting triage
status/needs-triage. Per Queue/lane design rules: no by-id blocking by default, optional platform selector, triage separate from fixes #8097 Rule 3, fix work starts only on triaged items and triage belongs to the dedicated triage step — this lane does not triage. Parked back 1500s with stageawaiting_triage.9 remaining items
dezren39 commentedon Nov 11, 2026
🤖 Agent note · hardware-doc-init suite wired into scripts-test CI as PR #8711 — parked on review (task 13259, lane code-c)
Merge pull request #8711 from developing-today/queue/13259-7597-hardw…
dezren39 commentedon Nov 11, 2026
Agent note — task 13259 done (fixed_merged, PR #8711 shepherded)