Skip to content

feat(packages): check-release --staged classifies pre-bump findings as expected (#227 E3#6) - #239

Merged
chrisdpurcell merged 1 commit into
testingfrom
staged
Sep 1, 2026
Merged

chrisdpurcell merged 1 commit into
testingfrom
staged

Conversation

@chrisdpurcell

Copy link
Copy Markdown
Collaborator

Summary

packages check-release --staged: classifies exactly PC-RELEASE-LEVEL, PC-RELEASE-PROJECTION, PC-RELEASE-PROJECT-VERSION as expected pre-bump findings (reported as EXPECTED-PRE-BUMP, listed under an additive expected_pre_bump JSON key) and exits 0 when nothing else is found; every other finding still fails. Without the flag, output and exit are byte-identical to before. Documented in docs/usage.md.

Governing work

Supporting: #227

Acceptance coverage

Verification

tests/package_contract/test_cli.py (21 passed), tests/test_usage_doc_inventory.py (64), tests/package_contract/test_release.py (26), tests/control_plane/test_catalog_refresh.py (33); ruff format/check, basedpyright, five standards validators, prettier + markdownlint on the two docs — all exit 0. Live: check-release --root . --baseline v5.28.0 --staged exits 0 with PC-RELEASE-LEVEL labelled expected.

@chrisdpurcell
chrisdpurcell marked this pull request as ready for review September 1, 2026 20:27
Between a landed payload cut and release prep, `.standards/`, the catalog
projection and the project version lag the catalog by design, so
check-release reported PC-RELEASE-LEVEL, PC-RELEASE-PROJECTION and
PC-RELEASE-PROJECT-VERSION and exited 1 on a tree that was correct for
its phase. `--staged` labels exactly those three codes expected pre-bump
and exits 0 when nothing else is found; every other code still fails.
JSON additively gains `staged` and `expected_pre_bump`. Without the flag
output and exit status are unchanged.

Refs #227
Refs #236
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.

1 participant