Skip to content

ci: release samples from a tested edge commit and remove upmerges - #2747

Open
DariuszPorowski wants to merge 1 commit into
edgefrom
dariuszporowski-samples-remove-upmerge
Open

DariuszPorowski wants to merge 1 commit into
edgefrom
dariuszporowski-samples-remove-upmerge

Conversation

@DariuszPorowski

@DariuszPorowski DariuszPorowski commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Removes the release-to-edge upmerge and keeps edge as the default branch. Release samples now publishes vX.Y from an exact, tested edge commit instead of the edge tip.

Reason for change

Docs and samples move to a snapshot release model: develop on edge, test each RC on an exact edge commit, and publish the final release from the accepted snapshot plus release configuration only. Fixes for a supported release are backported by separate PRs.

The Radius release coordinator, updated in radius-project/radius#13950, calls:

  • RC: test.yaml on edge with version; the run's head_sha is the samples snapshot.
  • Final: release.yaml on edge with version and commit, then test.yaml on vX.Y.
  • Patch: test.yaml on vX.Y with version.

test.yaml already meets this contract: it accepts version and tests github.sha, so it is unchanged. The shared upmerge workflow and its sync are being removed from radius-project/.github, so the deleted caller will not be re-synced.

Merge order, with no release in flight:

  1. ci(release): publish docs from validated edge snapshots docs#2101
  2. ci(release): publish docs and samples from validated RC snapshots radius#13950
  3. ci(sync): remove shared upmerge workflow .github#60
  4. ci: release samples from a tested edge commit and remove upmerges #2747 (this PR)

Merge after radius-project/radius#13950, which stops dispatching upmerge.yaml, and radius-project/.github#60, so the sync does not recreate it. Merge it before the first v0.63 final, which passes the new commit input.

Fixes #

How to test

  1. Lint the changed files:
    • actionlint .github/workflows/release.yaml reports nothing.
    • zizmor --offline .github/workflows/release.yaml reports no findings.
    • yamllint -c .github/linters/.yamllint.yml .github/workflows/release.yaml reports no errors. The synced config reads .yamlignore; add an empty one locally if it is missing.
    • npx markdownlint-cli2 --config .github/linters/.markdownlint-cli2.yaml CONTRIBUTING.md reports 0 errors.
  2. Check the commit guards in a clone with origin/edge and origin/v0.61 fetched. Run the regex and git merge-base --is-ancestor <commit> origin/edge checks from the Ensure inputs.commit steps:
    • An edge commit is accepted.
    • The v0.61 tip is rejected as not on edge.
    • A short SHA, an uppercase SHA, an empty value, and <sha>; echo pwned are rejected by the format check.
  3. After merge, dispatching Release samples from any ref other than edge skips the job. Dispatching it from edge with a non-edge commit fails before the release script runs.
  4. After a final release run:
    • gh api repos/radius-project/samples --jq .default_branch still returns edge.
    • git rev-parse vX.Y^ equals commit.
    • git diff <commit> vX.Y shows only release configuration.

Local results: steps 1 and 2 passed. Steps 3 and 4 need real workflow dispatches and were not run.

File change summary

File Summary of change
.github/workflows/release.yaml Adds a required commit input. Runs only when dispatched on edge. Rejects any commit that is not a full lowercase SHA or not reachable from origin/edge. Checks out exactly commit and runs the unchanged release-samples.sh, so the release commit's only parent is commit. Passes inputs through env. Removes the default-branch change, its unused channel step, and the App's Administration permission.
.github/workflows/upmerge.yaml Deleted. Release branches are no longer upmerged into edge.
CONTRIBUTING.md Replaces the upmerge section with Branches and releases: edge is the default branch and PR target, with backports to vX.Y and the RC, final, and patch flows.

@DariuszPorowski
DariuszPorowski requested review from a team as code owners December 1, 2026 19:22
@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

  • .github/workflows/upmerge.yaml

Keep edge as the default branch and drop the release-to-edge upmerge.
Release samples now takes the tested edge commit, verifies that it is on
edge, and publishes vX.Y from it plus the release configuration commit.
It no longer changes the default branch or needs Administration access.

Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant