Repository navigation
fix(ci): align downstream candidate RC with upstream dispatch tag - #442
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes cross-repo candidate release orchestration so the downstream repository’s candidate tag (X.Y.Z-rcN) matches the upstream dispatched RC suffix, preventing final-release gate failures when the downstream repo has no prior RC tags.
Changes:
- Extract
rc_numberfrom the upstream dispatch tag (X.Y.Z-rcN) in the smoke-testrepository-dispatch.ymlworkflow and forward it asrc-numberwhen triggering downstreamrelease.yml. - Add optional
rc-number/rc_numberinputs to workspacerelease.ymland reusablerelease-core.yml, using the provided RC suffix instead of auto-increment when set. - Add BATS assertions and documentation updates describing the RC-alignment contract.
Reviewed changes
Copilot reviewed 8 out of 8 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 |
Extracts/exports base_version + rc_number, forwards rc-number to downstream release.yml, and adds summary context. |
assets/workspace/.github/workflows/release.yml |
Adds optional workflow_dispatch input rc-number and forwards it to release-core.yml as rc_number. |
assets/workspace/.github/workflows/release-core.yml |
Adds optional workflow_call input rc_number and uses it to pin candidate RC tag selection with validation. |
tests/bats/just.bats |
Adds smoke-test assertions that the new wiring keys exist in the workflow templates. |
docs/CROSS_REPO_RELEASE_GATE.md |
Documents how to pass rc-number and where to read it from (needs.validate.outputs.rc_number). |
docs/DOWNSTREAM_RELEASE.md |
Documents the optional rc-number behavior for candidate mode. |
CHANGELOG.md |
Adds a fixed entry describing the RC alignment fix. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the changelog entry into the workspace template changelog. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When upstream publishes a candidate such as
0.3.1-rc21and dispatches todevcontainer-smoke-test, the downstream workspacerelease.ymlused to auto-increment the RC from local tags only, producing0.3.1-rc1and breaking the upstream final-release gate that expects a downstream pre-release at the same RC tag.This change passes the numeric RC suffix from the dispatch tag through smoke-test orchestration into workspace
release.yml/release-core.ymlvia optionalrc-number, and documents the contract for cross-repo alignment.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.ymlrc_numberfromclient_payload.tagwhen it matchesX.Y.Z-rcNrc_numberonvalidatejob outputs; pass-f rc-number=…when triggering downstreamrelease.ymlfor candidatesassets/workspace/.github/workflows/release.ymlworkflow_dispatchinputrc-number; forward torelease-coreasrc_numberassets/workspace/.github/workflows/release-core.ymlworkflow_callinputrc_number; when set for candidate mode, use it instead of scanning remote tags for the next RC (with validation>= 1)tests/bats/just.batsrc_numberwiring and workspacerc-number/rc_numberinputsdocs/CROSS_REPO_RELEASE_GATE.md,docs/DOWNSTREAM_RELEASE.mdrc-numberfor cross-repo RC alignmentCHANGELOG.md,assets/workspace/.devcontainer/CHANGELOG.md0.3.1TBD sectionChangelog Entry
Under
## [0.3.1] - TBD→### Fixed:Testing
just test)Manual Testing Details
N/A — workflow and template changes; BATS coverage exercises template invariants.
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the active release section (## [0.3.1] - TBD) (and pasted the entry above)Additional Notes
Branch was created from
release/0.3.1; this PR should targetrelease/0.3.1(patch line), notdev.Refs: #441