Skip to content

fix(ci): split smoke-test dispatch into two-phase orchestration - #404

Merged
c-vigo merged 5 commits into
release/0.3.1from
bugfix/402-split-smoke-dispatch
Mar 21, 2026
Merged

c-vigo merged 5 commits into
release/0.3.1from
bugfix/402-split-smoke-dispatch

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Description

Split smoke-test dispatch into two phases to remove release PR self-approval and long in-job merge polling, while preserving automated upstream failure reporting. Also fix sync-to-dev branch creation so downstream CI is triggered reliably on sync PRs.

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
    • Remove release-branch CHANGELOG sync, PR self-approval, release PR merge polling, and in-workflow trigger-release job
    • Keep phase 1 focused on release PR readiness; add release-kind labeling and auto-merge enablement
    • Update summary/failure reporting to the new phase 1 scope
  • assets/smoke-test/.github/workflows/on-release-pr-merge.yml (new)
    • Add phase 2 workflow triggered by merged release/* PRs into main
    • Extract version + release kind, dispatch release.yml, wait for completion, and report failures upstream
  • assets/workspace/.github/workflows/sync-main-to-dev.yml
    • Replace API ref creation with git checkout -b ... + git push so push/pull_request CI checks are emitted
  • CHANGELOG.md and assets/workspace/.devcontainer/CHANGELOG.md

Changelog Entry

Changed

  • Smoke-test release orchestration now runs as two phases (#402)
    • Keep repository-dispatch.yml focused on deploy/prepare/release-PR readiness and move release dispatch to a dedicated merged-PR workflow (on-release-pr-merge.yml)
    • Add release-kind labeling and auto-merge enablement for release PRs, and keep upstream failure notifications in both phases

Fixed

  • Smoke-test dispatch no longer fails on release PR self-approval (#402)
    • Remove bot self-approval from repository-dispatch.yml and replace with release-kind labeling plus auto-merge enablement
    • Remove in-job polling for release PR merge and downstream release execution from phase 1 orchestration
  • Sync-main-to-dev PRs now trigger CI reliably in downstream repos (#398)
    • Replace API-based sync branch creation with git push in assets/workspace/.github/workflows/sync-main-to-dev.yml so PR-related CI checks are emitted

Testing

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

Manual Testing Details

N/A

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

  • Base branch for this PR is release/0.3.1.
  • The new workflow under assets/smoke-test/ requires manual deploy/promotion in vig-os/devcontainer-smoke-test to become effective on downstream main.

Refs: #402, #398

c-vigo added 2 commits March 20, 2026 22:01
Replace GitHub Refs API branch creation with git push in sync-main-to-dev.yml so the push event triggers CI on the resulting PR. API-created branches do not emit push events, leaving sync PRs blocked by required status checks.

Refs: #398
Keep repository-dispatch focused on deploy and release-PR readiness, then trigger release.yml from a dedicated merged-release-PR workflow. This removes self-approval and merge-polling failures while preserving upstream failure reporting in both phases.

Refs: #402, #398
@c-vigo c-vigo self-assigned this Mar 20, 2026
@c-vigo
c-vigo requested a review from Copilot March 20, 2026 21:05

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

Refactors the smoke-test downstream release orchestration into a two-phase model (phase 1: repository dispatch → prepare release PR; phase 2: merged release PR → trigger release.yml) and updates the workspace template’s sync-main-to-dev workflow to create sync branches via git push so downstream CI triggers reliably.

Changes:

  • Split smoke-test release orchestration by removing in-workflow merge polling/release triggering from repository-dispatch.yml and adding a new merged-PR-triggered workflow (on-release-pr-merge.yml) to dispatch and wait for release.yml.
  • Add release-kind labeling + auto-merge enablement on the release PR in phase 1.
  • Update sync-main-to-dev.yml to create the sync branch via git checkout -b + git push (instead of the GitHub Refs API) to reliably emit CI-triggering events.
  • Add changelog entries for #402 and #398.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
assets/smoke-test/.github/workflows/repository-dispatch.yml Phase 1 orchestration: prepares release PR (ready + label + auto-merge) and updates summary/failure reporting scope.
assets/smoke-test/.github/workflows/on-release-pr-merge.yml New phase 2 workflow: on merged release/* PRs into main, dispatches release.yml, waits for completion, and notifies upstream on failure.
assets/workspace/.github/workflows/sync-main-to-dev.yml Switches sync-branch creation from API ref creation to git push so downstream push/PR CI runs are generated.
CHANGELOG.md Documents the orchestration split and sync-main-to-dev CI fix in Unreleased.
assets/workspace/.devcontainer/CHANGELOG.md Mirrors the Unreleased changelog updates 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 6 out of 6 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CHANGELOG.md Resolved
@c-vigo
c-vigo merged commit 0a71f72 into release/0.3.1 Mar 21, 2026
12 checks passed
@c-vigo
c-vigo deleted the bugfix/402-split-smoke-dispatch branch March 21, 2026 13:11
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