Repository navigation
fix(ci): harden prepare-release ref wait and rollback changelog fetch - #466
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Hardens the prepare-release GitHub Actions workflow against GitHub API eventual consistency issues observed in smoke-test dispatch failures, ensuring the release branch ref is resolvable before committing to it and making rollback CHANGELOG fetching deterministic.
Changes:
- Add a polling step to verify the newly created
release/<version>ref is resolvable before runningvig-os/commit-action. - Update rollback logic to fetch
CHANGELOG.mdusing a resolveddevcommit SHA (CURRENT_DEV_SHA) instead ofref=devto avoid Contents API staleness. - Document the fix in both repository and workspace-template changelogs under
## Unreleased.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/prepare-release.yml |
Adds ref-resolvability polling and makes rollback CHANGELOG retrieval use CURRENT_DEV_SHA. |
assets/workspace/.github/workflows/prepare-release.yml |
Mirrors the ref-resolvability polling and SHA-pinned rollback CHANGELOG fetch in the workspace template. |
CHANGELOG.md |
Records the workflow hardening under ## Unreleased → ### Fixed. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the changelog entry in the workspace template devcontainer changelog. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Hardens
prepare-releaseagainst GitHub API eventual consistency after the smoke-test dispatch failure analyzed in #453: poll until the new release branch ref resolves beforecommit-actionruns, and fetch devCHANGELOG.mdby resolved commit SHA during rollback so the Contents API does not return stale branch content and skip the rollback commit.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/prepare-release.ymluv run retrypollinggit/ref/heads/$RELEASE_BRANCH).CURRENT_DEV_SHAfromgit/ref/heads/dev; skip CHANGELOG rollback only whenPOST_FREEZE_DEV_SHAis set and differs; load current changelog via Contents API?ref=$CURRENT_DEV_SHAinstead of?ref=dev.assets/workspace/.github/workflows/prepare-release.ymlretry(nouv run).CHANGELOG.md/assets/workspace/.devcontainer/CHANGELOG.md## Unreleased→### Fixed(Smoke-test dispatch failed for 0.3.1-rc25 #453).Changelog Entry
Testing
just test)Manual Testing Details
Ran
just test-batslocally. Fulljust testnot run for this PR.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
RCA: comment on #453. Node 20 migration for
vig-os/commit-actionis tracked separately: vig-os/commit-action#28.Refs: #453