Repository navigation
Closed
Labels
area/ciCI/CD pipelines, workflows, and build automation (area)CI/CD pipelines, workflows, and build automation (area)effort/xsTrivial: expected under 30 minutes of workTrivial: expected under 30 minutes of workkind/ciCI/CD pipelines, workflows, and build automationCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)Ordinary priority (the default)source/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
Problem
scripts/tests/test_auto_format_workflow.py (262 lines, 5 tests) — the suite that exercises the auto-format workflow's real run block against a synthetic git history — is run by no workflow, flake check, or just recipe. The auto-format workflow's trickiest behavior (its success-recording and staging rules, both previously broken) is pinned only here, and nothing executes the pins.
Evidence (verified this run, laptop primary @ 89c759a)
- The suite extracts the actual
run:block of.github/workflows/auto-format.yml("Format changed files with treefmt and commit any fixes") and runs it against a real temporary git history withgh/nixstubbed, sorecord_successis observable. It pins the fixes for ci(auto-format): workflow-only exit never records success — LAST_SUCCESS_SHA stalls and every 15-min run re-diffs the same range #4752 (record success on a workflow-only auto-format exit, commitd5c18e9928) and fix(ci): auto-format stages only the listed files — treefmt companion changes (rustfmt mod children) fail the commit or are silently dropped (#3198) #5014 (stage every tracked treefmt change, commite5b22cbcbd). - Hand run on the laptop:
python3 -m unittest test_auto_format_workflow→Ran 5 tests in 0.490s — OK. - Wiring greps: no hits for
test_auto_format_workflowin.github/workflows/,flake.nix,lib/default.nix, orjustfile..github/workflows/scripts-test.ymlnames threescripts/tests/suites individually (test_update_nixpkgs_inputs.py,test_worker_preflight.py,test_bitwarden_load_secrets.py, plus a power-guard discover and the sops shell suite) — this suite is not among them. - Sibling pattern: other
scripts/tests/suites found unwired were filed individually (ci(scripts): test_hardware_doc_init.py (9 tests, #6890 regression pins) run by no workflow — hardware-doc-init branch routing verified nowhere #7597 fortest_hardware_doc_init.py). - Cross-link (rule: open PRs do not suppress a filing): open PR ci(auto-format): retry after main push races #6200 adds a sixth test to this same file for auto-format: push-race rebase conflict aborts the pass (run 41684257818) — make conflicted passes retryable/distinguishable #5230's push-race fix; shepherding it is already queued (task 12729). That PR's CI would run the suite once, on that branch — the standing gap on main remains this issue's subject.
- Dedup: title/keyword searches (
test_auto_format_workflow, "auto-format workflow test suite") returned no existing issue.
Why it matters
Auto-format runs unattended on main and commits directly. Its two historical failure modes — silently not recording success (so ranges get reprocessed or skipped) and dropping tracked formatter changes — are exactly what this suite pins. With the suite unwired, a future edit to the workflow's run block can reintroduce either failure with no signal.
Acceptance criteria
- The suite runs in CI on changes to
scripts/tests/test_auto_format_workflow.pyand.github/workflows/auto-format.yml(e.g. a named step inscripts-test.yml, mirroring its sibling suites). - The suite is green on current main in that venue.
- The wiring survives a deliberate break check: mutating the run block's success-recording path makes the CI step fail (or the attempt is recorded on this issue).
Metadata
Metadata
Assignees
Labels
area/ciCI/CD pipelines, workflows, and build automation (area)CI/CD pipelines, workflows, and build automation (area)effort/xsTrivial: expected under 30 minutes of workTrivial: expected under 30 minutes of workkind/ciCI/CD pipelines, workflows, and build automationCI/CD pipelines, workflows, and build automationpriority/normalOrdinary priority (the default)Ordinary priority (the default)source/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Nov 8, 2026
CODE-2291
dezren39 commentedon Nov 8, 2026
🤖 Agent note · filed
python3 -m unittest test_auto_format_workflow= 5 tests OK; wiring greps across .github/workflows/, flake.nix, lib/default.nix, justfile = no hits; scripts-test.yml names only 3 sibling suites.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, triage belongs to the dedicated triage step — this fix lane does not triage. Parked back 1500s with stage awaiting_triage; no findings, no label changes, no follow-up enqueue (bookkeeping only).dezren39 commentedon Nov 11, 2026
🤖 Agent note · triaged + picked up (inline triage, #8187)
30 remaining items
dezren39 commentedon Nov 11, 2026
🤖 Agent note · picked up + wiring shipped as PR #8640 — parked on CI + Codex
dezren39 commentedon Nov 11, 2026
🤖 Agent note · picked up (resume) — merged
python3 -m unittest discover -s scripts/tests -p 'test_auto_format_workflow.py'→ Ran 6 tests, OK. The deliberate-break acceptance check was already satisfied by the previous lane (wrong recorded SHA failed 4/6, reverted; recorded in task 13618's progress). GitHub Actions checks remain stalled fleet-wide, so the local run is the operative gate under the standing merge authority.Merge pull request #8640 from developing-today/queue/13618-7664-scrip…