tooling: verify generated CLI manpage drift #378

Merged
barrettruth merged 1 commit from issue-362-manpage-drift into main 2026-05-11 21:25:09 +00:00
Owner

Problem

version:check only verified the generated CLI manpage version line, so body drift between cli/man/delta.1.md and cli/man/delta.1 could pass.

Solution

  • Render cli/man/delta.1.md to a temporary manpage during version:check.
  • Compare the rendered output with tracked cli/man/delta.1 after the existing version-line check.
  • Keep build:man deterministic by passing the same explicit manpage date used by the tracked output.
  • Cover the drift comparison helper in focused tests.

Verification

  • nix develop --command pnpm vitest run tests/core/versioning-lib.test.ts tests/core/versioning.test.ts --reporter=verbose
  • nix develop --command pnpm --dir cli build:man
  • nix develop --command pnpm version:check
  • nix develop --command just lint
  • nix develop --command just test
  • nix develop --command just build

Closes #362
Parent #355

## Problem `version:check` only verified the generated CLI manpage version line, so body drift between `cli/man/delta.1.md` and `cli/man/delta.1` could pass. ## Solution - Render `cli/man/delta.1.md` to a temporary manpage during `version:check`. - Compare the rendered output with tracked `cli/man/delta.1` after the existing version-line check. - Keep `build:man` deterministic by passing the same explicit manpage date used by the tracked output. - Cover the drift comparison helper in focused tests. ## Verification - `nix develop --command pnpm vitest run tests/core/versioning-lib.test.ts tests/core/versioning.test.ts --reporter=verbose` - `nix develop --command pnpm --dir cli build:man` - `nix develop --command pnpm version:check` - `nix develop --command just lint` - `nix develop --command just test` - `nix develop --command just build` Closes #362 Parent #355
tooling: check cli manpage drift
All checks were successful
quality / Test (pull_request) Successful in 16s
quality / Lint (pull_request) Successful in 21s
quality / Build (pull_request) Successful in 42s
2c49991bd9
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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
barrettruth/delta!378
No description provided.