Repository navigation
ci(release): publish docs from validated edge snapshots - #2101
Open
DariuszPorowski wants to merge 1 commit into
Open
DariuszPorowski wants to merge 1 commit into
DariuszPorowski wants to merge 1 commit into
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
Add a read-only Validate release docs workflow for each release candidate. It applies the release configuration to the exact edge commit with a new release-docs.sh --dry-run mode and builds the site with the matching Radius Swagger, without writing, deploying, or indexing. Release docs now requires the validated commit, verifies that it is reachable from edge, and publishes vX.Y from that commit plus the release configuration commit. Update the contributor guidance for edge-only development, RC snapshots, and backports. Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
DariuszPorowski
force-pushed
the
dariuszporowski-docs-release-snapshots
branch
from
December 1, 2026 19:44
d119c14 to
170a99b
Compare
This was referenced Dec 1, 2026
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
Implements the docs side of release Option 2: development happens only on
edge, each release candidate validates an exactedgecommit, and the final release publishesvX.Yfrom that commit plus the release configuration.Validate release docsworkflow (validate-release.yaml). The coordinator dispatches it onedgefor each RC with{version}and records the run'shead_shaas the docs snapshot. It runs only onrefs/heads/edge, checks out exactlygithub.sha, and has onlycontents: read. It uses no App token, writes nothing, deploys no Pages, and does no Algolia indexing. It validatesversionwithvalidate_semver.py, applies the release configuration with the newrelease-docs.sh --dry-run, and builds the combined site withbuild_pages.py, using the Radius Swagger fromrefs/tags/v${version}.Release docs(release.yaml) now requires acommitinput. Before it runs any snapshot code or creates the App token, it checks thatcommitmatches^[0-9a-f]{40}$and is reachable fromorigin/edge(git merge-base --is-ancestor). It then checks out that commit detached and runsrelease-docs.shon it. The release commit's only parent is the snapshot. The workflow keeps the filename, job guard, App-signed commit, and create-or-fast-forwardvX.Y. It never touches the default branch and requests noadministrationpermission. Inputs reachrun:only throughenv.release-docs.sh --dry-run: an additive mode that skips the credential check and exits after staging the release configuration, before anygh apicall. Bicep handling is unchanged.edge, backports go tovX.Yin a separate PR after merging toedge, RC snapshot validation, and final publication from the snapshot.Reason for change
Docs no longer upmerges, and
edgestays the default branch. Previously, the final release published whatever theedgetip was at the time of the final release. Publishing the commit validated for the RC makes the released docs match what was tested against that Radius version. The core Radius release coordinator (radius-project/radius, changed in parallel) calls this contract.Coordination with #2096: the
release-docs.shand test edits are additive and don't overlap that PR's hunks. I verified that both merge orders are clean and that all tests pass on the merged result. After #2096 merges, the dry run also applies and validates the Bicep extension tag selection for the RC.Merge order, with no release in flight:
Merge this first. The updated coordinator dispatches its
validate-release.yamlfor every RC and passes the newcommitinput torelease.yamlfor finals.Fixes #
How to test
Prerequisites: Linux (or WSL) with GNU
sed/base64,jq, Python 3, Node.js from.node-version, and Go.bash .github/scripts/release-docs_test.sh. ExpectDocs release dry-run tests passed (5 cases).andDocs release script tests passed (15 cases).python3 -m unittest discover -s .github/scripts -p 'pages_*_test.py'. ExpectOK.actionlint .github/workflows/release.yaml .github/workflows/validate-release.yaml. Expect no findings.Dry run: the release configuration for v0.62.0-rc.6 applies cleanly. No GitHub API calls were made.Then expect a successful build, withpublic/latest/index.htmlshowinglatest (0.62)and onlyconfig.tomlstaged inrelease-docs.Release docssnapshot guard from a full clone. WithINPUT_COMMITset togit rev-parse origin/edge~5, it checks out that commit. It fails for an uppercase or short SHA, a ref name, theorigin/v0.62tip, or an unknown SHA.File change summary
.github/workflows/validate-release.yamlgithub.sha, and builds the site with the Swagger fromv${version}..github/workflows/release.yamlcommitinput. It validates the SHA and its reachability fromorigin/edgebefore any token or snapshot code runs, then publishes from the detached snapshot. Checkout uses the read-only job token..github/scripts/release-docs.sh--dry-runmode: no credentials or API calls, and it exits after staging the release configuration..github/scripts/release-docs_test.shREADME.mdcontent/contributing/contributing-docs/index.md