Skip to content

fix(release): enforce strict semver release tags#5

Merged
rabii-chaarani merged 1 commit into
mainfrom
codex/fix-strict-release-tags
May 28, 2026
Merged

fix(release): enforce strict semver release tags#5
rabii-chaarani merged 1 commit into
mainfrom
codex/fix-strict-release-tags

Conversation

@rabii-chaarani
Copy link
Copy Markdown
Owner

Summary

  • Configure release-please to emit strict vX.Y.Z tags by disabling component-prefixed tags.
  • Document the strict tag contract.
  • Add a regression test that keeps release-please config aligned with the workflow gate.

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 -q

Release recovery note

The failed run already created codebase-graph-v0.1.0; there is currently no v0.1.0 tag or release. Recovering the already-created 0.1.0 release requires correcting that remote tag/release separately after this lands.

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.
@rabii-chaarani rabii-chaarani merged commit f0f9342 into main May 28, 2026
36 checks passed
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