GeezerVison is showing github.com — ci: treefmt check fails fleet-wide — flags files outside PR diffs (nixos/home/*), main pushes red since ~18:24Z 2026-10-28 · Issue #1784 · developing-today/code
ci: treefmt check fails fleet-wide — flags files outside PR diffs (nixos/home/*), main pushes red since ~18:24Z 2026-10-28 #1784Labels area/ciCI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item DescriptionProblem
On 2026-10-28 the treefmt check job in nix-ci.yml became the fleet's dominant false-red: of the last 28 completed nix-ci runs sampled 19:12Z (17 success / 8 failure / 3 cancelled), all 8 failures are the treefmt check job — including runs on main pushes (e.g. run 40744776742 @ 18:24Z, run 40748461479 @ 18:48Z) — while Nix flake evaluation passed throughout.
Worse, PR runs fail for files outside the PR's diff: PR #1731 (diff = pkgs/id/web/src/navigation.ts + test only, per gh pr diff) failed treefmt with 13 flagged files, all unrelated: nixos/home/laptop-autocommit.nix, nixos/home/laptop-backups.nix, nixos/home/*.sh, .github/workflows/flake-inputs-update.yml (job 122995015603 log). A later failed job (123028438014) flags nixos/home/laptop-repo-keeper.sh. The flagged set looks like files that landed on main unformatted (laptop-autocommit family) being swept into other branches' changed-file computations — the job diffs $base_sha...$GITHUB_SHA (nix-ci.yml:51), so the base/head semantics for pull_request merge commits vs moved main need checking.
Impact
Every PR's nix-ci verdict is currently unreliable; queue workers park merge-ready PRs (tasks 1841/#1578 today, plus at least PRs in runs 40741007599, 40741900122, 40743077092, 40744747559, 40747684674) and burn shifts re-diagnosing the same red.
Acceptance criteria
- Root cause identified: why files outside a PR's three-dot diff are format-checked (or, if the files are simply unformatted on main, why main pushes pass the pre-merge gate)
- The currently-flagged files on main are formatted (or the check's changed-file set is corrected), and
nix-ci on main is green again
- A PR whose diff touches none of the flagged files shows a green
treefmt check
Found by queue task 1076's investigation of #774 (Lane B shift, 2026-10-28) — related but distinct: #774 is Magic Nix Cache 418s, which were NOT observed in today's sample. Activitydeveloping-today commented on Oct 28, 2026 developing-today commented on Nov 3, 2026 agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 7254 (triage, queued, priority 50) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03 dezren39 commented on Nov 3, 2026 dezren39 commented on Nov 3, 2026 🤖 Agent note · done
Findings (verified fresh this shift):
- The treefmt merge gate no longer exists. Commit
4dc6cb057 (2026-10-29T07:12Z, "ci: formatting leaves the merge tier — auto-format bot on main, proxy fallbacks stay basic (ci: Phase 2 — PR-tier slimming (basic validation on PRs, full suite on main) #1781)") removed formatting from the merge tier. Current .github/workflows/nix-ci.yml on main has no treefmt check job; the proxy-port-fallbacks job header states: "This job used to also run the treefmt format check; formatting is no longer a merge gate — it is auto-fixed on main by .github/workflows/auto-format.yml (see .github/ci-policy.md)." Since commit 285e425b7 (2026-11-02) nix-ci does not trigger on pull requests at all, so no PR can fail a treefmt check for files outside its diff — acceptance criterion 3 is superseded by construction.
- nix-ci on main is green. Last 100 main-branch runs sampled 2026-11-03: completed = 37 success / 10 cancelled / 0 failure (window 16:46–19:34Z). Latest completed run 41704564554 (19:34Z) jobs: Nix flake evaluation ✓, NixOS host evaluation ✓, proxy port fallbacks ✓.
- Flagged files are handled by the auto-format bot on main. 45
style(treefmt): auto-format on main commits exist; latest 87582f1 at 2026-11-03T09:48Z — the bot continuously formats whatever lands unformatted, instead of red-flagging unrelated PRs.
- Root cause per the original report (unformatted files on main swept into other branches' changed-file sets) is therefore moot: there is no changed-file format gate left to sweep them into.
One unrelated observation, not a blocker for issue #1784: auto-format schedule run 41684257818 (2026-11-03T17:26Z) failed on a push race (error: could not apply 2b36e5430... style(treefmt): auto-format on main — main moved under it). That is auto-format reliability territory (cf. #4787), not the fleet-wide false-red this issue tracked.
Closing issue #1784 as completed/superseded by the #1781 change. Task 7254 completes as already_done.
MetadataMetadataarea/ciCI/CD pipelines, workflows, and build automation (area)kind/ciCI/CD pipelines, workflows, and build automationpriority/highImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item DevelopmentNo branches or pull requestsIssue actions
|