Skip to content

Run the documentation checks once per CI commit - #237

Merged
jimhoyd merged 1 commit into
mainfrom
claude/issue-231-check-composition
Sep 20, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/issue-231-check-composition

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

Closes #231.

What changed

  • package.json: new check:code holds the four non-documentation checks (check.ts, check-release-tags.ts, check-workspace-links.ts, release:check). check is now npm run check:code && npm run check:docs, so a local npm run check still runs everything, once each.
  • .github/workflows/ci.yml: the full-lane static job runs npm run check:code instead of npm run check. The always-run docs job still runs npm run check:docs, unchanged.
  • test/ci-release.test.ts: a new test expands the npm scripts and asserts check is exactly check:code plus check:docs with nothing in both and the docs set still seven; then asserts both lanes' gate behavior — the docs lane's docs job is unconditional and carries the prose checks, the full lane's static job adds only the remainder, and no job runs the bare check.
  • docs/DEVELOPMENT-PIPELINE.md: documents the composition and lists check:code alongside check:docs.

Scale, honestly

This is duplicate-work removal, not a speedup. The sampled documentation checking was about two seconds, and static still installs dependencies for lint, typecheck and the code checks, so the duplicated npm ci is not eliminated either — only the repeated checks are. No timing measurement was taken for this change and no wall-time saving is claimed.

Preserved

Docs-only checks, fail-closed lane planning in scripts/ci-plan.ts (untouched), required check names (verify-complete, container), and the verify-complete dependency list.

Verified

npm run lint, npm run typecheck, npm run check, and full npm test (583 tests, 582 passed, 1 pre-existing skip) on macOS / Node 26. The new test was confirmed to fail when static is reverted to npm run check.

Not established

Actual behavior on GitHub Actions (not run here), and any real CI timing effect.

🤖 Generated with Claude Code

The always-run `docs` job runs `check:docs`, and the full-lane `static` job
ran `check`, which contained the same seven documentation checks. Both jobs
install dependencies and ran them on the same checkout.

Split `check` into `check:code` (the four remaining checks) plus the existing
`check:docs`, and compose `check` from the two so a local `npm run check` is
still complete. `static` now runs `check:code`.

This removes duplicated work, not meaningful wall time: the sampled
documentation checking was about two seconds, and `static` still installs
dependencies for lint, typecheck and the code checks. No claim of a speedup
is made here, and none was measured.

Lane planning, job names and `verify-complete` dependencies are unchanged.

Verified: `npm run lint`, `npm run typecheck`, `npm run check` and the full
`npm test` (582 passed, 1 pre-existing skip) locally on macOS/Node 26. A new
test expands the scripts and asserts `check` equals `check:code` plus
`check:docs` with no command in both, that the docs lane's always-run `docs`
job carries the prose checks, and that no job runs the full `check`; it was
confirmed to fail when `static` is reverted to `npm run check`. Not verified:
actual CI behavior on GitHub, and no timing measurement was taken.

Co-Authored-By: Claude Opus 5 <[email protected]>
@jimhoyd
jimhoyd force-pushed the claude/issue-231-check-composition branch from 98c10de to 556a932 Compare September 20, 2026 05:07
@jimhoyd
jimhoyd merged commit e2fa5df into main Sep 20, 2026
20 checks passed
@jimhoyd
jimhoyd deleted the claude/issue-231-check-composition branch September 20, 2026 05:15
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.

[Request]: Avoid repeating documentation checks in the full CI lane

1 participant