Repository navigation
ci: enforce downstream release validation gate - #332
Conversation
There was a problem hiding this comment.
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.ymlto (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_dispatchworkflow 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.
There was a problem hiding this comment.
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-testjob that dispatches + waits for downstream completion. - Extends the downstream
repository_dispatchworkflow 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.
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 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
.github/workflows/release.ymlsmoke-testin rollback dependency/failure evaluationassets/smoke-test/.github/workflows/repository-dispatch.ymlassets/workspace/.github/workflows/repository-dispatch.ymldocs/DOWNSTREAM_RELEASE.md,docs/RELEASE_CYCLE.mddocs/CROSS_REPO_RELEASE_GATE.mdCHANGELOG.mdChangelog Entry
Changed
release_kindin the dispatch payloadrepository-dispatch.ymltemplate that runs smoke tests and creates pre-release/final release artifactsTesting
just test)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
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Copilot review comments were addressed with follow-up atomic commits:
Refs: #331