Repository navigation
[release] Review servicing configuration on staging before manual cut - #40099
Conversation
Target the servicing PR at automation/release and require its exact human-reviewed merge before accepting the manual real release cut. Preserve reproducible receipts, independent normalization and next-lane progress, and exact-source signing and mirror safeguards. 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 -- 40099Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40099" |
This comment has been minimized.
This comment has been minimized.
|
@dalexsoto stamp |
Skill Validation Results
✅ Skill Validation Results —
|
There was a problem hiding this comment.
🟡 Changes recommended
The retained servicing source excludes the PR triggers needed to start maui-pr automatically, while staging-first fixtures are broken and reviewed-servicing validation lacks regression coverage.
3 open issues
What changed in this PR
Moves servicing configuration review before the manual release cut, extending the staging workflow introduced in #40087 and #40094 while keeping next-cycle preparation independent.
Changes:
- Prepare servicing PRs against staging and validate the reviewed merge, exact manual cut, and internal mirror before signing.
- Add staging targets to CI triggers and protected-base reviewer routing.
- Update sandbox behavior, generated PR guidance, and release/readiness documentation.
| File | Description |
|---|---|
eng/scripts/Sync-ReleaseTrackingPullRequests.ps1 |
Updates generated handoff instructions and diagrams. |
eng/scripts/Sync-ReleasePublishing.ps1 |
Prepares pre-cut servicing PRs and validates publication sources. |
eng/scripts/Sync-ReleaseNextLanes.ps1 |
Accepts verified servicing advancement during next-cycle preparation. |
eng/scripts/MauiReleaseConfiguration.psm1 |
Adds deterministic servicing preparation and merge validation. |
eng/scripts/Invoke-ReleaseRolloverTrial.ps1 |
Enables sandbox servicing PR preparation. |
eng/scripts/Get-ReleaseRolloverPlan.ps1 |
Updates reported release prerequisites. |
eng/pipelines/pr-gate-setup.yml |
Allows strictly named, protected staging targets. |
eng/pipelines/ci.yml |
Adds staging PR triggers. |
eng/pipelines/ci-uitests.yml |
Adds staging UI-test PR triggers. |
eng/pipelines/ci-device-tests.yml |
Adds staging device-test PR triggers. |
eng/pipelines/ci-copilot.yml |
Extends reviewer routing and snapshot validation to staging. |
docs/ReleaseProcess.md |
Documents servicing review before the manual cut. |
docs/ReleaseBranchWorkflow.md |
Revises staging, publication, and rollout guidance. |
.github/workflows/release-publishing.yml |
Reacts to merged staging PRs. |
.github/skills/release-readiness/SKILL.md |
Updates readiness guidance for the new handoff. |
.github/skills/release-readiness/scripts/Get-ReleaseReadiness.ps1 |
Adjusts configured-train metadata guidance and next actions. |
.github/skills/release-readiness/references/methodology.md |
Distinguishes staging review from historical release workflows. |
.github/scripts/Review-PR.ps1 |
Recognizes versioned staging review targets. |
.github/docs/maui-ci-facts.md |
Aligns CI documentation with the staging-first process. |
Review effort: Balanced
| New-MauiReleaseContentCommit -RepositoryPath $RepositoryPath -Parent $LanePlan.mergeSha ` | ||
| -Changes @{ 'eng/Versions.props' = $content } -Message "Configure release $ReleaseBand SR$Sr for servicing" |
| if ((Invoke-MauiReleaseGit -RepositoryPath $RepositoryPath -Arguments @( | ||
| 'rev-parse', "${Commit}^{tree}")).Trim() -cne | ||
| (Invoke-MauiReleaseGit -RepositoryPath $RepositoryPath -Arguments @( | ||
| 'rev-parse', "$($head.sha)^{tree}")).Trim()) { | ||
| throw 'The reviewed servicing merge contains changes outside the prepared configuration.' |
| } | ||
| $results.Add($entry) | ||
| $fixes = @(Get-PublishingRefs $roles.fixBranch) | ||
| if (!$staging.Count) { continue } |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…40107) <!-- 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). 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 <!-- Enter description of the fix in this section --> Make the latest eligible human candidate merge authoritative over stale release-cycle bookkeeping. This infrastructure follow-up to #40099 addresses the #40104 replay blocked by historical normalization #40095. Normalization, servicing and canonical-state PR heads are scoped to the full candidate merge SHA, so older closed/merged PR routes cannot veto the new source. Same-source legacy routes remain compatible; identical-content state proposals also require matching source provenance. New receipts retain reproducible predecessor receipts in their commit ancestry. Exact-SHA leases replace only verified older generated receipt/staging/next-lane outputs; same-source retries remain idempotent. Unrelated edits and concurrent newer sources are preserved, with explicit retryable failures. Publication rechecks the receipt and newer reachable human candidate merges before creating servicing PRs or dispatching signing/preparation. The corrected release order is unchanged: review and merge servicing against staging using **Create a merge commit**, then manually cut the real release at that exact reviewed merge. No real release refs are created or reset, no PRs are auto-merged, and human-review, exact-parent/tree, manual-cut and internal-mirror safeguards remain enforced. Actual Git/API errors are not ignored or converted into success. **Validation** - `pwsh -NoProfile -File /Users/kubaflo/.copilot/session-state/3312390e-844a-44f1-884c-2ea217514ae1/files/replay-source-generations.ps1 -RepositoryPath "$PWD"` — passed all 14 isolated scenarios before and after pushing. Uses production functions/coordinators, pinned #40104/#40095 evidence, and real session-local bare Git transport; remote GitHub/Azure writes are intercepted. Covers the upstream failure, actual current receipt recovery, absent receipt creation, stale reviewed staging/next-lane/state replacement, same-source retries, three generations of receipt ancestry, unrelated edits, a real rejected concurrent lease, explicit API/transport failures, staging-servicing handoff with an old or absent real release, mutated staging, nonhuman approval, wrong cut/mirror rejection, exact-cut progression, and newer-source fences. Twelve local Git writes; zero real GitHub writes or Azure dispatches in the replay. - `pwsh -NoProfile -File eng/scripts/MauiReleaseConfiguration.Tests.ps1 -OutputDirectory /Users/kubaflo/.copilot/session-state/3312390e-844a-44f1-884c-2ea217514ae1/files/generation-configuration-final` — 150 assertions passed. - `pwsh -NoProfile -File .github/skills/release-readiness/tests/Test-ReleaseReadiness.ps1 -SkipE2E` — 2,358 passed, 0 failed on the pushed commit. - `Invoke-Pester -Path .github/scripts/ReleaseNextLanes.Tests.ps1,.github/scripts/ReleasePublishing.Tests.ps1 -Output Detailed -PassThru` — 13 passed, 12 failed. The same 12 named failures reproduce on unchanged main at `c7e8239c3c0e40b9f65ce0ea5cd4782b780119bc`; these fixtures predate the staging handoff/current entrypoint behavior. These suites are **not green**. No repository tests were added or edited. - PowerShell parser checks for all three modified source files and `git diff --check` — passed. **Limitations:** no production reconciliation, production ref/PR mutation, real signing or publication dispatch was used for validation. Exact-cut signing/preparation progression is verified only up to intercepted remote boundaries. Hosted PR CI is not yet verified. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> N/A — maintainer-directed release-infrastructure follow-up to #40099; reproduces the historical-route failure following candidate #40104 and normalization #40095. <!-- Verify the target branch follows the release workflow in docs/ReleaseBranchWorkflow.md. Infrastructure and documentation changes should target the branch where they apply. -->


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 reviewThis is coordinated release-automation infrastructure work targeting trusted
main, not a .NET 11 product fix.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
Correct the release handoff order:
automation/release/<band>-srNat the approved candidate merge.release/<band>-srNat that exact reviewed servicing merge commit.Preserve reproducible receipts, same-repository human approval, deterministic prepared heads, two ordered merge parents and exact-tree validation. Reject mutated staging, wrong cuts and unreviewed descendants. Automation never creates or moves real release refs, merges PRs or weakens protections.
Keep reviewed
net11normalization, next-lane preparation and canonical-state progression independent of servicing review and the real release cut. Update coupled workflow triggers, strict staging CI/reviewer routing, sandbox entrypoint, generated PR guidance and release/readiness documentation. Upload the prepared servicing object through an owned temporary ref before create-only servicing-head creation.Validation
pwsh -NoProfile -File eng/scripts/MauiReleaseConfiguration.Tests.ps1 -OutputDirectory /Users/kubaflo/.copilot/session-state/3312390e-844a-44f1-884c-2ea217514ae1/files/configuration-final— 150 assertions passed.pwsh -NoProfile -File .github/skills/release-readiness/tests/Test-ReleaseReadiness.ps1 -SkipE2E— 2,358 passed, 0 failed.actionlint .github/workflows/release-publishing.yml— passed. Eight changed PowerShell files parsed; six YAML documents parsed; 39 embedded Bash scripts passedbash -n;git diff --checkpassed.ReleaseNextLanes.Tests.ps1Pester suite — 13 passed / 6 failed, with the exact same six failures reproduced on unchanged upstreamab8f7a92d3dd7fdb0e4f0319b58e7a30aad3bb75. Five reference the already-removedSync-PostCutServicingPr; one expects automatic real-release creation. No pipeline/workflow tests were added or edited.Limits: No production refs or existing PRs were mutated for validation. Hosted CI/signing, an actual GitHub servicing merge and an actual manual release cut were not exercised. This PR implements the handoff; local replay evidence is not deployed-production certification.
Issues Fixed
N/A — user-directed correction to the release workflow order following #40087 and #40094.