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
Phase 2 failed because the downstream release.yml run in devcontainer-smoke-test tries to check out release/0.3.1, but that branch no longer exists when the workflow runs. The branch was removed automatically when the release PR merged, before phase 2’s release.yml could use it.
Reconstructed timeline (UTC, 2026-03-23)
17:20:13 — just publish-candidate 0.3.1 triggered devcontainer release.yml on release/0.3.1 (run 23450601238). Validate, build, and publish succeeded.
17:35:01 — Upstream smoke-test job dispatched to the smoke-test repo. Phase 1 (repository-dispatch.yml) started (run 23451261786).
Phase 1 succeeded in sequence: validate → deploy → wait-deploy-merge → cleanup-release (deleted stale release/0.3.1) → trigger-prepare-release (recreated release/0.3.1 from dev, opened PR #70 as draft) → ready-release-pr.
17:40:23 — GitHub auto-deleted branch release/0.3.1 (repo has Automatically delete head branches enabled).
17:40:25 — Phase 2 (on-release-pr-merge.yml) started on PR close (run 23451495795).
17:40:41 — Phase 2 trigger-release dispatched release.yml with --ref dev, inputs version=0.3.1, release-kind=candidate (inner run 23451507841).
17:41:28 — Inner workflow failed at Checkout release branch: A branch or tag with the name 'release/0.3.1' could not be found.
17:42:46 — Phase 2 reported the inner release.yml conclusion as failure.
17:43:07 — notify-failure opened this issue.
So: deployment and prepare-release (phase 1) behaved as designed; the failure is confined to phase 2 waiting on a release.yml that assumes release/<version> still exists after the release PR has merged.
Technical root cause
Downstream release-core.yml checks out release/${{ version }} unconditionally in the validate job (see assets/workspace/.github/workflows/release-core.yml, step Checkout release branch).
After phase 1 enables auto-merge, the release PR merges quickly; with delete branch on merge, release/0.3.1 is removed immediately. Phase 2 then dispatches release.yml, which still expects that ref — hence the checkout error.
This is a design gap: phase 2 orchestration assumes the release branch survives the merge, but auto-merge plus auto-delete-head-branch removes it first.
Possible directions for a fix (separate scope)
Recreate the branch in phase 2 — e.g. in on-release-pr-merge.yml, recreate release/<version> from the merge commit before dispatching release.yml.
Make release-core.yml resilient — if release/<version> is missing, fall back to main (content already merged).
Turn off auto-delete head branches on the smoke-test repo (keeps the branch; needs cleanup discipline).
Change orchestration — e.g. defer merge until after downstream release.yml succeeds (larger behavioral change).
Happy to help turn one of these into a concrete issue/PR once we pick an approach.
Activity
c-vigo commentedon Mar 23, 2026
Root cause analysis (0.3.1 smoke-test phase 2)
Summary
Phase 2 failed because the downstream
release.ymlrun in devcontainer-smoke-test tries to check outrelease/0.3.1, but that branch no longer exists when the workflow runs. The branch was removed automatically when the release PR merged, before phase 2’srelease.ymlcould use it.Reconstructed timeline (UTC, 2026-03-23)
just publish-candidate 0.3.1triggered devcontainerrelease.ymlonrelease/0.3.1(run 23450601238). Validate, build, and publish succeeded.smoke-testjob dispatched to the smoke-test repo. Phase 1 (repository-dispatch.yml) started (run 23451261786).validate→deploy→wait-deploy-merge→cleanup-release(deleted stalerelease/0.3.1) →trigger-prepare-release(recreatedrelease/0.3.1fromdev, opened PR #70 as draft) →ready-release-pr.release-kind:candidate.release/0.3.1→main).release/0.3.1(repo has Automatically delete head branches enabled).on-release-pr-merge.yml) started on PR close (run 23451495795).trigger-releasedispatchedrelease.ymlwith--ref dev, inputsversion=0.3.1,release-kind=candidate(inner run 23451507841).A branch or tag with the name 'release/0.3.1' could not be found.release.ymlconclusion asfailure.notify-failureopened this issue.So: deployment and prepare-release (phase 1) behaved as designed; the failure is confined to phase 2 waiting on a
release.ymlthat assumesrelease/<version>still exists after the release PR has merged.Technical root cause
Downstream
release-core.ymlchecks outrelease/${{ version }}unconditionally in the validate job (seeassets/workspace/.github/workflows/release-core.yml, step Checkout release branch).After phase 1 enables auto-merge, the release PR merges quickly; with delete branch on merge,
release/0.3.1is removed immediately. Phase 2 then dispatchesrelease.yml, which still expects that ref — hence the checkout error.This is a design gap: phase 2 orchestration assumes the release branch survives the merge, but auto-merge plus auto-delete-head-branch removes it first.
Possible directions for a fix (separate scope)
on-release-pr-merge.yml, recreaterelease/<version>from the merge commit before dispatchingrelease.yml.release-core.ymlresilient — ifrelease/<version>is missing, fall back tomain(content already merged).release.ymlsucceeds (larger behavioral change).Happy to help turn one of these into a concrete issue/PR once we pick an approach.
fix(ci): merge smoke-test release phase 2 into repository dispatch
fix(ci): align merge-release-pr gh env and drop unused trigger-releas…
fix(ci): merge smoke-test release phase 2 into repository dispatch (#420
chore: release 0.3.1 (#342)