Repository navigation
fix: finalize release sync and changelog verification - #460
Merged
Merged
Conversation
Run sync-issues after finalize SHA capture; fail finalize if CHANGELOG still has TBD after git reset. Refs: #455
There was a problem hiding this comment.
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.ymlfinalize job to capture the finalize SHA before triggeringsync-issues, and added a post-reset check that fails if the version header still showsTBD. - Updated pre-commit to run
generate-docswhenCHANGELOG.mdchanges. - 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.
- 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
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.
Description
Reorders release finalize so
sync-issuesruns after the finalize SHA is captured, avoiding a race where downstream build/publish could use a pre-finalize commit. Finalize now fails ifCHANGELOG.mdstill contains## [version] - TBDaftergit reset --hard. Pre-commit runsgenerate-docswhenCHANGELOG.mdchanges so generated README sections stay aligned with the changelog.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/release.yml— finalize job: capture SHA, thensync-issues; verify no TBD changelog line after reset; related step ordering and conditions.pre-commit-config.yaml— rungenerate-docswhenCHANGELOG.mdchangesCHANGELOG.md— Unreleased Fixed entries for [BUG] Release 0.3.1 CHANGELOG date not set -- TBD persisted through publish and merge #455assets/workspace/.devcontainer/CHANGELOG.md— synced Unreleased Fixed entries for [BUG] Release 0.3.1 CHANGELOG date not set -- TBD persisted through publish and merge #455Changelog Entry
Fixed
sync-issuesafter capturing finalize SHA so downstream build/publish use the finalized commitCHANGELOG.mdstill contains## [version] - TBDaftergit reset --hardTesting
just test)Manual Testing Details
N/A. Local
just test: 268 passed, 2 failed —test_manifest_files(workspaceCHANGELOG.mdchecksum vsTEST_CONTAINER_TAG=devimage; likely stale image vs working tree) andtest_setup_git_conf_falls_back_to_nano_for_invalid_editor(unrelated to workflow/pre-commit changes in this branch).Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
N/A
Refs: #455