Repository navigation
Description
Description
The release.yml finalize-release workflow for 0.3.1 (release-kind=final) completed successfully, but the ## [0.3.1] - TBD heading was never replaced with the actual release date. This TBD then propagated to every downstream artifact: the GHCR image, the release PR body, and the smoke-test deployment.
Steps to Reproduce
just finalize-release 0.3.1(workflow run #23609745942)- All jobs reported success (validate, finalize, build-and-test, publish, smoke-test)
- Release PR #342 was merged to main
Expected Behavior
CHANGELOG.mdshould contain## [0.3.1] - 2026-03-26on the release branch after the finalize job- The GHCR image
ghcr.io/vig-os/devcontainer:0.3.1should ship the finalized CHANGELOG in/root/assets/workspace/.devcontainer/CHANGELOG.md - Release PR chore: release 0.3.1 #342 body should show the finalized date
origin/mainshould contain the finalized CHANGELOG after merge- GitHub Release notes should include the
## [0.3.1] - 2026-03-26header - Downstream smoke-test PR #112 should receive the finalized CHANGELOG
Actual Behavior
podman run --rm ghcr.io/vig-os/devcontainer:0.3.1 head -8 /root/assets/workspace/.devcontainer/CHANGELOG.mdshows## [0.3.1] - TBDorigin/mainCHANGELOG.md starts with## [0.3.1] - TBD- Release PR chore: release 0.3.1 #342 body shows
## [0.3.1] - TBDin the changelog section (header correctly readsRelease 0.3.1 - 2026-03-26) - GitHub Release body starts at
### Added-- no version header at all - Downstream smoke-test PR fix(setup): use local npm install for devcontainer CLI #112 body shows
## [0.3.1] - TBD
Environment
- Release workflow run: #23609745942
- Image:
ghcr.io/vig-os/devcontainer:0.3.1 - Release PR: #342 (merged)
- Downstream PR: vig-os/devcontainer-smoke-test#112 (merged)
- GitHub Release: 0.3.1 (published, non-draft)
Additional Context
Root cause investigation areas in .github/workflows/release.yml:
- Finalize commit race:
commit-action(line 632) commits via API torefs/heads/release/$VERSION. The subsequentgit fetch + git reset --hard(line 709) may have fetched before the API commit was visible, causingbuild-and-testto use a pre-finalize SHA. - Workspace CHANGELOG sync:
scripts/sync_manifest.py sync(line 600) must propagate the finalized rootCHANGELOG.mdtoassets/workspace/.devcontainer/CHANGELOG.md. If the manifest doesn't include CHANGELOG or the sync ran beforeprepare-changelog finalize, the workspace copy would retain TBD. - PR body refresh: The sed extraction (line 722) runs after
git reset --hard, but if the reset didn't pick up the finalize commit, the CHANGELOG on disk would still have TBD.
The fact that origin/main still has TBD after merge strongly suggests the finalize commit either didn't land or was superseded by a concurrent commit (e.g. from sync-issues.yml).
Possible Solution
- Add a post-commit verification step that fetches the finalized SHA from the API, confirms
CHANGELOG.mdcontains the date, and fails the job if TBD is still present - Ensure
build-and-testchecks out the exact SHA from the API commit response rather than relying ongit rev-parse HEADafter agit reset - Add an integration test:
grep -q "## [$VERSION] - [0-9]" CHANGELOG.mdafter the finalize commit lands
Changelog Category
Fixed
- TDD compliance (see .cursor/rules/tdd.mdc)
Related: README "Latest Version" stale after release (pre-commit / CI)
CI failure: Project Checks — job 68847671680 on PR #458 (chore: sync main into dev after 0.3.1 release).
What happened: README.md (Image Details → Latest Version, ~lines 184–185) still listed 0.3.0 (2026-03-13) after 0.3.1 shipped. The generate-docs pre-commit hook regenerates README.md from templates and produced 0.3.1 (2026-03-26). uv run pre-commit run --all-files therefore failed with pre-commit hook(s) made changes and that README diff.
Desired outcome (pick one or combine):
- Automation: Ensure the release / prepare-release path updates generated
README.mdafterCHANGELOG.mdis finalized, then run a fulluv run pre-commit run --all-files(or equivalent in CI) so committed artifacts match what hooks generate. - De-scope: Remove or relocate the Latest Version line if it is not worth keeping in sync by hand or by release automation.
This is the same class of problem as the CHANGELOG finalize drift: release artifacts on main were not fully synchronized before downstream sync PRs ran the normal checks.
Activity
docs: set 0.3.1 release link and date
docs: update latest version in README to 0.3.1
chore: sync main into dev after 0.3.1 release (#458)
build: run generate-docs when CHANGELOG.md changes
ci: reorder finalize sync-issues and verify changelog
fix(ci): literal semver matching and sync-issues run targeting
test: align release PR body BATS with awk changelog extract
fix: finalize release sync and changelog verification (#460)
ci: downstream promote-release, GHCR cleanup, and RC prune (#472)
chore: release 0.3.2 (#477)
chore: release 0.3.2 (#119)
chore: release 0.3.2 (#122)
chore: release 0.3.2 (#486)