Skip to content

fix(#889): disclose check_version_order.py and the hooks.json hard-failure in the reuse doc - #963

Merged
fdaviddpt merged 1 commit into
mainfrom
fix/889
Oct 7, 2026
Merged

fdaviddpt merged 1 commit into
mainfrom
fix/889

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

docs/releasing.md's "Reusing this in another plugin repository" section told an adopter to copy only the three *_release_tree.py scripts and never disclosed that a missing/hookless hooks/hooks.json is a hard failure.

  1. release-branch workflow: three small hardening follow-ups from the #853 review #856 wired check_version_order.py into release-branch.yml's publish job (called on every release that has a release parent, i.e. an adopter's second release onward). Copying only the three named scripts gets a "file not found" failure on that first qualifying release. Added check_version_order.py to the copy-list.
  2. release-branch build/check/smoke pipeline silently passes a tree with no hooks/hooks.json (or zero command hooks) #858 made a missing or hookless hooks/hooks.json an unconditional hard failure in both check_release_tree.py and smoke_release_tree.py, with no config flag to opt out. The doc named hooks.json already but never said this was unconditional. Added a bullet stating it plainly, with the workaround (add at least one command hook, even a no-op).

New tests (tests/test_releasing_doc_reuse_889.py) pin both claims against the doc's own prose, since nothing previously exercised this section at all.

Red: python3 -m pytest tests/test_releasing_doc_reuse_889.py -q -> 3 failed, against the unfixed doc.
Green: same command -> 3 passed, after the doc fix.

Self-review: two reviewers (Explore, oss:auditor) spawned in parallel, both returned 0 findings; lane's own tree_snapshot.py compare came back clean.

Closes #889

[AI-generated]

…ilure in the reuse doc

docs/releasing.md's "Reusing this in another plugin repository" section told
an adopter to copy only the three `*_release_tree.py` scripts. #856 wired
check_version_order.py into release-branch.yml's `publish` job, so an
adopter who copies only the three named scripts gets a "file not found"
failure the first time their release has a `release` parent (their second
release onward). #858 separately made a missing/empty `hooks/hooks.json` a
hard failure in both check_release_tree.py and smoke_release_tree.py, with
no documented workaround or opt-out for a plugin with no hooks of its own.

Add check_version_order.py to the copy-list and a line stating the
hooks.json requirement is unconditional. New tests
(tests/test_releasing_doc_reuse_889.py) pin both claims against the doc text
directly, since no test previously exercised this doc's prose at all.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@fdaviddpt
fdaviddpt merged commit 88eb9b5 into main Oct 7, 2026
19 checks passed
@fdaviddpt
fdaviddpt deleted the fix/889 branch October 7, 2026 14:17
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.

docs/releasing.md's reuse instructions miss check_version_order.py and the hooks.json hard-failure requirement

1 participant