Repository navigation
feat(ci): Sync master into release/stable/7.0 - #26024
Conversation
Adds a temporary stabilization target to the nightly master-sync job. PR #25994 (7.1-dev version bump) is recorded as merged with -s ours so it never reaches the release branch. Clear STABILIZATION_BRANCH once 7.0 ships. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtxsNdxekRBBuN5UKmF
|
Claude finished @MartinZikmund's task in 36s —— View job Review of #26024: sync master into
|
There was a problem hiding this comment.
🔵 Needs a closer look
Release-branch auto-merge needs maintainer validation in Actions because dry-run skips merge, push, and PR-state handling, leaving token/workflow permissions and partial-conflict recovery unverified.
No open issues 🎉
What changed in this PR
Extends the nightly master-sync automation to temporarily sync master into release/stable/7.0, addressing #26023 while excluding the post-branch version bump in #25994.
Changes:
- Adds configurable stabilization targets, with a warning and skip when the branch is missing.
- Records excluded PRs as merged without applying their changes, preserving ancestry for later syncs.
- Handles conflicts before excluded commits and reports partial progress so subsequent runs can continue from human resolutions.
| File | Description |
|---|---|
.github/workflows/master-sync.yml |
Adds stabilization branch selection, PR exclusions, staged merges, and progress reporting. |
Review effort: Balanced
An exclusion added after the sync branch already took the PR in was ignored, as were the no-op guard and human-work base. Detect it and rebuild from the target tip. Excluded PRs are now comma-separated. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtxsNdxekRBBuN5UKmF
|
Claude finished @MartinZikmund's task in 30s —— View job Review of #26024: sync master into
|
There was a problem hiding this comment.
🟡 Changes recommended
A critical conflict-handling flaw can preserve committed conflict markers after an earlier human resolution, allowing a later clean merge to mark the PR ready and enable auto-merge without resolving the latest conflict.
1 open issue
Review effort: Balanced
- Order excluded merges by ancestry, not commit date - Keep a sync PR quarantined while bot-committed conflict markers sit on top of earlier human work (also affected feature syncs) - Skip empty stabilization lines in the sync PR body Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TXMNtxsNdxekRBBuN5UKmF
|
Claude finished @MartinZikmund's task in 27s —— View job Review of #26024: sync master into
|
There was a problem hiding this comment.
🔵 Needs a closer look
A maintainer should verify the initial Actions run because local simulations do not validate GitHub permissions or the release-sync path’s force-push, draft, and auto-merge transitions.
No open issues 🎉
1 resolved since last review
Review effort: Balanced

GitHub Issue: closes #26023
PR Type:
🤖 Project automation
What changed? 🚀
The nightly
master-syncjob now also syncs a temporary release stabilization target. It's set torelease/stable/7.0for now. The job opens or updates onechore(automation): Sync master → release/stable/7.0PR with everything onmasterthat the release branch is missing. It behaves exactly like thefeature/*sync PRs: auto-merge when clean, a draft plus a ping on conflicts, and human resolutions are kept.#25994 is excluded (version bump to
7.1-devafter branching). Before mergingmaster, the job:git merge -s ours, so its changes are dropped but it stays in the ancestry,masteras usual.Because #25994 stays in the ancestry, later nightly runs only bring in what's new. They never try to re-apply the bump, and nobody has to revert it in each sync PR.
Config: two values at the top of the workflow:
When 7.0 ships, set
STABILIZATION_BRANCH: ''. For 7.1, point it atrelease/stable/7.1and list that release's version-bump PR. If the branch doesn't exist, the job shows a warning and skips it.Excluding a PR after the sync has started:
git revert -m 1 <merge sha>). Later syncs won't bring it back.Conflict quarantine (also applies to
feature/*syncs): every bot commit that contains conflict markers carries aMaster-Sync-Conflict: unresolvedtrailer. Normally a sync branch with human work on it is reused as the base. If the newest bot conflict commit has no human commit on top, the run instead keeps the PR as draft, turns auto-merge off and stops. Before this, a later clean merge could un-draft a PR that still had committed markers in it.Validation
origin/release/stable/7.0+ the 3 merge steps above):master: the only difference isversion.json(release keeps its 7.0 version) ✅masteris an ancestor of the result, so the next run is a no-op ✅masternormally is flagged and rebuilt ✅; one built with the-s oursexclusion is left alone ✅--no-walk=sortedorder was wrong) ✅. Bot markers on top of human work stay quarantined ✅. A later human resolution, or a branch with no conflict commits, lets the run continue ✅. Feature-sync PR bodies are unchanged when there are no stabilization lines ✅actionlintclean.workflow_dispatchwithdry_run: truefirst.Notes
release/stable/7.0allows merge commits. It also has a ruleset "restrict updates" rule, which may block the bot's auto-merge unless the actor can bypass it. Check the first real sync PR; if it can't land, a maintainer merges it or the bot gets bypass.The release branch's existing protection (review + CI) still gates the auto-merge.
If
masterand the release branch have both changed a workflow file, the push needsSYNC_BOT_TOKEN. The workflow header already covers this, and the summary names the cause if it happens.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01TXMNtxsNdxekRBBuN5UKmF