Repository navigation
fix: harden smoke-test dispatch workflow contract - #390
Merged
c-vigo merged 3 commits intoMar 20, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Hardens the cross-repo smoke-test repository_dispatch receiver so downstream release orchestration no longer depends on the default-branch workflow registry (preventing 404 workflow not found drift), and validates the expected downstream workflow contract before dispatching.
Changes:
- Add a preflight contract check ensuring
prepare-release.ymlandrelease.ymlare resolvable on the dispatch ref, and standardize orchestration to use an explicit ref/branch context (dev). - Update the Bats contract tests to assert the preflight check and explicit
--ref/--branchusage. - Document the cross-repo workflow dispatch contract and record the fix in the changelog(s).
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
assets/smoke-test/.github/workflows/repository-dispatch.yml |
Adds preflight validation and pins workflow dispatch + run polling to dev via WORKFLOW_REF. |
tests/bats/just.bats |
Updates assertions to enforce the new preflight and ref/branch contract. |
docs/CROSS_REPO_RELEASE_GATE.md |
Documents required workflow IDs and the required dispatch ref/branch behavior. |
CHANGELOG.md |
Adds an Unreleased “Fixed” entry for issue #389. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the changelog entry into the workspace template’s devcontainer changelog. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes smoke-test release orchestration drift that caused downstream dispatch to fail with
prepare-release.ymlnot found on the default branch, and adds a docs-only follow-up to keep the dispatch payload header comment aligned with supported inputs (client_payload.release_kind).Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
assets/smoke-test/.github/workflows/repository-dispatch.ymlprepare-release.ymlandrelease.ymlresolve ondevbefore orchestration dispatch.prepare-release.ymlandrelease.ymlwith explicit--ref "${WORKFLOW_REF}".--branch "${WORKFLOW_REF}"to keep dispatch and wait contexts aligned.client_payload.release_kind(issue [DOCS] Include release_kind in smoke-test dispatch payload header comment #388 docs consistency follow-up).tests/bats/just.batsdocs/CROSS_REPO_RELEASE_GATE.mddev), and preflight drift-failure behavior as canonical contract.CHANGELOG.mdassets/workspace/.devcontainer/CHANGELOG.mdChangelog Entry
Fixed
prepare-release.ymlandrelease.ymlare resolvable on dispatch refdevbefore downstream orchestration starts--ref dev/--branch dev) to avoid default-branch workflow registry drift and404 workflow not foundfailuresNo additional changelog entry was added for #388 because it is a docs-only comment alignment follow-up with issue-marked changelog category "No changelog needed".
Testing
just test)Manual Testing Details
npx bats tests/bats/just.bats26/26tests passed, including updated smoke-test dispatch contract checksChecklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Downstream operational compatibility step from the implementation plan still applies: ensure
vig-os/devcontainer-smoke-testdefault branch contains a validprepare-releaseentrypoint during transition.Refs: #389, #388