Repository navigation
ci(release): publish docs and samples from validated RC snapshots - #13950
Open
DariuszPorowski wants to merge 2 commits into
Open
DariuszPorowski wants to merge 2 commits into
DariuszPorowski wants to merge 2 commits into
Conversation
Docs and samples no longer upmerge release branches into edge, which stays their default branch. Each RC validates exact edge commits (docs validate-release.yaml, samples test.yaml) and records them on its coordination receipts. A final publishes vX.Y from those commits plus release configuration, verifies edge is still the default and vX.Y descends from the snapshot, then runs sample tests on vX.Y. Patches run sample tests on vX.Y. The verifier rejects coordinators that still dispatch upmerges. Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
This was referenced Dec 1, 2026
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Critical release-coordination defects can strand legacy releases and retries, allow approved snapshots to change, and publish samples with broken extension references.
6 open issues
Samples still pulls the extension from ACR instead of GHCR · New Later gates accept changed snapshots after approval · New Retries can create sibling commits after a lost write response · New Legacy tagged coordinators cannot resume with the upmerge verifier · New A channel cut from newer edge passes the ancestry check · New Receiver cutover strands in-flight tagged releases · New
What changed in this PR
Replaces docs and samples upmerges with snapshots validated by a release candidate (RC). Final releases publish those snapshots while edge remains both repositories’ development and default branch.
Changes:
- Record validated commits in RC receipts and pass them to final publication workflows; run final and patch sample tests on
vX.Y. - Remove upmerge coordination and its pull-request permission, and add a release-source retirement check.
- Expand regression coverage, report validated commits, and update release procedures.
| File | Description |
|---|---|
eng/design-notes/tools/2026-03-goreleaser-release-lifecycle.md |
Describes snapshot-based coordination and permissions. |
docs/contributing/contributing-releases/release-runbook.md |
Updates downstream checks and retry guidance. |
docs/contributing/contributing-releases/README.md |
Documents snapshots, publication, retries, and backports. |
.github/workflows/build-release.yaml |
Removes the coordination token’s pull-request permission. |
.github/scripts/verify-release-build-contract.sh |
Rejects coordinators referencing retired upmerges. |
.github/scripts/verify-release-build-contract_test.sh |
Covers the upmerge retirement check. |
.github/scripts/release-status.mjs |
Includes validated docs commits in summaries. |
.github/scripts/release-status_test.mjs |
Checks docs and samples commit reporting. |
.github/scripts/coordinate-release.mjs |
Coordinates validation, pinned publication, and stable-branch testing. |
.github/scripts/coordinate-release_test.mjs |
Covers snapshots, publication checks, gating, and retries. |
Review effort: Max (adaptive)
| ref: developmentBranch, | ||
| inputs: { ...inputs, commit: snapshots[repo] } | ||
| })), | ||
| tests(channelBranch(version)) |
| `${version}: ${task.id} recorded no validated ${task.repo} commit; cut another RC` | ||
| ); | ||
| } | ||
| snapshots[task.repo] = commit; |
| replaceClosedUpmerge ? | ||
| "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun" | ||
| : "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs", | ||
| "POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs", |
Comment on lines
+560
to
+561
| if git grep -q -F 'upmerge.yaml' "${COMMIT}" -- .github/scripts/coordinate-release.mjs; then | ||
| reject "still coordinates retired docs and samples upmerges" |
Comment on lines
+430
to
+439
| // The published branch must descend from the validated snapshot. | ||
| const { data: comparison } = await call( | ||
| "GET /repos/{owner}/{repo}/compare/{basehead}", | ||
| { basehead: `${commit}...${channel}` } | ||
| ); | ||
| if (comparison.status !== "ahead") { | ||
| throw new Error( | ||
| `${task.repo} ${channel} is not published from validated commit ${commit}` | ||
| ); | ||
| } |
| 2. Open the [release build workflow](https://github.com/radius-project/radius/actions/workflows/build-release.yaml), select the run for the approved version, and confirm its source commit matches the controller summary. GoReleaser stages core artifacts; the retained Bicep image, Helm chart, and Bicep extension stage complete before verification. The controller has authenticated AWS output before the Radius tag; the build calls the native Radius producer and retains `bicep-extension-lock.json` with both exact GHCR full-version references and matching source/revision/version annotations. Verify that pair and the finalization receipts under `bicep-publication-<run-id>-<attempt>`, not ACR copies. New selector-free publication is rejected; published historical releases retain read-only ACR verification. The Bicep container uses full-version GHCR references, never aliases that await approval. `testrp` and `magpiego` are test-workflow outputs, not release assets or channel aliases. | ||
| 3. Review `release-manifest.json` and the staged-installation result. **Finals and patches** wait for a second approval, **Approve final or patch publication**, in the `release` environment; approve only the verified version/source pair. **RCs** publish without this second approval after the same mandatory gate. Outputs are rechecked after approval before alias promotion or publication. | ||
| 4. Follow the exact downstream run URLs. For RCs, review and merge docs and samples upmerge PRs, then resume the release. Automation binds the pull request each upmerge run opened and requires it to be merged before running sample tests; both repositories squash-merge, so the source commits never become reachable from `edge`, and a run with nothing to merge is complete. All three successful receipts are required for final preparation and publication; the release build rechecks them during verification and again after publication approval, before any alias moves. Receipts exist only for RCs published with this coordination in place; if the last validated RC predates it, cut another RC before preparing the final. Finals publish docs and samples and run sample tests; patches run sample tests without recutting their release branches. | ||
| 4. Follow the exact downstream run URLs. Docs and samples develop on `edge`, which stays their default branch; releases never merge a stable branch back into it. Each **RC** validates content snapshots: it dispatches docs `validate-release.yaml` and samples `test.yaml` on `edge` with the RC version and records each run's tested commit on its receipt. A **final** reads both successful receipts of its last RC and dispatches docs and samples `release.yaml` on `edge` with the final version and that RC's `commit`. Each publishes `vX.Y` from the snapshot plus release configuration only, such as versions, URLs, and extension tags, so newer `edge` content is not picked up. The coordinator then checks that both default branches are still `edge` and that `vX.Y` descends from the validated commit, and runs sample tests on the published `vX.Y`. **Patches** run sample tests on `vX.Y` and republish neither repository. Both successful RC receipts are required for final preparation and publication; the release build rechecks them during verification and again after publication approval, before any alias moves. Receipts exist only for RCs published with this coordination in place; if the last validated RC predates it, cut another RC before preparing the final. |
Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
Radius functional test overviewClick here to see the test run details
Test Status⌛ Building Radius and pushing container images for functional tests... |
This branch has not been deployed
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.



Summary
Removes docs/samples upmerges from release coordination. Releases now use the agreed model: development first, with pinned content snapshots.
edgestays the default branch of both repositories.validate-release.yamland samplestest.yamlonedgewith the RC version. Each successful receipt records the run's tested commit as its environment URL (…/<repo>/commit/<sha>). Resuming a failed validation dispatches one fresh run of the branch.checkReleaseCandidatereturns the last RC's docs and samples commits, and the coordinator passes them to docs and samplesrelease.yamlonedgeas{version, commit}. After each run it checks that the default branch is stilledgeand thatcompare <commit>...vX.Yreportsahead. Sample tests then run on the publishedvX.Yand wait for samples publication.vX.Yinstead ofedge.pull-requests: read.verify-release-build-contract.shrejects a release source whose coordinator still dispatchesupmerge.yaml.Reason for change
Upmerges made releases wait on branch synchronization and reviews. They caused lockfile, workflow, and version conflicts, could drop valid changes, and did not prove that the published docs and samples matched what the accepted RC tested. With this change, every RC validates exact commits, and the final publishes only those commits plus release configuration. To ship newer content, cut another RC; supported
vX.Ybranches get fixes only through selective backports.Merge order, with no release in flight:
validate-release.yaml, which this coordinator dispatches for every RC, and thecommitinput.upmerge.yaml. Today's coordinator already cannot finish an RC, because docsedgedroppedupmerge.yamlin its Pages migration.__upmerge.ymland its sync, which nothing dispatches after this PR.upmerge.yamland adds thecommitinput that finals pass. Merge it before the first v0.63 final.The radius-publisher retirement is #13952, which is independent of this PR.
Fixes #
How to test
Prerequisites: Node.js, Bash,
yq, andjq.All of these were run locally and passed:
markdownlint-cli2,markdown-table-formatter --check, andcspellreport no issues on the changed docs. A live RC-to-final cycle has not been run; that is the existing readiness gate.File change summary
.github/scripts/coordinate-release.mjsedge, final releases withcommit,vX.Ysample tests. Records validated commits on receipts, returns them fromcheckReleaseCandidate, verifiesvX.Yancestry and theedgedefault, and drops the upmerge code..github/scripts/coordinate-release_test.mjs.github/scripts/release-status.mjs/_test.mjs.github/scripts/verify-release-build-contract.sh/_test.shupmerge.yaml..github/workflows/build-release.yamlpull-requests: readfrom the docs/samples coordination token.docs/contributing/contributing-releases/README.mddocs/contributing/contributing-releases/release-runbook.mdeng/design-notes/tools/2026-03-goreleaser-release-lifecycle.md