Repository navigation
[docs] Document following public rewrites in the internal mirror - #40532
Conversation
The hourly "Prepare signed release publication" run threw on the SR1 receipt: 11.0.10 is already published, but the reconciler re-verified the old prepared commits against net11 (force-pushed since) and failed `git merge-base`. A lane whose stable, non-draft GitHub Release is tagged at the exact live release head with matching eng/Versions.props is now reported as `published` and skipped before any signing, dispatch or ancestry re-verification. The nightly-mirror job also failed every hour with TF400813 because the federated identity is not onboarded to dnceng. It is now opt-in through the RELEASE_NIGHTLY_MIRROR_ENABLED repository variable; the dnceng dotnet-mirroring configuration fast-forwards the candidate instead. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Resolve the receipt generation's reviewed servicing source before the published shortcut, so a superseding candidate generation still gets its servicing PR prepared. Report a lane as published only when the tagged live release head has exactly the tree of that generation's reviewed servicing merge; a tree mismatch returns before any GitHub Release lookup. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Candidate nightlies (candidate/<band>-srN) now publish to the production .NET 11.0.1xx SDK channel, but the branch classification policy still listed only main, release/*, internal/release/*, netN.0 and inflight/current. Arcade's production-channel validation therefore reported "Branch 'candidate/11.0.1xx-sr2' is not classified as a production branch" during promotion of official build 20261117.6 (BAR 341936). It is an audit-only warning today, but enforcement would block candidate nightly publication. Add candidate/* to the production ruleset. Arcade matches '<prefix>/*' patterns by prefix, so every future candidate SR is covered. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Fast-forward mirroring alone stops at a public rebase of a release lane. Document that the candidate lanes and inflight/current must also be listed under the opt-in dotnet-mirroring followRewrites patterns, which reset the internal branch with a leased push only when its tip was a published tip of the same public branch, and that only unverifiable tips still need a maintainer's leased internal sync. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40532Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40532" |
|
Azure Pipelines: 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
/review expert-review-with-gate |
|
Warning Your |
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit c8f34ad.
|
@dalexsoto stamp |
There was a problem hiding this comment.
🔵 Needs a closer look
The documented followRewrites behavior depends on internal dotnet-mirroring PR 69136, whose rewrite-safety implementation and deployment are outside the supplied evidence and require maintainer confirmation before merging.
No open issues 🎉
What changed in this PR
Updates the release workflow documentation to explain how the internal mirror can follow public branch rewrites, helping prevent stale sources in official nightly builds.
Changes:
- Documents the required
followRewritesopt-in for candidate lanes andinflight/current. - Explains the leased-push safeguard: the internal tip must be verified as a previously published tip of the same public branch.
- Retains manual verification and leased sync when automatic verification fails.
| File | Description |
|---|---|
| docs/ReleaseBranchWorkflow.md | Clarifies automatic rewrite handling and the manual recovery fallback for internal mirroring. |
Review effort: Balanced
|
/review expert-review-with-gate |
|
Warning Your |
The net11 review lane and the inflight/<band>-srN staging lanes aren't mirrored because official nightlies build only from the candidate, so the mirroring paragraph no longer lists the legacy inflight/current branch. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The rewrite-recovery safeguards and candidate-only opt-in depend on unavailable internal dotnet-mirroring PRs 68907/69136, requiring maintainer verification of their implementation and deployment contracts before approval.
No open issues 🎉
Review effort: Balanced
|
/review expert-review |
…net#40532) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). `main` is where `docs/ReleaseBranchWorkflow.md` and the release automation it describes live; dotnet#40297, dotnet#40312 and dotnet#40347 also targeted `main`. For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. ### Description of Change Official nightlies build from the internal mirror of the current candidate lane, `candidate/11.0.1xx-sr2`. Candidate lanes are rebased on GitHub, and fast-forward mirroring can't follow a force push. The internal `candidate/11.0.1xx-sr2` is stuck at `b45b3b4`, a published GitHub tip from 2026-11-18, while GitHub has force-pushed it three times since and is at `7b4e8e5`, so nightlies build stale sources. The internal dnceng `dotnet-mirroring` PR 68907 mirrors the MAUI candidate lanes, and PR 69136 adds an opt-in `followRewrites` list that opts in only those lanes. When the public tip of a listed fast-forward branch no longer descends from the internal tip, the mirror resets the internal branch to the public tip with a leased push. It does this only when the GitHub repository activity shows that the internal tip was once a published tip of the same branch, so no internal-only commit can be dropped. Otherwise it still files the mirroring issue. The `net11` review lane and the `inflight/<band>-srN` staging lanes aren't mirrored, because nightlies build only from the candidate. `docs/ReleaseBranchWorkflow.md` said the mirroring "never force-pushes" and that every public rebase needs a maintainer's leased internal sync. It now requires the `followRewrites` opt-in for the candidate lanes, keeps the manual leased sync only for tips that can't be verified, and states which lanes aren't mirrored. This is a documentation-only change (`git diff --check` is clean). The behavior it describes takes effect once those `dotnet-mirroring` PRs are merged and deployed. ### Issues Fixed None. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…net#40532) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). `main` is where `docs/ReleaseBranchWorkflow.md` and the release automation it describes live; dotnet#40297, dotnet#40312 and dotnet#40347 also targeted `main`. For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. ### Description of Change Official nightlies build from the internal mirror of the current candidate lane, `candidate/11.0.1xx-sr2`. Candidate lanes are rebased on GitHub, and fast-forward mirroring can't follow a force push. The internal `candidate/11.0.1xx-sr2` is stuck at `b45b3b4`, a published GitHub tip from 2026-11-18, while GitHub has force-pushed it three times since and is at `7b4e8e5`, so nightlies build stale sources. The internal dnceng `dotnet-mirroring` PR 68907 mirrors the MAUI candidate lanes, and PR 69136 adds an opt-in `followRewrites` list that opts in only those lanes. When the public tip of a listed fast-forward branch no longer descends from the internal tip, the mirror resets the internal branch to the public tip with a leased push. It does this only when the GitHub repository activity shows that the internal tip was once a published tip of the same branch, so no internal-only commit can be dropped. Otherwise it still files the mirroring issue. The `net11` review lane and the `inflight/<band>-srN` staging lanes aren't mirrored, because nightlies build only from the candidate. `docs/ReleaseBranchWorkflow.md` said the mirroring "never force-pushes" and that every public rebase needs a maintainer's leased internal sync. It now requires the `followRewrites` opt-in for the candidate lanes, keeps the manual leased sync only for tips that can't be verified, and states which lanes aren't mirrored. This is a documentation-only change (`git diff --check` is clean). The behavior it describes takes effect once those `dotnet-mirroring` PRs are merged and deployed. ### Issues Fixed None. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…net#40532) <!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- Open .NET 11 fix PRs against net11 for review; target main for next-major features. After approval, a maintainer manually retargets the fix PR to the active inflight branch and merges it directly there. Do not merge individual fixes into net11. Bots must not retarget or merge. Candidate integration into net11 and release/* changes are separate, explicitly coordinated release work. --> ### Target Branch | This PR is for | Initial base | | --- | --- | | New features, API changes, or .NET 12 work (including .NET 12 fixes) | `main` | | .NET 11 servicing fixes | `net11`, for review | | Older servicing, release integration, infrastructure, or documentation | The branch designated for that work | - [x] I selected the applicable base branch using the [contribution guide](https://github.com/dotnet/maui/blob/main/.github/CONTRIBUTING.md#choose-your-pr-base-before-starting). `main` is where `docs/ReleaseBranchWorkflow.md` and the release automation it describes live; dotnet#40297, dotnet#40312 and dotnet#40347 also targeted `main`. For .NET 11 fixes, only a maintainer retargets the approved PR to the active inflight lane and merges it after CI validates that final base. Do not merge individual fixes directly into `net11`; agents must not retarget or merge. ### Description of Change Official nightlies build from the internal mirror of the current candidate lane, `candidate/11.0.1xx-sr2`. Candidate lanes are rebased on GitHub, and fast-forward mirroring can't follow a force push. The internal `candidate/11.0.1xx-sr2` is stuck at `b45b3b4`, a published GitHub tip from 2026-11-18, while GitHub has force-pushed it three times since and is at `7b4e8e5`, so nightlies build stale sources. The internal dnceng `dotnet-mirroring` PR 68907 mirrors the MAUI candidate lanes, and PR 69136 adds an opt-in `followRewrites` list that opts in only those lanes. When the public tip of a listed fast-forward branch no longer descends from the internal tip, the mirror resets the internal branch to the public tip with a leased push. It does this only when the GitHub repository activity shows that the internal tip was once a published tip of the same branch, so no internal-only commit can be dropped. Otherwise it still files the mirroring issue. The `net11` review lane and the `inflight/<band>-srN` staging lanes aren't mirrored, because nightlies build only from the candidate. `docs/ReleaseBranchWorkflow.md` said the mirroring "never force-pushes" and that every public rebase needs a maintainer's leased internal sync. It now requires the `followRewrites` opt-in for the candidate lanes, keeps the manual leased sync only for tips that can't be verified, and states which lanes aren't mirrored. This is a documentation-only change (`git diff --check` is clean). The behavior it describes takes effect once those `dotnet-mirroring` PRs are merged and deployed. ### Issues Fixed None. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. --> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Target Branch
mainnet11, for reviewmainis wheredocs/ReleaseBranchWorkflow.mdand the release automation it describes live; #40297, #40312 and #40347 also targetedmain.For .NET 11 fixes, only a maintainer retargets the approved PR to the active
inflight lane and merges it after CI validates that final base. Do not merge
individual fixes directly into
net11; agents must not retarget or merge.Description of Change
Official nightlies build from the internal mirror of the current candidate lane,
candidate/11.0.1xx-sr2. Candidate lanes are rebased on GitHub, and fast-forward mirroring can't follow a force push. The internalcandidate/11.0.1xx-sr2is stuck atb45b3b4, a published GitHub tip from 2026-11-18, while GitHub has force-pushed it three times since and is at7b4e8e5, so nightlies build stale sources.The internal dnceng
dotnet-mirroringPR 68907 mirrors the MAUI candidate lanes, and PR 69136 adds an opt-infollowRewriteslist that opts in only those lanes. When the public tip of a listed fast-forward branch no longer descends from the internal tip, the mirror resets the internal branch to the public tip with a leased push. It does this only when the GitHub repository activity shows that the internal tip was once a published tip of the same branch, so no internal-only commit can be dropped. Otherwise it still files the mirroring issue. Thenet11review lane and theinflight/<band>-srNstaging lanes aren't mirrored, because nightlies build only from the candidate.docs/ReleaseBranchWorkflow.mdsaid the mirroring "never force-pushes" and that every public rebase needs a maintainer's leased internal sync. It now requires thefollowRewritesopt-in for the candidate lanes, keeps the manual leased sync only for tips that can't be verified, and states which lanes aren't mirrored.This is a documentation-only change (
git diff --checkis clean). The behavior it describes takes effect once thosedotnet-mirroringPRs are merged and deployed.Issues Fixed
None.