Repository navigation
docs: disclose that a pre-v0.39.0 tag push skips the version-order guard - #964
Merged
Merged
Conversation
…er guard #856's check_version_order.py refusal only exists in release-branch.yml as of v0.39.0. An ordinary `push: tags:` trigger runs the workflow file as it is at the tagged commit, not the one on main, so pushing a patch tag directly for a release line older than v0.39.0 runs that line's own pre-#856 copy of the workflow -- which has no guard at all -- and the version-regression refusal never fires. docs/releasing.md now says to publish any such line through workflow_dispatch from main instead. 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.
#856's
check_version_order.pyrefusal only exists inrelease-branch.ymlas of v0.39.0. An ordinarypush: tags:trigger runs the workflow file as it exists at the tagged commit, not the copy onmain, so a patch tag pushed directly for a release line older than v0.39.0 runs that line's own pre-#856 copy of the workflow -- which has no guard step at all -- and the version-regression refusal never fires.This is a docs-only fix: the underlying GitHub Actions trigger-semantics behaviour is not fixable in this repo's code, and the issue's own suggested remedy was to document the caveat, which is what this diff does.
docs/releasing.mdnow states the caveat right after the existing #856 guard description: any release line before v0.39.0 must be published viaworkflow_dispatchfrommainrather than a direct tag push, until no reachable release line predates the guard.TDD:
tests/test_releasing_doc_pretag_guard_892.pyfails red against the pre-fix doc (missingworkflow_dispatch/v0.39.0/892in the guard section) and passes green after the edit, alongside a positive-control test confirming the pre-existingallow_version_regressiondescription is not deleted by the same change.Closes #892.
[AI-generated]