Repository navigation
cargo fmt reaches one of the three manifests CI checks - #110
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cargo fmtat the repo root formats the library and nothing else.device-tests/andexamples/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
buildandregcount— realsm_100acodegen, real register gate — and a reddevice-surfacebecause a function signature wanted to be on one line. Each cost a round trip on a gate that runs in twenty seconds.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.