Skip to content

build: pin Node in mise.toml/mise.lock and add a verify script - #112

Merged
bketelsen merged 1 commit into
mainfrom
cockpit/worker-05f9f82adc698d08
Aug 24, 2026
Merged

bketelsen merged 1 commit into
mainfrom
cockpit/worker-05f9f82adc698d08

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

Adopts core ADR-0043's tooling convention for this Node repository, closing #109:

  • Add mise.toml ([settings] lockfile = true, [tools] node = "22" — the same major CI used before this change) and the committed mise.lock from mise install (resolves to Node 22.23.2). package.json's engines.node (>=22.0.0) stays consistent.
  • Add a non-mutating npm run verify script (check:docs && check:organization && test — read-only validators, nothing formats or writes). npm run check now delegates to verify, since this repository's check gate never mutates, so there's nothing beyond verify for a developer gate to add. Documented beside the CI gate description in AGENTS.md.
  • CI's docs-gate job now provisions Node via the pinned jdx/mise-action@3c2e0cf82a5b2e5249f0d3635a4d83d0ae861518 # v4.2.5 instead of actions/setup-node, reading the version from mise.toml — one source. The scaffold-e2e job is untouched: it builds a separate template project with its own package-lock.json, unrelated to this repository's own Node runtime.

Risk tier 2 (workflow file), scoped to build tooling, CI, and docs only, per the issue's constraints.

Verification

Ran locally with MISE_DATA_DIR pointed at a writable temp dir (the default /var/lib/snowcat-cockpit/mise isn't writable in this sandbox):

mise install   # resolves/installs node 22.23.2 from mise.toml + mise.lock
npm ci
npm run verify # check:docs, check:organization, test — all pass (11/11 tests)
git status --porcelain   # empty

Test plan

  • mise install && npm ci && npm run verify passes on a clean checkout
  • git status --porcelain is empty after verify
  • CI green on this PR (docs-gate + scaffold-e2e)

Closes #109.

Adopts core ADR-0043's tooling convention for this Node repository:
mise.toml/mise.lock pin Node 22.23.2 as the single source Snowcat
workers, CI, and developers provision from, package.json gains a
non-mutating verify script (npm run check now delegates to it, since
this repository's check never formats or writes), and CI provisions
Node through the pinned jdx/mise-action instead of actions/setup-node.

Verified locally: mise install && npm ci && npm run verify pass, and
git status --porcelain is empty afterward.

Closes #109.
@bketelsen
bketelsen marked this pull request as ready for review August 24, 2026 20:07
@bketelsen
bketelsen added this pull request to the merge queue Aug 24, 2026
Merged via the queue into main with commit b33706f Aug 24, 2026
2 checks passed
@bketelsen
bketelsen deleted the cockpit/worker-05f9f82adc698d08 branch August 24, 2026 20:10
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.

build: pin Node in mise.toml/mise.lock and add a non-mutating verify script (core ADR-0043)

1 participant