729. The pre-push hook runs what fits in seconds
Raised 2026-10-03 (UTC). The number is provisional until the merge queue lands it; the title and slug are drafts, and every new name below is provisional.
Why
Milestone 630 (a merge-queue ejection is caught before the queue, and recovered after it) made the
pre-push hook all of script/lint. On 2026-10-03 that cost 70 to 120 s warm and 202 s cold on a
loaded machine, a claim push sat in it for a whole lane, and it refused five claim pushes.
The roadmap block they lacked cannot exist yet. Lanes took to --no-verify. calef approved the narrower
decision on #1564 (2026-10-03 UTC): "Approve the revised decision 3."
Built
script/lint --no-cargoruns every lint section that does not invoke cargo. The partition is read out ofscript/lintbyhelpers/lint-no-cargo.awk, so a new check lands in one bucket when it is written. 46 of 65 sections run. A section that opts in with a marker, as counted claims does for its harness-count cross-check, must also guard on$LINT_NO_CARGO.helpers/lint-no-cargo-selftest.shproves the rule and runs inside lint..githooks/pre-pushrunsscript/fmt --check, thenscript/lint --no-cargo, then--ready-branch, and skips all three for a push that changes no files, so a claim push is no longer refused for a missing roadmap block.--no-verifystays documented as legitimate.- Measured on patagonia at a load average of 15 to 17:
script/lint --no-cargotook 41.6, 47.2 and 44.7 s on a warm tree, and fmt plus lint 43.0 s with notarget/directory. The proposal's estimate of about 33 s was low. The numbers are innotes/queue-ejection.md.
BUGS
- Clippy and the checks that call
cargo metadatawait for CI. Thecargo metadataones are fast and could run here; the rule is "does not invoke cargo" because that is what calef approved. - The hook no longer fits in seconds. On 2026-10-20 (UTC) on patagonia,
script/lint --no-cargotook 84 to 100 s at a load average of 3 to 10 and 176 s at 29, and a fleet clone'sscript/lint-fleetadds 45 to 50 s. No section dominates: the slowest took 11 s. GitHub drops an idle push connection after 300 to 480 s, soscript/pushkeeps it alive and confirms the push.
Follow-on
- Recorded. Clippy and the
cargo metadatachecks waiting for CI is the BUGS entry above, beside the feature innotes/scripts.md.
Index row
The pre-push hook runs script/fmt --check, then every lint check that does not invoke cargo
(script/lint --no-cargo), then the ready-status check, and skips all of it for a push that changes
no files.