Repository navigation
Description
Description
Redesign assets/smoke-test/.github/workflows/repository-dispatch.yml so that each upstream dispatch exercises the downstream repo's complete release cycle: deploy to dev, prepare-release, and release -- with automated PR approval, CI gating, and upstream failure reporting.
The current implementation creates a deploy PR to dev (with auto-merge) and then immediately creates a GitHub Release before the deploy PR is even merged, bypassing the downstream's prepare-release.yml and release.yml workflows entirely. The release artifact is premature and structurally unsound as a gate for the upstream final release.
Problem Statement
- Premature release: The
publish-releasejob creates a GitHub Release before the deploy PR merges. CI on the deploy PR has not yet validated the new devcontainer version. - Downstream release cycle not exercised: The smoke-test repo has fully-featured
prepare-release.ymlandrelease.ymlworkflows, but the dispatch bypasses both. The downstream release pipeline is never validated. - Hollow upstream gate: The upstream
release.ymlchecks for a downstream pre-release for the latest RC tag. The currentpublish-releasesatisfies this gate, but the release it checks against was created before the deploy was validated by CI. - No failure reporting to upstream: When the dispatch fails, there is no notification to the upstream repo. Failures go unnoticed unless someone manually checks the downstream.
- No wait-for-merge: The workflow enables auto-merge on the deploy PR and immediately proceeds, without confirming the PR actually merged.
Proposed Solution
Redesign the workflow into three phases:
Phase 1 -- Deploy (modified)
validate: addbase_versionoutput (strip-rcNsuffix from tag).deploy: after the installer runs, generate a freshCHANGELOG.mdwith a single Unreleased entry (avoids double-freeze problems on re-dispatches). Keep branch creation, signed commit, PR, and auto-merge.wait-deploy-merge(new): poll the deploy PR until it merges (30 min timeout).
Phase 2 -- Release orchestration (replaces publish-release)
cleanup-release(new): ifrelease/<base_version>branch exists from a previous dispatch, close its PR and delete the branch. Ensuresprepare-releasecan always run cleanly.trigger-prepare-release(new):gh workflow run prepare-release.yml -f version=<base_version>, poll until completion (20 min timeout).ready-release-pr(new): find the draft PR created by prepare-release, mark it ready, auto-approve with the Release App token, wait for CI (30 min timeout).trigger-release(new):gh workflow run release.yml -f version=<base_version> -f release-kind=<kind>, poll until completion (30 min timeout).
Phase 3 -- Failure reporting (new)
notify-failure: on any job failure, create an issue on the upstream repo (vig-os/devcontainer) with dispatch metadata, which phase failed, artifacts created (PRs, branches, tags), and manual cleanup instructions. No automated rollback -- artifacts stay in place for debugging. Subsequent dispatches use a new RC version and start fresh.
Removed: the publish-release job is deleted entirely.
Alternatives Considered
- Keep
publish-releaseand just add wait-for-merge: Would fix the premature-release issue but still bypass the downstream release cycle. The smoke-test pipeline would remain untested. - Split into multiple event-driven workflows: Would avoid long-running polling jobs but requires more complex inter-workflow state management and event routing. A single workflow with polling is simpler and keeps full observability in one run.
- Automated rollback on failure: Rejected in favor of leaving artifacts for debugging. The next dispatch uses a new RC version anyway, so leftover artifacts don't block progress.
Additional Context
- Related: [BUG] Intermittent repository_dispatch deploy failure in commit-action (Git refs 404) #354 (intermittent deploy failure -- separate bug, but may interact with the retry/polling logic)
- The pipeline is exercised on every upstream RC and final release dispatch
- Phase 2 jobs run on bare
ubuntu-22.04(no devcontainer needed -- they only make API calls and poll); the triggered workflows resolve their own image from.vig-os
Impact
- Who benefits: Release reliability -- every RC validates the full downstream cycle before the upstream gates on it.
- Breaking change: No. This changes an internal CI workflow template; no user-facing API or contract changes.
Acceptance Criteria
- Deploy PR is confirmed merged before any release orchestration begins
-
prepare-release.ymlandrelease.ymlare triggered and polled to completion - Release PR is auto-approved and CI-gated before release
- On any failure, an issue is created on the upstream repo with full context
- The
publish-releasejob is removed - TDD compliance (see
.cursor/rules/tdd.mdc)
Changelog Category
Changed
Activity
test(ci): add smoke-test dispatch orchestration assertions
ci(ci): redesign smoke-test dispatch release orchestration
test(ci): add smoke-test dispatch orchestration assertions
ci(ci): redesign smoke-test dispatch release orchestration
fix(ci): harden smoke-test dispatch review feedback
fix(ci): repair root-owned files after smoke-test installer
ci(ci): redesign smoke-test dispatch release orchestration (#360)
chore: release 0.3.1 (#70)
chore: release 0.3.1 (#92)
chore: release 0.3.1 (#97)
chore: release 0.3.1 (#100)
chore: release 0.3.1 (#109)
chore: release 0.3.1 (#112)
chore: release 0.3.1 (#342)