Skip to content

ci: add hk.pkl pre-push hook (RIG-9055) - #55

Closed
rigel-mintaka wants to merge 1 commit into
rigel-releasefrom
ci-pipelines/rig-9055-add-hk-pkl-pre-push-hook
Closed

rigel-mintaka wants to merge 1 commit into
rigel-releasefrom
ci-pipelines/rig-9055-add-hk-pkl-pre-push-hook

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What does this do

Adds a root hk.pkl on rigel-release. Its pre-push hook runs three steps: cargo fmt --check, cargo clippy --tests, and cargo +stable test --features no-e2e-tests. These match the lint and test-unit recipes in justfile.

Why do we need it

rjc submit refuses every PR on this repo with hooks-absent while no hk.pkl exists. This file lets the pre-push gate run, so PRs can be submitted.

Summary

  • New file: hk.pkl, pinned to hk v2.11.1.
  • No Rust source, CI workflow, or dependency changes.

Verification

  • pkl eval hk.pkl exits 0.
  • hk validate reports hk.pkl is valid.
  • The three pre-push check commands were run on a clean archive of this commit.

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

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>
@linear-code

linear-code Bot commented Nov 17, 2026

Copy link
Copy Markdown

RIG-9055

@rigel-mintaka

Copy link
Copy Markdown
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.

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