Skip to content

fix: finalize release sync and changelog verification - #460

Merged
c-vigo merged 4 commits into
devfrom
bugfix/455-changelog-finalize-tbd
Mar 27, 2026
Merged

c-vigo merged 4 commits into
devfrom
bugfix/455-changelog-finalize-tbd

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Description

Reorders release finalize so sync-issues runs after the finalize SHA is captured, avoiding a race where downstream build/publish could use a pre-finalize commit. Finalize now fails if CHANGELOG.md still contains ## [version] - TBD after git reset --hard. Pre-commit runs generate-docs when CHANGELOG.md changes so generated README sections stay aligned with the changelog.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

Changelog Entry

Fixed

  • Release finalize no longer races sync-issues; CHANGELOG TBD verified after reset (#455)
    • Run sync-issues after capturing finalize SHA so downstream build/publish use the finalized commit
    • Fail finalize if CHANGELOG.md still contains ## [version] - TBD after git reset --hard
  • generate-docs pre-commit runs when CHANGELOG.md changes (#455)
    • Keeps README "Latest Version" and other generated docs aligned with the changelog

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

N/A. Local just test: 268 passed, 2 failed — test_manifest_files (workspace CHANGELOG.md checksum vs TEST_CONTAINER_TAG=dev image; likely stale image vs working tree) and test_setup_git_conf_falls_back_to_nano_for_invalid_editor (unrelated to workflow/pre-commit changes in this branch).

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

N/A

Refs: #455

c-vigo added 2 commits March 27, 2026 09:36
Run sync-issues after finalize SHA capture; fail finalize if CHANGELOG still has TBD after git reset.

Refs: #455
@c-vigo c-vigo self-assigned this Mar 27, 2026
@c-vigo
c-vigo requested a review from Copilot March 27, 2026 08:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts the release finalization workflow to eliminate a race condition that could cause downstream jobs (build/publish) to use a pre-finalize commit, and adds guardrails to ensure the changelog is actually finalized before continuing. Also updates pre-commit and changelog entries to keep generated docs aligned with release metadata.

Changes:

  • Reordered release.yml finalize job to capture the finalize SHA before triggering sync-issues, and added a post-reset check that fails if the version header still shows TBD.
  • Updated pre-commit to run generate-docs when CHANGELOG.md changes.
  • Added Unreleased changelog entries (root + workspace devcontainer copy) for #455.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/release.yml Reorders finalize steps, adds “no TBD” verification, and moves sync-issues trigger/wait later to avoid SHA race.
.pre-commit-config.yaml Expands generate-docs hook trigger set to include CHANGELOG.md.
CHANGELOG.md Adds Unreleased Fixed entries documenting the release finalize/changelog and docs generation fixes.
assets/workspace/.devcontainer/CHANGELOG.md Mirrors the same Unreleased Fixed entries into the workspace template changelog.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
c-vigo added 2 commits March 27, 2026 09:57
- Use grep -F for TBD changelog line; awk for literal section header match
- Snapshot run IDs before sync-issues dispatch; poll gh run view for the new run

Refs: #455
@c-vigo
c-vigo enabled auto-merge March 27, 2026 09:10
@c-vigo
c-vigo merged commit be861de into dev Mar 27, 2026
11 checks passed
@c-vigo
c-vigo deleted the bugfix/455-changelog-finalize-tbd branch March 27, 2026 09:13
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.

2 participants