Repository navigation
Run the documentation checks once per CI commit - #237
Merged
Merged
Conversation
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
force-pushed
the
claude/issue-231-check-composition
branch
from
September 20, 2026 05:07
98c10de to
556a932
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #231.
What changed
package.json: newcheck:codeholds the four non-documentation checks (check.ts,check-release-tags.ts,check-workspace-links.ts,release:check).checkis nownpm run check:code && npm run check:docs, so a localnpm run checkstill runs everything, once each..github/workflows/ci.yml: the full-lanestaticjob runsnpm run check:codeinstead ofnpm run check. The always-rundocsjob still runsnpm run check:docs, unchanged.test/ci-release.test.ts: a new test expands the npm scripts and assertscheckis exactlycheck:codepluscheck:docswith nothing in both and the docs set still seven; then asserts both lanes' gate behavior — the docs lane'sdocsjob is unconditional and carries the prose checks, the full lane'sstaticjob adds only the remainder, and no job runs the barecheck.docs/DEVELOPMENT-PIPELINE.md: documents the composition and listscheck:codealongsidecheck:docs.Scale, honestly
This is duplicate-work removal, not a speedup. The sampled documentation checking was about two seconds, and
staticstill installs dependencies for lint, typecheck and the code checks, so the duplicatednpm ciis 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 theverify-completedependency list.Verified
npm run lint,npm run typecheck,npm run check, and fullnpm test(583 tests, 582 passed, 1 pre-existing skip) on macOS / Node 26. The new test was confirmed to fail whenstaticis reverted tonpm run check.Not established
Actual behavior on GitHub Actions (not run here), and any real CI timing effect.
🤖 Generated with Claude Code