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
Orchestration failed beforeprepare-release was triggered or waited on. Validate → deploy → wait for deploy PR merge → cleanup all succeeded; ready-release-pr and trigger-release were skipped as downstream dependencies.
Root cause
Preflight runs gh workflow view prepare-release.yml --ref dev (and the same for release.yml). The runner's gh exits with:
--yaml required when specifying --ref
So the check is invalid for the current GitHub CLI: with --ref, workflow view now requires --yaml. This is a preflight / CLI invocation failure, not evidence that prepare-release.yml is missing on dev, and not a failed prepare-release workflow conclusion (no such run was started from this path).
Note on log wording
Because the error text does not match 404|not found, the script reports the generic "non-contract" (auth/API/network) path; that branch does not apply here—the failure is deterministic CLI usage.
Source of truth:vig-os/devcontainer — the smoke-test dispatch workflow is maintained here under assets/smoke-test/.github/workflows/repository-dispatch.yml and deployed into vig-os/devcontainer-smoke-test as the validation/test harness. Fixing the bug belongs in this repo; the downstream repo only receives the updated template via the normal smoke-test deploy path.
Goal: Restore the Preflight check required release workflows on dispatch ref step so it succeeds on current GitHub CLI (gh workflow view with --ref requires --yaml), unblocking trigger-prepare-release and the rest of downstream orchestration after the next deploy.
Changes (this repo)
assets/smoke-test/.github/workflows/repository-dispatch.yml — In the preflight step, invoke workflows at WORKFLOW_REF with YAML output, e.g. gh workflow view "${workflow_file}" --ref "${WORKFLOW_REF}" --yaml >/dev/null
(preserve exit-status semantics and the existing loop over prepare-release.yml / release.yml).
Optional: Tighten error classification when gh fails so “--yaml required when specifying --ref” is not lumped under the generic auth/API/network path.
tests/bats/just.bats — Update the regression grep that pins the preflight snippet so it matches the new gh invocation (see the assertion around WORKFLOW_CHECK_OUTPUT / gh workflow view).
Verification
bats tests/bats/just.bats (or the project’s usual subset) passes.
After merge and smoke-test repo picks up the new workflow (per existing deploy/promotion process), re-run or dispatch smoke-test-trigger and confirm preflight succeeds and prepare-release is actually triggered when intended.
Activity
c-vigo commentedon Mar 20, 2026
Root Cause Analysis
Downstream run: https://github.com/vig-os/devcontainer-smoke-test/actions/runs/23335664018
Failing job: Trigger and wait for prepare-release workflow
Failing step: Preflight check required release workflows on dispatch ref
What happened
Orchestration failed before
prepare-releasewas triggered or waited on. Validate → deploy → wait for deploy PR merge → cleanup all succeeded;ready-release-prandtrigger-releasewere skipped as downstream dependencies.Root cause
Preflight runs
gh workflow view prepare-release.yml --ref dev(and the same forrelease.yml). The runner'sghexits with:--yaml required when specifying --refSo the check is invalid for the current GitHub CLI: with
--ref,workflow viewnow requires--yaml. This is a preflight / CLI invocation failure, not evidence thatprepare-release.ymlis missing ondev, and not a failedprepare-releaseworkflow conclusion (no such run was started from this path).Note on log wording
Because the error text does not match
404|not found, the script reports the generic "non-contract" (auth/API/network) path; that branch does not apply here—the failure is deterministic CLI usage.c-vigo commentedon Mar 20, 2026
Implementation Plan
Context
vig-os/devcontainer— the smoke-test dispatch workflow is maintained here underassets/smoke-test/.github/workflows/repository-dispatch.ymland deployed intovig-os/devcontainer-smoke-testas the validation/test harness. Fixing the bug belongs in this repo; the downstream repo only receives the updated template via the normal smoke-test deploy path.gh workflow viewwith--refrequires--yaml), unblockingtrigger-prepare-releaseand the rest of downstream orchestration after the next deploy.Changes (this repo)
assets/smoke-test/.github/workflows/repository-dispatch.yml— In the preflight step, invoke workflows atWORKFLOW_REFwith YAML output, e.g.gh workflow view "${workflow_file}" --ref "${WORKFLOW_REF}" --yaml >/dev/null(preserve exit-status semantics and the existing loop over
prepare-release.yml/release.yml).ghfails so “--yamlrequired when specifying--ref” is not lumped under the generic auth/API/network path.tests/bats/just.bats— Update the regressiongrepthat pins the preflight snippet so it matches the newghinvocation (see the assertion aroundWORKFLOW_CHECK_OUTPUT/gh workflow view).Verification
bats tests/bats/just.bats(or the project’s usual subset) passes.prepare-releaseis actually triggered when intended.Commit / traceability
Out of scope
devcontainer-smoke-testwithout updatingassets/smoke-test/here (would diverge from SSoT).test(ci): assert gh workflow preflight uses --yaml with --ref
fix(ci): make smoke-test preflight compatible with gh ref validation
fix(ci): remove dead --yaml preflight error branch
fix(ci): harden smoke-test preflight and release workflow orchestrati…
chore: release 0.3.1 (#342)