Repository navigation
Description
Description
Create a dedicated test repository (vig-os/devcontainer-smoke-test) where the workspace template is deployed and the shipped CI/CD workflows are executed against a real GitHub Actions environment. Integrate this with the release-candidate (RC) workflow so that every release is smoke-tested before reaching downstream users.
This issue covers Phase 1 only: establishing the smoke-test repo, wiring RC publishing with cross-repo dispatch, and verifying the end-to-end flow with a real RC cycle. Phases 2 and 3 are documented below for context but are out of scope.
Problem Statement
Two gaps exist in the current testing strategy:
-
Shipped workflows are never executed in a real GitHub Actions environment. The five workflows under
assets/workspace/.github/workflows/are template files copied to downstream projects, but no test validates they actually run. If an action pin breaks, auvversion incompatibility appears, or a runner environment changes, no test catches it until a real user hits the failure. -
The devcontainer image is never validated as a CI environment. The image ships all CI tools (Python, uv, pre-commit, ruff, pytest), but nothing proves a full CI workflow (lint, test, security) runs successfully inside it.
test-imagevalidates tool presence/versions;test-integrationvalidates the devcontainer lifecycle. Neither tests the end-to-end CI use case. An in-repo test that re-runs tools inside the container adds little value overtest-image-- what's needed is validation in a real GitHub Actions environment.
Both gaps are addressed by combining the smoke-test repo with a release-candidate workflow.
Proposed Solution
Release-candidate flow
release/X.Y.Z branch
│
▼
CI passes on PR ──► Publish X.Y.Z-rc1 to GHCR
│
▼
Smoke-test repo triggered (repository_dispatch)
│
┌────┴────┐
│ │
pass fail
│ │
▼ ▼
Promote to Fix on release branch
X.Y.Z + Publish X.Y.Z-rc2
latest (re-trigger smoke)
Scope: Phase 1 -- Smoke-test repo + RC dispatch
Smoke-test repo (vig-os/devcontainer-smoke-test):
- Deploy a fresh workspace via
init-workspace.sh - Two CI variants:
- Bare-runner CI (
ci.yml): validatessetup-env, action pins, runner compat - Container CI (
ci-container.yml): usescontainer: ghcr.io/vig-os/devcontainer:<tag>to validate the image as a CI environment
- Bare-runner CI (
- Trigger:
repository_dispatchfrom the devcontainer repo on RC publish - Orchestration:
repository-dispatch.ymlvalidates payload, runs both CI variants with the RC tag
Devcontainer repo (release workflow changes):
- RC publishing: release workflow publishes
X.Y.Z-rc1to GHCR on candidate releases - Cross-repo dispatch: triggers smoke-test repo via
repository_dispatchwith the RC tag (using GitHub App token) - Manual smoke gate: release operator verifies smoke-test results before final publish (documented in
docs/RELEASE_CYCLE.md)
Verification: run an end-to-end RC cycle (cut a release branch, publish an RC, confirm dispatch fires, confirm both smoke-test workflows pass).
Future phases (out of scope)
Phase 2 -- Extended validation
- Validate
codeql.ymlandscorecard.ymlin the smoke-test repo - Add
release.ymldry-run validation (seed repo with dev/main branching model) - Automate the gate: smoke-test repo posts a commit status or dispatches back to the devcontainer repo, allowing the release workflow to proceed automatically
- Periodic re-validation on a schedule (catch runner environment drift)
Phase 3 -- Full coverage
- Configure GitHub App for
sync-issues.ymltesting - Full release cycle simulation in the smoke-test repo
- Status dashboard or badge reporting smoke-test health
Alternatives Considered
- In-repo CI workflow test (composite action +
podman exec): Runs CI commands inside the freshly built image using the tar artifact. While it tests the image pre-merge, it doesn't validate real GitHub Actions behavior (container:directive quirks, runner networking,actions/checkoutinside containers). The smoke-test repo covers this more faithfully.test-imagealready validates tool installation, so the in-repo test adds marginal value. nektos/act(local runner): Cannot run CodeQL, Scorecard, dependency-review, or anything needing GitHub API context. IncompleteGITHUB_TOKENsimulation. Only partially validatesci.yml.- Reusable workflows: Would require restructuring shipped templates as callable workflows -- changes the template architecture for all downstream users. Over-engineering.
- In-repo workflow testing: The devcontainer repo's own CI already uses different workflows; mixing template workflows would create confusion and require mocking the template project structure.
Additional Context
RC image lifecycle:
- RC tags follow SemVer pre-release format:
X.Y.Z-rc1,X.Y.Z-rc2, etc. - RCs are published to the same GHCR registry (
ghcr.io/vig-os/devcontainer) - RC tags are retained after final release (audit trail; negligible storage cost)
- No circular dependency: the devcontainer repo's own CI does not depend on the smoke-test repo
Impact
- Who benefits: All downstream users of the devcontainer template. Regressions in shipped workflows and the image's CI capability are caught before release.
- Compatibility: Backward compatible. No changes to shipped templates.
- Cost: Public repo = free GitHub Actions minutes. RC images add minor GHCR storage.
Changelog Category
Added
Acceptance Criteria
- Smoke-test repo exists with a deployed workspace from the current template
- Bare-runner CI (
ci.yml) runs successfully against the deployed workspace - RC publishing works: release workflow can publish
X.Y.Z-rc1to GHCR - Smoke-test repo is triggered via
repository_dispatchon RC publish - Container CI (
ci-container.yml) runs successfully using the RC image viacontainer:directive - TDD compliance (see .cursor/rules/tdd.mdc)
Activity
feat(ci): add candidate release mode and PR-based dev sync (#220)
docs: consolidate duplicate changelog headings in unreleased section
c-vigo commentedon Mar 12, 2026
RC Cycle Test Plan
Full end-to-end release-candidate cycle to validate the remaining acceptance criteria.
Pre-flight Checks
devbranch CI is green -- check Actions > CI## Unreleasedhas content -- browse CHANGELOG.md on devrelease/0.3.0branch or0.3.0*tags exist -- check branches and tagsPhase 1: Prepare Release
Trigger the prepare-release workflow
Workflow completes successfully -- here
Verification checklist
release/0.3.0branch appears in branchesrelease/0.3.0tomainappears in Pull Requests## [0.3.0] - TBD(no## Unreleased)devCHANGELOG has empty## Unreleasedabove## [0.3.0] - TBDPhase 2: Review & Test Release Branch
Phase 3: Publish Release Candidate ⭐ Core #169 validation
3a. Dry run (recommended)
just publish-candidate 0.3.0 release/0.3.0 -f "dry-run=true"3b. Publish the RC
Trigger the actual candidate publish
Validate results: all 5 jobs completed:
0.3.0, kindcandidate, computed tag0.3.0-rc1, PR verified3c. Verify RC image on GHCR ✅ Acceptance criterion 1
0.3.0-rc1exists -- check tagslinux/amd64andlinux/arm64platforms.latesttag updated (candidate mode should not touchlatest)Phase 4: Smoke-Test Gate ⭐ Core #169 validation
4a. Dispatch fired ✅ Acceptance criterion 2
validatejob passes -- tag0.3.0-rc3matches^[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?$deployjob passes -- runs installer with--version 0.3.0-rc3, creates branchchore/deploy-0.3.0-rc3, opens PR todev4b. Bare-runner CI passes
4c. Container CI passes with RC image ✅ Acceptance criterion 3
This is the critical test -- the one that previously failed with
does-not-exist-tag.Successful run: 23056631295
ci-container.ymltriggered on the deploy PRghcr.io/vig-os/devcontainer:0.3.0-rc3and starts the containerPhase 5: Fix & Retry (if smoke tests fail)
Expand if any smoke-test workflow fails
Diagnose:
Fix on the release branch via a bugfix PR:
git checkout -b bugfix/N-fix-description release/0.3.0 # ... fix ... git push origin bugfix/N-fix-description gh pr create --base release/0.3.0 --head bugfix/N-fix-descriptionRe-publish candidate (auto-increments to
0.3.0-rc2and0.3.0-rc3):Repeat Phase 4 for the new RCs.
Phase 6: Finalize Release
Verification checklist
[0.3.0] - TBDreplaced with[0.3.0] - YYYY-MM-DD)mainis outdated0.3.0created -- check tagsghcr.io/vig-os/devcontainer:0.3.0latesttag updated to0.3.0Phase 7: Post-Release
Summary: Acceptance Criteria vs. Verification Steps
X.Y.Z-rc1to GHCR)repository_dispatchci-container.ymlall-green, containers initialize with real RC tagKnown Risks
packages:readRELEASE_APPmust be installed onvig-os/devcontainer-smoke-testwithcontents:write; check publish job logs for token warningsc-vigo commentedon Mar 13, 2026
Closed with Release 0.3.0
fix(smoke-test): idempotent release pipeline across candidate→final (#…