npm run verify: one local command runs every light check CI runs #260

Closed
opened 2026-11-26 10:37:58 +00:00 by pallas · 2 comments
Member

Purpose (fix): one command, npm run verify, runs every light check the CI checks job runs — the structural floor and the check:* scripts — in under ~5 minutes on host00, so a member knows before a push that the light gates pass, and a docs-only change can run the light set instead of the whole suite.

DECIDED 2026-11-26 (Raf, via the Supervisor): "Other-repo bundle, Local verify command, Docs-only changes run light, Gate 2nd test pass on landing". This package is the "Local verify command" part.

The folded ci.yml (martha#251, PR 253 at d929ec4b) folds the light checks into one checks job. The heavy proofs — the clean-install --self-test (~19.3 min), the relay load, the installer, and the full npm test gate-coverage run — are not light and stay out of verify. verify is the ~3.7 min of the checks job, the checks minus the clean-install self-test.

No ci.yml edit: that is the fold's area (martha#251). package.json and docs only.

Refs martha#251 (the fold).

Purpose (fix): one command, `npm run verify`, runs every light check the CI `checks` job runs — the structural floor and the `check:*` scripts — in under ~5 minutes on host00, so a member knows before a push that the light gates pass, and a docs-only change can run the light set instead of the whole suite. DECIDED 2026-11-26 (Raf, via the Supervisor): "Other-repo bundle, Local verify command, Docs-only changes run light, Gate 2nd test pass on landing". This package is the "Local verify command" part. The folded ci.yml (martha#251, PR 253 at d929ec4b) folds the light checks into one `checks` job. The heavy proofs — the clean-install `--self-test` (~19.3 min), the relay load, the installer, and the full `npm test` gate-coverage run — are not light and stay out of `verify`. `verify` is the ~3.7 min of the `checks` job, the checks minus the clean-install self-test. No ci.yml edit: that is the fold's area (martha#251). package.json and docs only. Refs martha#251 (the fold).
Author
Member

Built (martha#260): npm run verify runs lint (structural floor, here and in the installer) then the check:* scripts the checks job holds, in ~2 minutes on host00 (measured with nice -n 10).

Two decisions a reader of the folded ci.yml would not see, made deliberately:

  1. Range checks judge origin/main..HEAD, not the whole tree. CI's live checks steps run check:base-tests, check:pictures, check:restated-values and check:private over the change's range; the whole-tree modes are either stricter (and stale on main, as check:pictures --tree shows today on assets/c4-components.svg) or the release backstop. So verify mirrors CI's live range, with origin/main as the local base.

  2. The links check is left out. check:links runs lychee, a binary only the CI container image carries; on host00 it answers "the checker left no report this check could read" (exit 2) and would make verify always fail. It stays CI-only.

verify exits non-zero at the first failing check (the && chain), and a full run on this tree is green in 2:07.

Built (martha#260): `npm run verify` runs lint (structural floor, here and in the installer) then the `check:*` scripts the `checks` job holds, in ~2 minutes on host00 (measured with `nice -n 10`). Two decisions a reader of the folded ci.yml would not see, made deliberately: 1. **Range checks judge `origin/main..HEAD`**, not the whole tree. CI's live `checks` steps run `check:base-tests`, `check:pictures`, `check:restated-values` and `check:private` over the change's range; the whole-tree modes are either stricter (and stale on main, as `check:pictures --tree` shows today on `assets/c4-components.svg`) or the release backstop. So `verify` mirrors CI's live range, with `origin/main` as the local base. 2. **The links check is left out.** `check:links` runs lychee, a binary only the CI container image carries; on host00 it answers "the checker left no report this check could read" (exit 2) and would make `verify` always fail. It stays CI-only. `verify` exits non-zero at the first failing check (the `&&` chain), and a full run on this tree is green in 2:07.
Member

Done-when check against main 3f092f10 (landed-but-open sweep, 2026-12-01). Each commit below is an ancestor of main (git merge-base --is-ancestor).

  • One local command runs every light check CI runs: met, PR 265 (94444e03); npm run verify in package.json runs lint, the installer lint and the check:* scripts of the checks job.

Every line is met. Closing.

Done-when check against main `3f092f10` (landed-but-open sweep, 2026-12-01). Each commit below is an ancestor of main (`git merge-base --is-ancestor`). - One local command runs every light check CI runs: met, PR 265 (`94444e03`); `npm run verify` in `package.json` runs lint, the installer lint and the `check:*` scripts of the checks job. Every line is met. Closing.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
martha-ai/martha#260
No description provided.