chore(ci): local preflight gate + pre-push hook#17
Merged
Conversation
Resurrected from the land-m3 branch (its content never reached main via the PR #11 squash). scripts/preflight.sh mirrors the CI gates (fmt, clippy, test, audit) so a green preflight predicts green CI; .githooks/pre-push runs the fast no-compile subset (fmt + audit) on every push to catch the hygiene failures that slipped through on earlier PRs. Audit ignore list synced to the three advisories ci.yml currently suppresses. Enable per-clone with: git config core.hooksPath .githooks
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.
Adds a local mirror of the CI gates so hygiene failures (fmt, clippy, audit) are caught before they reach CI -- the exact class of failure that cost round-trips on the last two PRs.
Rescued from the
land-m3branch, whose tip never reachedmainvia the PR #11 squash. Two files:scripts/preflight.sh-- runs the same gates as.github/workflows/ci.yml:cargo fmt --all --check,cargo audit(with the same three suppressed advisories),cargo clippy --workspace --all-targets -D warnings,cargo test --workspace. A green preflight predicts a green CI (minus the Docker/remote-only Postgres and mirror jobs).--fastruns just the no-compile subset (fmt + audit)..githooks/pre-push-- runspreflight --faston every push (cheap, no build) and blocks the push if it would fail CI.git push --no-verifybypasses.Reconciled with current
main: the audit ignore list is synced to the three advisoriesci.ymlsuppresses today (the branch original only knew about one).Enable per-clone:
Verified:
preflight --fastpasses on this tree, and the pre-push hook ran (and passed) on the push that created this branch.