fix(release): enforce strict semver release tags#5
Merged
Conversation
Release-please was deriving component-prefixed tags from the configured package name, while the production workflow intentionally accepts only vX.Y.Z tags. Disable component inclusion in generated tags and document the strict tag contract so the release workflow and release tool agree. Constraint: Production release tags must remain strict vX.Y.Z. Rejected: Relax the workflow regex to accept codebase-graph-vX.Y.Z | user explicitly required strict vX.Y.Z tags. Confidence: high Scope-risk: narrow Directive: Do not re-enable component-prefixed tags unless the production release gate is intentionally changed too. Tested: .venv/bin/python -m pytest tests/test_release_workflows.py -q Tested: .venv/bin/ruff check tests/test_release_workflows.py Tested: .venv/bin/python scripts/check_release_gate.py Tested: .venv/bin/ruff check . Tested: .venv/bin/python -m pytest -q Not-tested: Remote release recovery for the already-created codebase-graph-v0.1.0 tag.
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.
Summary
vX.Y.Ztags by disabling component-prefixed tags.Verification
.venv/bin/python -m pytest tests/test_release_workflows.py -q.venv/bin/ruff check tests/test_release_workflows.py.venv/bin/python scripts/check_release_gate.py.venv/bin/ruff check ..venv/bin/python -m pytest -qRelease recovery note
The failed run already created
codebase-graph-v0.1.0; there is currently nov0.1.0tag or release. Recovering the already-created0.1.0release requires correcting that remote tag/release separately after this lands.