Skip to content

ci: enforce downstream release validation gate - #332

Merged
c-vigo merged 9 commits into
devfrom
feature/331-trigger-downstream-smoke-test-release-gate
Mar 17, 2026
Merged

c-vigo merged 9 commits into
devfrom
feature/331-trigger-downstream-smoke-test-release-gate

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Description

Implements an automated cross-repository validation gate for release publication, including upstream gating logic, downstream dispatch/release artifact handling, and follow-up hardening from Copilot review comments.
Also refactors release documentation to keep smoke-test gate details in a dedicated document and removes the workspace-level dispatch workflow so dispatch handling is owned by the smoke-test template.

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

  • .github/workflows/release.yml
    • Adds final-release validation requiring downstream RC pre-release existence
    • Adds dedicated cross-repo dispatch/wait gate behavior
    • Fixes RC tag validation by using fixed-prefix + numeric suffix parsing
    • Includes smoke-test in rollback dependency/failure evaluation
  • assets/smoke-test/.github/workflows/repository-dispatch.yml
    • Adds downstream release artifact publication/validation behavior
    • Handles candidate tags as pre-releases and final tags as full releases
    • Adds idempotent existing-release handling
  • assets/workspace/.github/workflows/repository-dispatch.yml
    • Removed so dispatch ownership remains smoke-test-template-only
  • docs/DOWNSTREAM_RELEASE.md, docs/RELEASE_CYCLE.md
    • Removes embedded smoke-test gate details from release-cycle/downstream contract docs
    • Replaces them with links to dedicated gate documentation
  • docs/CROSS_REPO_RELEASE_GATE.md
    • New source-of-truth document covering rationale, flow, payload contract, pass/fail semantics, and expected output
  • CHANGELOG.md
    • Adds Unreleased entry for downstream RC pre-release gate behavior

Changelog Entry

Changed

  • Final release now requires downstream RC pre-release gate (#331)
    • Add upstream final-release validation that requires a downstream GitHub pre-release for the latest published RC tag
    • Move smoke-test dispatch to a dedicated release job and include release_kind in the dispatch payload
    • Add downstream repository-dispatch.yml template that runs smoke tests and creates pre-release/final release artifacts

Testing

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

Manual Testing Details

Targeted integration regression was reproduced during review (TestSmokeRepo::test_default_init_does_not_deploy_repository_dispatch) and the fix path was applied; full local re-run evidence is not yet attached in this PR body.

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

Copilot review comments were addressed with follow-up atomic commits:

  • runtime/idempotency hardening for dispatch flow
  • RC validation + rollback dependency fixes
  • smoke-test template alignment to gate expectations
  • workspace dispatch workflow removal and docs split into dedicated cross-repo gate doc

Refs: #331

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

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

Adds an automated downstream smoke-test release gate to the upstream release pipeline, requiring evidence of downstream smoke-test completion (via downstream GitHub Releases) before finalizing/publishing releases.

Changes:

  • Updates upstream .github/workflows/release.yml to (a) validate presence of a downstream pre-release for the latest RC before final publish and (b) dispatch + wait on downstream smoke-test completion in a dedicated job.
  • Introduces a workspace template downstream repository_dispatch workflow that runs smoke tests and creates downstream GitHub releases (pre-release for candidates, full release for finals).
  • Updates release documentation and changelog entries to reflect the new automated smoke-test gate behavior and dispatch payload contract.

Reviewed changes

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

Show a summary per file
File Description
.github/workflows/release.yml Adds latest-RC discovery + downstream RC pre-release validation; moves dispatch/wait into a dedicated smoke-test job; adjusts rollback condition.
assets/workspace/.github/workflows/repository-dispatch.yml New downstream dispatch handler to validate payload, run smoke tests, and create a downstream GitHub Release used by upstream gating.
docs/RELEASE_CYCLE.md Replaces manual smoke gate guidance with automated downstream gate description and updated dispatch contract.
docs/DOWNSTREAM_RELEASE.md Documents the new downstream repository-dispatch smoke-test release workflow and payload contract.
CHANGELOG.md Adds an Unreleased entry describing the new downstream RC pre-release gate requirement.

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

Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
@c-vigo
c-vigo requested a review from Copilot March 17, 2026 07:49
@c-vigo c-vigo changed the title ci: enforce downstream smoke-test release gate ci: enforce downstream release validation gate Mar 17, 2026

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 enforces an automated downstream smoke-test/validation gate in the release pipeline by dispatching a cross-repo workflow and requiring downstream release artifacts (pre-release for RCs, release for finals) before upstream release completion.

Changes:

  • Adds an upstream “latest RC must exist downstream as a pre-release” validation for final releases and a dedicated smoke-test job that dispatches + waits for downstream completion.
  • Extends the downstream repository_dispatch workflow template to publish/validate a GitHub Release artifact for the dispatched tag.
  • Updates release docs and changelog to reflect the automated cross-repo validation gate.

Reviewed changes

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

Show a summary per file
File Description
.github/workflows/release.yml Adds downstream-gate validation (latest RC prerelease) and a smoke-test dispatch+wait job; tightens rollback conditions.
assets/smoke-test/.github/workflows/repository-dispatch.yml Adds downstream release artifact publishing/validation and adjusts permissions to support release creation.
docs/CROSS_REPO_RELEASE_GATE.md New documentation describing the cross-repo validation gate, payload contract, and expected signals.
docs/RELEASE_CYCLE.md Updates release cycle narrative/diagram to reflect automated external gate behavior and new doc reference.
docs/DOWNSTREAM_RELEASE.md Adds pointer to cross-repo validation gate documentation.
CHANGELOG.md Documents the new downstream RC prerelease gate requirement for final releases.

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

Comment thread .github/workflows/release.yml Resolved
@c-vigo
c-vigo enabled auto-merge March 17, 2026 08:09
@c-vigo
c-vigo merged commit 224cb32 into dev Mar 17, 2026
12 checks passed
@c-vigo
c-vigo deleted the feature/331-trigger-downstream-smoke-test-release-gate branch March 17, 2026 08:14
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