Skip to content

fix: harden smoke-test dispatch workflow contract - #390

Merged
c-vigo merged 3 commits into
release/0.3.1from
bugfix/389-smoke-test-dispatch-rc6-failure
Mar 20, 2026
Merged

c-vigo merged 3 commits into
release/0.3.1from
bugfix/389-smoke-test-dispatch-rc6-failure

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes smoke-test release orchestration drift that caused downstream dispatch to fail with prepare-release.yml not 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 feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • assets/smoke-test/.github/workflows/repository-dispatch.yml
    • Add preflight validation that checks prepare-release.yml and release.yml resolve on dev before orchestration dispatch.
    • Dispatch prepare-release.yml and release.yml with explicit --ref "${WORKFLOW_REF}".
    • Poll runs with explicit --branch "${WORKFLOW_REF}" to keep dispatch and wait contexts aligned.
    • Update dispatch payload header comment optional keys to include client_payload.release_kind (issue [DOCS] Include release_kind in smoke-test dispatch payload header comment #388 docs consistency follow-up).
  • tests/bats/just.bats
    • Add/adjust assertions for preflight contract checks and explicit ref/branch usage in dispatch and wait paths.
  • docs/CROSS_REPO_RELEASE_GATE.md
    • Document required workflow IDs, required dispatch ref (dev), and preflight drift-failure behavior as canonical contract.
  • CHANGELOG.md
  • assets/workspace/.devcontainer/CHANGELOG.md
    • Sync mirrored changelog entry generated by project hooks.

Changelog Entry

Fixed

  • Smoke-test release orchestration now validates workflow contract before dispatch (#389)
    • Add a preflight check that verifies prepare-release.yml and release.yml are resolvable on dispatch ref dev before downstream orchestration starts
    • Dispatch and polling now use explicit ref/branch context (--ref dev / --branch dev) to avoid default-branch workflow registry drift and 404 workflow not found failures

No 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

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • Ran npx bats tests/bats/just.bats
  • Result: 26/26 tests passed, including updated smoke-test dispatch contract checks

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Downstream operational compatibility step from the implementation plan still applies: ensure vig-os/devcontainer-smoke-test default branch contains a valid prepare-release entrypoint during transition.

Refs: #389, #388

@c-vigo c-vigo self-assigned this Mar 20, 2026
@c-vigo
c-vigo requested a review from Copilot March 20, 2026 08:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml and release.yml are 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/--branch usage.
  • 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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@c-vigo
c-vigo merged commit a154152 into release/0.3.1 Mar 20, 2026
16 checks passed
@c-vigo
c-vigo deleted the bugfix/389-smoke-test-dispatch-rc6-failure branch March 20, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants