Repository navigation
Merged
Conversation
…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]>
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.
docs/releasing.md's "Reusing this in another plugin repository" section told an adopter to copy only the three
*_release_tree.pyscripts and never disclosed that a missing/hooklesshooks/hooks.jsonis a hard failure.check_version_order.pyintorelease-branch.yml'spublishjob (called on every release that has areleaseparent, 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. Addedcheck_version_order.pyto the copy-list.hooks/hooks.jsonan unconditional hard failure in bothcheck_release_tree.pyandsmoke_release_tree.py, with no config flag to opt out. The doc namedhooks.jsonalready but never said this was unconditional. Added a bullet stating it plainly, with the workaround (add at least onecommandhook, 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]