Repository navigation
fix(ci): split smoke-test dispatch into two-phase orchestration - #404
Conversation
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
There was a problem hiding this comment.
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.ymland adding a new merged-PR-triggered workflow (on-release-pr-merge.yml) to dispatch and wait forrelease.yml. - Add release-kind labeling + auto-merge enablement on the release PR in phase 1.
- Update
sync-main-to-dev.ymlto create the sync branch viagit 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.
There was a problem hiding this comment.
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.
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 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.ymltrigger-releasejobassets/smoke-test/.github/workflows/on-release-pr-merge.yml(new)release/*PRs intomainrelease.yml, wait for completion, and report failures upstreamassets/workspace/.github/workflows/sync-main-to-dev.ymlgit checkout -b ...+git pushso push/pull_request CI checks are emittedCHANGELOG.mdandassets/workspace/.devcontainer/CHANGELOG.mdChangelog Entry
Changed
repository-dispatch.ymlfocused on deploy/prepare/release-PR readiness and move release dispatch to a dedicated merged-PR workflow (on-release-pr-merge.yml)Fixed
repository-dispatch.ymland replace with release-kind labeling plus auto-merge enablementgit pushinassets/workspace/.github/workflows/sync-main-to-dev.ymlso PR-related CI checks are emittedTesting
just test)Manual Testing Details
N/A
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
release/0.3.1.assets/smoke-test/requires manual deploy/promotion invig-os/devcontainer-smoke-testto become effective on downstreammain.Refs: #402, #398