Skip to content

ci(release): publish docs and samples from validated RC snapshots - #13950

Open
DariuszPorowski wants to merge 2 commits into
mainfrom
dariuszporowski-remove-docs-samples-upmerges
Open

DariuszPorowski wants to merge 2 commits into
mainfrom
dariuszporowski-remove-docs-samples-upmerges

Conversation

@DariuszPorowski

@DariuszPorowski DariuszPorowski commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes docs/samples upmerges from release coordination. Releases now use the agreed model: development first, with pinned content snapshots. edge stays the default branch of both repositories.

  • RC: dispatches docs validate-release.yaml and samples test.yaml on edge with 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.
  • Final: checkReleaseCandidate returns the last RC's docs and samples commits, and the coordinator passes them to docs and samples release.yaml on edge as {version, commit}. After each run it checks that the default branch is still edge and that compare <commit>...vX.Y reports ahead. Sample tests then run on the published vX.Y and wait for samples publication.
  • Patch: sample tests run on vX.Y instead of edge.
  • Removes upmerge PR binding, merge waiting, and replacement logic, plus the coordination token's pull-requests: read.
  • verify-release-build-contract.sh rejects a release source whose coordinator still dispatches upmerge.yaml.
  • The release summary reports the docs commit beside the samples commit.
  • Updates the release README, runbook, and GoReleaser lifecycle design note.

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.Y branches get fixes only through selective backports.

Merge order, with no release in flight:

  1. ci(release): publish docs from validated edge snapshots docs#2101: adds validate-release.yaml, which this coordinator dispatches for every RC, and the commit input.
  2. This PR: the coordinator stops dispatching upmerge.yaml. Today's coordinator already cannot finish an RC, because docs edge dropped upmerge.yaml in its Pages migration.
  3. ci(sync): remove shared upmerge workflow .github#60: removes the shared __upmerge.yml and its sync, which nothing dispatches after this PR.
  4. ci: release samples from a tested edge commit and remove upmerges samples#2747: removes upmerge.yaml and adds the commit input 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, and jq.

node --test ./.github/scripts/coordinate-release_test.mjs ./.github/scripts/release-status_test.mjs ./.github/scripts/verify-release-manifest_test.mjs ./.github/scripts/publish-sibling-releases_test.mjs ./.github/scripts/resolve-release-controller_test.mjs ./.github/scripts/dispatch-release-controller_test.mjs
bash ./.github/scripts/verify-release-build-contract_test.sh
bash ./.github/scripts/release-cutover_test.sh
bash ./.github/scripts/release-controller_test.sh

All of these were run locally and passed:

  • Node suites: 82 tests.
  • Build-contract verifier: 143 tests.
  • Cutover: 15 tests.
  • Controller: 91 tests.

markdownlint-cli2, markdown-table-formatter --check, and cspell report 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

File Summary of change
.github/scripts/coordinate-release.mjs Snapshot task matrix: RC validation on edge, final releases with commit, vX.Y sample tests. Records validated commits on receipts, returns them from checkReleaseCandidate, verifies vX.Y ancestry and the edge default, and drops the upmerge code.
.github/scripts/coordinate-release_test.mjs Replaces the upmerge cases with snapshot, final-gating, verification, and fresh-validation-retry coverage.
.github/scripts/release-status.mjs / _test.mjs Reports the docs commit with the samples commit.
.github/scripts/verify-release-build-contract.sh / _test.sh Rejects coordinators that still dispatch upmerge.yaml.
.github/workflows/build-release.yaml Removes pull-requests: read from the docs/samples coordination token.
docs/contributing/contributing-releases/README.md Describes the snapshot model, retry behavior, and content changes after an RC; removes upmerge recovery.
docs/contributing/contributing-releases/release-runbook.md Updates the downstream actions, verification checklist, and troubleshooting.
eng/design-notes/tools/2026-03-goreleaser-release-lifecycle.md Updates the coordination design to snapshots.

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>
@DariuszPorowski
DariuszPorowski requested review from a team as code owners December 1, 2026 19:51
Copilot AI adaptive review requested due to automatic review settings December 1, 2026 19:51
@github-actions github-actions Bot added the pr:waiting-for-review A reviewer owns the next action; required approval is pending or unverifiable label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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
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>
@github-actions github-actions Bot added pr:waiting-for-author The author needs to address human review feedback or human-endorsed inline feedback and removed pr:waiting-for-review A reviewer owns the next action; required approval is pending or unverifiable labels Dec 1, 2026
@radius-functional-tests

Copy link
Copy Markdown

Radius functional test overview

🔍 Go to test action run

Click here to see the test run details
Name Value
Repository radius-project/radius
Commit ref 2e789d9
Unique ID funcc0012cfbe4
  • Dapr: 1.14.4
  • Azure KeyVault CSI driver: 1.4.2
  • Azure Workload identity webhook: 1.3.0
  • Terraform recipe location http://tf-module-server.radius-test-tf-module-server.svc.cluster.local/<name>.zip (in cluster)
  • deployment-engine test image location: ghcr.io/radius-project/deployment-engine:edge
  • The build records the producing attempt's test tag; publication receipts and the final report identify the actual tag.

Test Status

⌛ Building Radius and pushing container images for functional tests...

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:standard Ongoing maintenance, minor improvements, documentation updates, and routine development work pr:waiting-for-author The author needs to address human review feedback or human-endorsed inline feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants