Skip to content

ci(ci): redesign smoke-test dispatch release orchestration - #360

Merged
c-vigo merged 5 commits into
release/0.3.1from
feature/358-redesign-smoke-test-dispatch-release-cycle
Mar 19, 2026
Merged

c-vigo merged 5 commits into
release/0.3.1from
feature/358-redesign-smoke-test-dispatch-release-cycle

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Description

Redesign smoke-test repository dispatch orchestration for issue #358 on top of release/0.3.1, so downstream validation follows deploy merge -> prepare-release -> release with explicit polling and upstream failure reporting.
Follow-up hardening addresses Copilot review comments for token permissions, transient auto-merge enablement, and critical raw-content download retries.

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
    • Replaces the old publish-release flow with staged orchestration jobs (wait-deploy-merge, cleanup-release, trigger-prepare-release, ready-release-pr, trigger-release, notify-failure)
    • Fixes workflow polling race by capturing latest run IDs before dispatch and waiting only for newer runs
    • Adds deploy PR merge gating before release orchestration begins
    • Grants wait-deploy-merge explicit pull-requests: read permission for gh pr view with github.token
    • Makes release PR auto-merge enablement non-fatal and retryable inside the polling loop
    • Adds bounded inline retry loops for critical curl fetches (installer script and upstream CHANGELOG.md)
  • tests/bats/just.bats
    • Adds smoke-test assertions covering the new orchestration phases and run-ID-based polling guards
    • Adjusts grep assertions/quoting for reliability
    • Adds assertions for deploy-merge permission and non-fatal auto-merge retry warning text
  • CHANGELOG.md
  • assets/workspace/.devcontainer/CHANGELOG.md

Changelog Entry

Changed

  • Redesigned smoke-test dispatch release orchestration (#358)
    • Replace premature publish-release behavior with full downstream orchestration: deploy-to-dev merge gate, prepare-release.yml, release PR readiness/approval, and release.yml dispatch polling
    • Add release-branch CHANGELOG sync so smoke-test main ends with the same CHANGELOG.md content as vig-os/devcontainer at the dispatched tag
    • Add upstream failure issue reporting with job-phase results and cleanup guidance when dispatch orchestration fails

Testing

  • Tests pass locally (just test-bats)
  • 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

This PR targets release/0.3.1 and was rebuilt from that base branch before replaying issue #358 commits, to avoid dev-vs-release divergence in the workflow/changelog context.

Refs: #358

@c-vigo c-vigo self-assigned this Mar 18, 2026
@c-vigo
c-vigo requested a review from Copilot March 18, 2026 22:47

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

Redesigns the downstream smoke-test repository_dispatch workflow to orchestrate the full downstream release lifecycle (deploy → prepare-release → release) with explicit polling, gating on deploy PR merge, and upstream failure reporting, aligning the smoke-test gate with issue #358’s requirements.

Changes:

  • Replaces the old “publish-release” behavior with staged orchestration jobs that trigger and poll prepare-release.yml and release.yml.
  • Adds deploy-PR merge gating, stale release-branch cleanup, release PR readiness/approval automation, and upstream failure issue reporting.
  • Updates BATS assertions and changelog entries to reflect the new orchestration flow.

Reviewed changes

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

File Description
assets/smoke-test/.github/workflows/repository-dispatch.yml Major workflow redesign: staged orchestration, polling/run-id gating, PR merge waits, upstream failure notification.
tests/bats/just.bats Updates BATS checks to assert the presence/shape of the new orchestration logic.
CHANGELOG.md Documents the orchestration redesign under the appropriate release notes section.
assets/workspace/.devcontainer/CHANGELOG.md Mirrors the changelog entry in the workspace template copy.

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

@c-vigo
c-vigo requested a review from Copilot March 19, 2026 06:26

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

This PR redesigns the smoke-test repository_dispatch workflow to orchestrate the full downstream release cycle (deploy merge gate → prepare-release → release), with explicit polling and upstream failure reporting, aligning smoke-test validation with the intended downstream release process for issue #358.

Changes:

  • Replace the legacy publish-release job with staged orchestration jobs (wait-deploy-merge, cleanup-release, trigger-prepare-release, ready-release-pr, trigger-release) plus notify-failure.
  • Add BATS assertions to validate the new orchestration phases and polling/run-id guards.
  • Add issue #358 changelog entries in the root changelog and the workspace devcontainer changelog mirror.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
assets/smoke-test/.github/workflows/repository-dispatch.yml Reworks dispatch workflow into multi-phase downstream release orchestration with polling, cleanup, changelog sync, and upstream failure reporting.
tests/bats/just.bats Adds/updates smoke-test workflow assertions for the new orchestration phases and guards.
CHANGELOG.md Adds issue #358 entry under 0.3.1 “Changed”.
assets/workspace/.devcontainer/CHANGELOG.md Mirrors the same issue #358 changelog entry for the workspace template.

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

@c-vigo
c-vigo merged commit 47952c9 into release/0.3.1 Mar 19, 2026
12 checks passed
@c-vigo
c-vigo deleted the feature/358-redesign-smoke-test-dispatch-release-cycle branch March 19, 2026 07: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