Skip to content

chore(hooks): add an hk pre-push hook that runs the CI checks (RIG-9081) - #70

Merged
mattwilkinsonn merged 1 commit into
mainfrom
web/rig-9081-add-an-hk-pre-push-hook-that-runs-the-ci
Nov 11, 2026
Merged

mattwilkinsonn merged 1 commit into
mainfrom
web/rig-9081-add-an-hk-pre-push-hook-that-runs-the-ci

Conversation

@rigel-mintaka

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

Copy link
Copy Markdown
Contributor

This PR is part of a stack containing 2 PRs:

  1. main
  2. "chore(hooks): add an hk pre-push hook that runs the CI checks (RIG-9081)" (this PR)
  3. feat(site): add the canonical docs-dispatch workflow (RIG-9080) #71

Summary

Adds an hk pre-push hook. Our submit tool refuses to push to a repo with no hook config, so every PR here was blocked.

  • hk.pkl: pre-push runs the same checks as ci.yml, in order: frozen install, bun test, rumdl check ., biome ci ., bun run ref-gate, bun run build. The design-ledger gate stays CI-only because it needs PR context.
  • tools/toolchain/hk.nix: hk 2.11.1 pinned per platform, the same derivation and hashes as meissa.
  • flake.nix exports hk. devenv.nix adds it to the shell and sets HK_STATE_DIR.

Verification

  • hk --version in the dev shell: 2.11.1. hk validate: valid.
  • hk run pre-push --all, every step passed:
    • install: 489 packages
    • test: 24 pass
    • markdown: 44 files clean
    • biome: 17 files clean
    • ref-gate: clean
    • build: 50 pages

Risks

  • Pre-push now runs the full site build, so a push takes longer. CI already runs the same steps.

Refs RIG-9081

Co-authored-by: Matt Wilkinson matt@rigel.build

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@linear-code

linear-code Bot commented Nov 10, 2026

Copy link
Copy Markdown

RIG-9081

@github-actions

Copy link
Copy Markdown

Rigel public design docs preview: https://web-rig-9081-add-an-hk-pre-p.docs-2ui.pages.dev

Deployed from web/rig-9081-add-an-hk-pre-push-hook-that-runs-the-ci at 1f15f02.

@rigel-mintaka

Copy link
Copy Markdown
Contributor Author

Review on 1f15f020: 0 high, 0 medium, 1 low.

  • Low: hk.nix has no x86_64-darwin tarball, but the flake lists that system. Deferred. The file is a byte-identical copy of meissa's, and meissa has the same gap. CI is x86_64-linux and never evaluates hk. If Intel Mac support matters, fix it in meissa first and re-copy.

Checked: the steps match ci.yml; hk validate passes and the plan resolves a linear dependency chain; the hk.nix sha256 is identical to meissa's; the devenv wiring matches; no private references.

All-clear on 1f15f020d8fcd82257487a04ea9105790b4be45b.

@mattwilkinsonn
mattwilkinsonn merged commit 67bc2ec into main Nov 11, 2026
2 checks passed
@mattwilkinsonn
mattwilkinsonn deleted the web/rig-9081-add-an-hk-pre-push-hook-that-runs-the-ci branch November 11, 2026 00:13
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.

2 participants