Skip to content

cargo fmt reaches one of the three manifests CI checks - #110

Merged
feitreim merged 1 commit into
mainfrom
fmt-all-manifests
Jul 29, 2026
Merged

feitreim merged 1 commit into
mainfrom
fmt-all-manifests

Conversation

@feitreim

Copy link
Copy Markdown
Owner

cargo fmt at the repo root formats the library and nothing else. device-tests/ and examples/ are separate workspaces, invisible from there — but tier 1 checks all three (.github/workflows/ci.yml).

So a change can be format-clean locally and red in CI on whitespace alone. It has been, three times today: #97, #104 and #109. Every one had green build and regcount — real sm_100a codegen, real register gate — and a red device-surface because a function signature wanted to be on one line. Each cost a round trip on a gate that runs in twenty seconds.

scripts/fmt          # format all three
scripts/fmt --check  # exactly what CI runs

Verified both modes on main. CI.md's tier 1 section now says to use it and why.

This is deliberately a script and not a git hook: hooks are per-clone, and the agents that hit this each work in a fresh worktree. A script in the tree is visible to anyone reading CI.md, which is where they are told to look.

Tier 1 checks the library, device-tests and examples. A root `cargo fmt`
reaches only the first -- the other two are separate workspaces -- so a change
can be clean locally and red in CI on whitespace alone. That has happened three
times (#97, #104, #109), each costing a review round trip on a gate that runs in
twenty seconds.
@feitreim
feitreim merged commit 5037bf6 into main Jul 29, 2026
3 checks passed
@feitreim
feitreim deleted the fmt-all-manifests branch July 29, 2026 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant