Repository navigation
ci: add hk.pkl pre-push hook (RIG-9055) - #55
Closed
rigel-mintaka wants to merge 1 commit into
Closed
rigel-mintaka wants to merge 1 commit into
rigel-mintaka wants to merge 1 commit into
Conversation
Add a fork-only root hk.pkl whose pre-push hook runs the same checks as the justfile lint and test-unit recipes: cargo fmt --check, cargo clippy --tests, and cargo +stable test --features no-e2e-tests. rjc submit refuses PRs on this repo with hooks-absent until hk.pkl exists. Refs RIG-9055 Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
|
Closing: superseded. The rjc jj-vine profile skips hooks with a recorded reason, and GitHub Actions ci.yml runs these checks, so an hk.pkl here would never run. |
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.
What does this do
Adds a root
hk.pklonrigel-release. Itspre-pushhook runs three steps:cargo fmt --check,cargo clippy --tests, andcargo +stable test --features no-e2e-tests. These match thelintandtest-unitrecipes injustfile.Why do we need it
rjc submitrefuses every PR on this repo withhooks-absentwhile nohk.pklexists. This file lets the pre-push gate run, so PRs can be submitted.Summary
hk.pkl, pinned to hk v2.11.1.Verification
pkl eval hk.pklexits 0.hk validatereportshk.pklis valid.Risks
Low. The hook runs only on local push. A developer without the pinned toolchain sees the hook fail and must install it.
Spec impact
Spec-impact: none
Checks skipped:
jj-vine has no pre-push hook config on rigel-release; GitHub Actions ci.yml runs its checks (RIG-10545)Refs RIG-9055
Co-authored-by: Matt Wilkinson matt@rigel.build