DEVX-10: Fix release script: tag verification, idempotency, and alignment checking #20

Merged
emil merged 0 commits from devx-10-fix-release-script into master 2026-06-23 01:28:28 +00:00
Owner

Summary

  • Add fetch_tags() to sync remote tags before release (prevents duplicate release commits in CI)
  • Add verify_tag_consistency() pre-flight check that aborts if tags are misaligned
  • Add --verify flag to check tag/version/changelog/release alignment without making changes
  • Strengthen create_and_push_tag() to verify tag points to HEAD (raises on misalignment)
  • Fix has_unreleased_changes() to exclude release commits (prevents duplicate commits)
  • Fix CHANGELOG.md: remove duplicate [0.1.0] section, add missing blank lines

Root causes fixed

  1. No tag fetching — CI checkouts didn't fetch tags, causing duplicate release commits
  2. Weak idempotency — release lock checked tag existence but not tag-commit alignment
  3. No pre-flight check — script didn't verify existing tags were consistent before releasing
  4. No verification tool — no way to audit tag/version/changelog alignment

Closes DEVX-10

## Summary - Add `fetch_tags()` to sync remote tags before release (prevents duplicate release commits in CI) - Add `verify_tag_consistency()` pre-flight check that aborts if tags are misaligned - Add `--verify` flag to check tag/version/changelog/release alignment without making changes - Strengthen `create_and_push_tag()` to verify tag points to HEAD (raises on misalignment) - Fix `has_unreleased_changes()` to exclude release commits (prevents duplicate commits) - Fix CHANGELOG.md: remove duplicate `[0.1.0]` section, add missing blank lines ## Root causes fixed 1. **No tag fetching** — CI checkouts didn't fetch tags, causing duplicate release commits 2. **Weak idempotency** — release lock checked tag existence but not tag-commit alignment 3. **No pre-flight check** — script didn't verify existing tags were consistent before releasing 4. **No verification tool** — no way to audit tag/version/changelog alignment Closes DEVX-10
emil reviewed 2026-06-22 22:21:24 +00:00
emil left a comment
Author
Owner

Automated PR Review

  • Architecture compliance: OK
  • Best practices: OK
  • Security: OK
  • i18n: OK
  • Resource management: OK
  • Documentation: OK
  • Tests: OK
  • Commit conventions: OK

No issues found by automated checks.


Auto-merge: If all CI checks pass, this PR will be merged automatically.

## Automated PR Review - Architecture compliance: OK - Best practices: OK - Security: OK - i18n: OK - Resource management: OK - Documentation: OK - Tests: OK - Commit conventions: OK No issues found by automated checks. --- **Auto-merge:** If all CI checks pass, this PR will be merged automatically.
emil reviewed 2026-06-22 22:38:26 +00:00
emil left a comment
Author
Owner

Automated PR Review

  • Architecture compliance: OK
  • Best practices: OK
  • Security: OK
  • i18n: OK
  • Resource management: OK
  • Documentation: OK
  • Tests: OK
  • Commit conventions: OK

No issues found by automated checks.


Auto-merge: If all CI checks pass, this PR will be merged automatically.

## Automated PR Review - Architecture compliance: OK - Best practices: OK - Security: OK - i18n: OK - Resource management: OK - Documentation: OK - Tests: OK - Commit conventions: OK No issues found by automated checks. --- **Auto-merge:** If all CI checks pass, this PR will be merged automatically.
emil added the ready-to-merge label 2026-06-23 01:26:07 +00:00
emil reviewed 2026-06-23 01:27:37 +00:00
emil left a comment
Author
Owner

Automated PR Review

  • Architecture compliance: OK
  • Best practices: OK
  • Security: OK
  • i18n: OK
  • Resource management: OK
  • Documentation: OK
  • Tests: OK
  • Commit conventions: OK

No issues found by automated checks.


Auto-merge: If all CI checks pass, this PR will be merged automatically.

## Automated PR Review - Architecture compliance: OK - Best practices: OK - Security: OK - i18n: OK - Resource management: OK - Documentation: OK - Tests: OK - Commit conventions: OK No issues found by automated checks. --- **Auto-merge:** If all CI checks pass, this PR will be merged automatically.
emil merged commit 465f80fbbb into master 2026-06-23 01:28:28 +00:00
emil deleted branch devx-10-fix-release-script 2026-06-23 01:28:28 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: oblachno-oss/devx#20