Skip to content

[docs] Document following public rewrites in the internal mirror - #40532

Merged
kubaflo merged 6 commits into
mainfrom
kubaflo-fix-inflight-feed-candidate-builds
Nov 23, 2026
Merged

kubaflo merged 6 commits into
mainfrom
kubaflo-fix-inflight-feed-candidate-builds

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

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

main is where docs/ReleaseBranchWorkflow.md and the release automation it describes live; #40297, #40312 and #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.

kubaflo and others added 5 commits November 17, 2026 22:30
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>
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 23, 2026 13:35 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40532

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40532"

@azure-pipelines

Copy link
Copy Markdown
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.

@kubaflo

kubaflo commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

/review expert-review-with-gate

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Warning

Your /review gate couldn't start due to a transient error triggering the pipeline. The command was left unacknowledged so scheduled recovery can retry it automatically; you can also comment /review gate again in a minute.

@github-actions github-actions Bot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 23, 2026

@github-actions github-actions Bot 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.

Expert Review — 0 findings

Reviewed commit c8f34ad.

@kubaflo
kubaflo marked this pull request as ready for review November 23, 2026 18:40
Copilot AI balanced review requested due to automatic review settings November 23, 2026 18:40
@kubaflo

kubaflo commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

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.

🔵 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 followRewrites opt-in for candidate lanes and inflight/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

@kubaflo

kubaflo commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

/review expert-review-with-gate

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Warning

Your /review gate couldn't start due to a transient error triggering the pipeline. The command was left unacknowledged so scheduled recovery can retry it automatically; you can also comment /review gate again in a minute.

@github-actions github-actions Bot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 23, 2026
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>
Copilot AI balanced review requested due to automatic review settings November 23, 2026 18:57

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.

🔵 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

@dalexsoto dalexsoto left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Stamping as requested by @kubaflo; no code review performed.

@kubaflo

kubaflo commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

/review expert-review

@kubaflo
kubaflo merged commit 6ec7b3e into main Nov 23, 2026
6 of 8 checks passed
@kubaflo
kubaflo deleted the kubaflo-fix-inflight-feed-candidate-builds branch November 23, 2026 20:22
devanathan-vaithiyanathan pushed a commit to devanathan-vaithiyanathan/maui that referenced this pull request Nov 24, 2026
…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>
HarishwaranVijayakumar pushed a commit to HarishwaranVijayakumar/maui that referenced this pull request Nov 24, 2026
…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>
@kubaflo kubaflo added this to the .NET 11 SR2 milestone Nov 24, 2026
KarthikRajaKalaimani pushed a commit to KarthikRajaKalaimani/maui that referenced this pull request Nov 26, 2026
…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>
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.

3 participants