Skip to content

feat(ci): smoke-test dispatch runs promote-release for final tags - #515

Merged
c-vigo merged 3 commits into
devfrom
feature/511-smoke-test-dispatch-promote-release
Apr 10, 2026
Merged

c-vigo merged 3 commits into
devfrom
feature/511-smoke-test-dispatch-promote-release

Conversation

@c-vigo

@c-vigo c-vigo commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

Description

Updates the smoke-test repository-dispatch workflow so final releases dispatch downstream promote-release.yml (publish draft release, merge release PR, RC tag cleanup) instead of merging the release PR from the listener alone. RC dispatches wait for required checks on the release PR and stop with the PR left open. Preflight now requires promote-release.yml on the dev ref. Cross-repo gate docs describe the split behavior and that the canonical flow no longer needs a manual publish on smoke-test before upstream promote.

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 promote-release.yml to preflight REQUIRED_WORKFLOWS.
    • Replace merge-release-pr with wait-release-pr-ci (gh pr checks --required, fail/cancel handling, 30m timeout).
    • Add trigger-promote-release for release_kind == final only: dispatch and poll promote-release.yml on dev with version = base semver.
    • Update summary / notify-failure dependencies and result checks (final requires promote success; candidate requires promote skipped).
  • docs/CROSS_REPO_RELEASE_GATE.md — contract, receiver steps, promote gate wording for automated downstream publish.
  • CHANGELOG.md and assets/workspace/.devcontainer/CHANGELOG.md — Unreleased Changed entry for [FEATURE] Smoke-test dispatch: trigger promote-release for final; wait on CI for RC #511.

Changelog Entry

@@ -27,6 +27,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 - **Sync workflows run in devcontainer image** ([#509](https://github.com/vig-os/devcontainer/issues/509))
   - `sync-issues` and `sync-main-to-dev` use `resolve-image` and run inside the pinned devcontainer, removing the `setup-env` composite action dependency and the inlined retry helper
   - `sync-main-to-dev` creates sync branches via `git push` instead of the GitHub refs API
+- **Smoke-test dispatch triggers promote-release for final releases** ([#511](https://github.com/vig-os/devcontainer/issues/511))
+  - Final releases dispatch downstream `promote-release.yml` instead of merging the release PR directly, publishing the draft GitHub Release and satisfying the upstream promote-time downstream gate
+  - RC releases wait for release PR required checks but no longer merge the PR to `main`
 
 ### Deprecated

Testing

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

Manual Testing Details

N/A — GitHub Actions workflow and documentation only; end-to-end validation happens after the template is deployed to vig-os/devcontainer-smoke-test (see issue prerequisite: PR #510 merged there).

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

N/A

Refs: #511

Replace merge-release-pr with wait-release-pr-ci that polls required checks on the release PR (fail/cancel fast, 30m timeout). Add a final-only job that dispatches promote-release.yml on dev with the base version and waits for success so the downstream draft GitHub Release is published, the release PR merges to main, and RC tag cleanup can run. Preflight now requires promote-release.yml alongside prepare-release and release.

Summary treats trigger-promote-release as mandatory success for final dispatches and as skipped-only for candidates. notify-failure lists the new jobs.

Document the workflow contract, receiver steps, and promote gate in docs/CROSS_REPO_RELEASE_GATE.md. Record the change under Unreleased in CHANGELOG.md and the workspace devcontainer changelog mirror.

Refs: #511

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

Updates the smoke-test repository-dispatch workflow to split RC vs final release handling so that final tags dispatch and wait for downstream promote-release.yml (publishing the draft release + merging the release PR), while RC tags only wait for required checks on the release PR and leave it open. Documentation and changelogs are updated to reflect the new cross-repo gate contract.

Changes:

  • Add promote-release.yml to downstream preflight workflow availability checks on dev.
  • Replace the “merge release PR” behavior with “wait for required checks”, and add a final-only downstream promote-release.yml dispatch + wait.
  • Update cross-repo gate documentation and changelog entries for issue #511.

Reviewed changes

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

File Description
assets/smoke-test/.github/workflows/repository-dispatch.yml Adds promote preflight requirement, introduces required-check polling for the release PR, and dispatches promote-release.yml for final releases.
docs/CROSS_REPO_RELEASE_GATE.md Documents the split RC vs final behavior and the new downstream promote step for final tags.
CHANGELOG.md Adds an Unreleased “Changed” entry describing the new smoke-test promote behavior.
assets/workspace/.devcontainer/CHANGELOG.md Mirrors the changelog entry in the devcontainer copy.

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

c-vigo added 2 commits April 10, 2026 15:12
Fail fast on closed/merged PR and on gh CLI errors instead of
spinning silently until timeout.

Refs: #511
@c-vigo
c-vigo enabled auto-merge April 10, 2026 13:13
@c-vigo c-vigo self-assigned this Apr 10, 2026
@c-vigo
c-vigo merged commit 0dbc3a5 into dev Apr 10, 2026
11 checks passed
@c-vigo
c-vigo deleted the feature/511-smoke-test-dispatch-promote-release branch April 10, 2026 13:19
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