You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspect deploy/release PRs and workflow logs before retrying.
If needed, close stale release PRs and delete stale release/<version> branch.
Do not rewrite or delete published GitHub Releases (or their linked tags when immutable releases are enabled) to retry the same version; bare git tags without a published release are not locked by that feature unless a tag ruleset applies.
After fixing the root cause upstream, publish a new RC tag (or a new final attempt only after branch/tag state matches your release policy), then rely on a fresh dispatch.
The smoke-test dispatch failed on attempts 1 and 2 due to a GitHub API eventual consistency race condition in the prepare-release.yml workflow (in vig-os/devcontainer-smoke-test), compounded by an incomplete rollback that left the dev branch in a dirty state.
Timeline
Time (UTC)
Event
15:41
Attempt 1 starts: deploy PR created, merged to dev
15:44:48
prepare-release.yml run 23603591924 freezes CHANGELOG on dev (commit c4340e06)
15:44:51.665
Release branch release/0.3.1 created via POST /git/refs API
15:44:52.205
commit-action attempt 1/3: HTTP 404 resolving refs/heads/release/0.3.1 (~540ms after creation)
15:44:53.434
commit-action attempt 2/3: HTTP 404 (~1.8s after creation)
Attempt 2 re-runs only the failed orchestrator job
17:38:22
prepare-release.yml run 23609090467 checks out dev at c4340e06 (frozen CHANGELOG)
17:38:22
Validation fails: ERROR: CHANGELOG.md Unreleased section has no entries
17:40
Attempt 3 triggered (full re-run of all jobs)
17:41:41
Deploy step re-runs install.sh, syncs workspace CHANGELOG from .devcontainer/CHANGELOG.md, restoring entries under ## Unreleased
17:43
Prepare-release passes validation, all jobs succeed
Attempt 1: GitHub API eventual consistency
Failed step: "Commit stripped CHANGELOG to release branch via API" in prepare-release.yml run 23603591924
The release/0.3.1 branch was created via POST /repos/.../git/refs, and the API response confirmed creation. However, when vig-os/commit-action immediately tried to resolve the same ref via GET /repos/.../git/ref/heads/release/0.3.1, it received HTTP 404 on all 3 retry attempts spanning ~4 seconds.
This matches GitHub API eventual consistency behavior: newly created Git references may not be immediately resolvable. The commit-action retry window (3 attempts, exponential backoff starting at ~1s) was insufficient for the reference to propagate.
Evidence: The same 404 race condition was observed in attempt 3's deploy step (GitHub API attempt 1/3 failed (HTTP 404 (transient)), retrying in 1180ms), but there the second attempt succeeded because the longer backoff was sufficient.
Incomplete rollback leaves dev in dirty state
The "Roll back prepare-release side effects on failure" step (if: failure()) ran successfully and:
Deleted the release/0.3.1 branch
Detected that dev needed a CHANGELOG rollback (set output changelog_rollback_needed)
However, the subsequent "Commit CHANGELOG rollback to dev via API" step was SKIPPED. Its condition in prepare-release.yml is:
Despite failure() being true and the rollback step succeeding, the commit step did not execute. The most likely cause is that the changelog_rollback_needed output was not set to 'true' -- possibly because the GitHub Contents API returned stale (pre-freeze) content for ?ref=dev, making the CHANGELOG comparison find no difference, which would leave the output as false.
This left dev with a frozen CHANGELOG where all entries had been moved from ## Unreleased to ## [0.3.1] - TBD, with an empty ## Unreleased section.
Attempt 2: Cascading failure from dirty dev state
Failed step: "Verify CHANGELOG has Unreleased section entries" in prepare-release.yml run 23609090467
Attempt 2 re-ran only the failed orchestrator job (other jobs were reused from attempt 1). The newly triggered prepare-release.yml checked out dev at the frozen commit c4340e06, found the empty ## Unreleased section, and correctly rejected it.
How attempt 3 self-healed
Attempt 3 was a full re-run. The deploy step re-ran install.sh which synced the workspace CHANGELOG from .devcontainer/CHANGELOG.md (the upstream devcontainer CHANGELOG), renaming the top version section to ## Unreleased. This overwrote the frozen CHANGELOG, restoring entries under Unreleased. The deploy PR (#108) was merged to dev, and prepare-release.yml passed validation.
Identified issues
commit-action retry window too short for freshly-created branches. The 3-attempt retry with ~1-2s exponential backoff (total ~4s) is sometimes insufficient for GitHub API eventual consistency. Consider adding an explicit delay after branch creation, or increasing the retry count/backoff in commit-action.
Rollback mechanism unreliable. The "Roll back prepare-release side effects on failure" step detected the need for rollback, but the subsequent commit step was skipped. The CHANGELOG comparison logic (using GitHub Contents API with ?ref=dev) may be subject to the same eventual consistency issues, returning stale content and reporting no difference. Consider adding explicit echo logging in the rollback script to trace the comparison outcome, and/or implementing the rollback commit within the same step rather than depending on output passing between steps.
Additional note
The vig-os/commit-action action is running on Node.js 20, which will be deprecated. Node.js 24 will become the default on June 2, 2026, and Node.js 20 will be removed September 16, 2026. See GitHub changelog.
Activity
c-vigo commentedon Mar 27, 2026
Root Cause Analysis
Summary
The smoke-test dispatch failed on attempts 1 and 2 due to a GitHub API eventual consistency race condition in the
prepare-release.ymlworkflow (invig-os/devcontainer-smoke-test), compounded by an incomplete rollback that left thedevbranch in a dirty state.Timeline
prepare-release.ymlrun 23603591924 freezes CHANGELOG ondev(commitc4340e06)release/0.3.1created viaPOST /git/refsAPIcommit-actionattempt 1/3: HTTP 404 resolvingrefs/heads/release/0.3.1(~540ms after creation)commit-actionattempt 2/3: HTTP 404 (~1.8s after creation)commit-actionattempt 3/3: HTTP 404 (~4.0s after creation) -- step failsrelease/0.3.1branch, detects CHANGELOG rollback neededprepare-release.ymlrun 23609090467 checks outdevatc4340e06(frozen CHANGELOG)ERROR: CHANGELOG.md Unreleased section has no entriesinstall.sh, syncs workspace CHANGELOG from.devcontainer/CHANGELOG.md, restoring entries under## UnreleasedAttempt 1: GitHub API eventual consistency
Failed step: "Commit stripped CHANGELOG to release branch via API" in
prepare-release.ymlrun 23603591924The
release/0.3.1branch was created viaPOST /repos/.../git/refs, and the API response confirmed creation. However, whenvig-os/commit-actionimmediately tried to resolve the same ref viaGET /repos/.../git/ref/heads/release/0.3.1, it received HTTP 404 on all 3 retry attempts spanning ~4 seconds.This matches GitHub API eventual consistency behavior: newly created Git references may not be immediately resolvable. The
commit-actionretry window (3 attempts, exponential backoff starting at ~1s) was insufficient for the reference to propagate.Evidence: The same 404 race condition was observed in attempt 3's deploy step (
GitHub API attempt 1/3 failed (HTTP 404 (transient)), retrying in 1180ms), but there the second attempt succeeded because the longer backoff was sufficient.Incomplete rollback leaves
devin dirty stateThe "Roll back prepare-release side effects on failure" step (
if: failure()) ran successfully and:release/0.3.1branchdevneeded a CHANGELOG rollback (set outputchangelog_rollback_needed)However, the subsequent "Commit CHANGELOG rollback to dev via API" step was SKIPPED. Its condition in
prepare-release.ymlis:Despite
failure()being true and the rollback step succeeding, the commit step did not execute. The most likely cause is that thechangelog_rollback_neededoutput was not set to'true'-- possibly because the GitHub Contents API returned stale (pre-freeze) content for?ref=dev, making the CHANGELOG comparison find no difference, which would leave the output asfalse.This left
devwith a frozen CHANGELOG where all entries had been moved from## Unreleasedto## [0.3.1] - TBD, with an empty## Unreleasedsection.Attempt 2: Cascading failure from dirty
devstateFailed step: "Verify CHANGELOG has Unreleased section entries" in
prepare-release.ymlrun 23609090467Attempt 2 re-ran only the failed orchestrator job (other jobs were reused from attempt 1). The newly triggered
prepare-release.ymlchecked outdevat the frozen commitc4340e06, found the empty## Unreleasedsection, and correctly rejected it.How attempt 3 self-healed
Attempt 3 was a full re-run. The deploy step re-ran
install.shwhich synced the workspace CHANGELOG from.devcontainer/CHANGELOG.md(the upstream devcontainer CHANGELOG), renaming the top version section to## Unreleased. This overwrote the frozen CHANGELOG, restoring entries under Unreleased. The deploy PR (#108) was merged todev, andprepare-release.ymlpassed validation.Identified issues
commit-actionretry window too short for freshly-created branches. The 3-attempt retry with ~1-2s exponential backoff (total ~4s) is sometimes insufficient for GitHub API eventual consistency. Consider adding an explicit delay after branch creation, or increasing the retry count/backoff incommit-action.Rollback mechanism unreliable. The "Roll back prepare-release side effects on failure" step detected the need for rollback, but the subsequent commit step was skipped. The CHANGELOG comparison logic (using GitHub Contents API with
?ref=dev) may be subject to the same eventual consistency issues, returning stale content and reporting no difference. Consider adding explicitechologging in the rollback script to trace the comparison outcome, and/or implementing the rollback commit within the same step rather than depending on output passing between steps.Additional note
The
vig-os/commit-actionaction is running on Node.js 20, which will be deprecated. Node.js 24 will become the default on June 2, 2026, and Node.js 20 will be removed September 16, 2026. See GitHub changelog.References
fix(ci): harden prepare-release ref wait and rollback changelog fetch
fix(ci): harden prepare-release ref wait and rollback changelog fetch (…
ci: downstream promote-release, GHCR cleanup, and RC prune (#472)
chore: release 0.3.2 (#486)
fix(ci): resolve repo-owned workflow security findings (#569)