Skip to content

[release] Review servicing configuration on staging before manual cut - #40099

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-staging-servicing-handoff
Nov 9, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-staging-servicing-handoff

Conversation

@kubaflo

@kubaflo kubaflo commented Nov 9, 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

This 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:

  1. Candidate integration creates automation/release/<band>-srN at the approved candidate merge.
  2. Publication automatically opens a servicing/stable configuration PR against that staging branch, even when the real release is absent or an older mismatched real ref exists.
  3. A maintainer reviews required CI and merges that PR using Create a merge commit.
  4. The maintainer manually creates release/<band>-srN at that exact reviewed servicing merge commit.
  5. Publication validates the receipt, reviewed merge, exact manual cut and matching internal mirror before signed-build dispatch. It does not open a second post-cut servicing PR.

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 net11 normalization, 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.
  • Session-only isolated runtime replays — 22 publishing/completion scenarios passed, including upstream baseline, absent/old real refs, idempotent staging PR preparation, exact cut/mirror dispatch boundary, and refusal paths. Full next-lane/canonical-state replay also passed after reviewed staging advancement. Both replay scripts were rerun successfully after pushing this commit; transport used a local bare Git fixture, not production writes.
  • actionlint .github/workflows/release-publishing.yml — passed. Eight changed PowerShell files parsed; six YAML documents parsed; 39 embedded Bash scripts passed bash -n; git diff --check passed.
  • Existing ReleaseNextLanes.Tests.ps1 Pester suite — 13 passed / 6 failed, with the exact same six failures reproduced on unchanged upstream ab8f7a92d3dd7fdb0e4f0319b58e7a30aad3bb75. Five reference the already-removed Sync-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.

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>
Copilot AI balanced review requested due to automatic review settings November 9, 2026 21:48
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 9, 2026 21:48 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 9, 2026

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 -- 40099

Or

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

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 9, 2026 21:48 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@kubaflo

kubaflo commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 9, 2026 21:49 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Skill Validation Results

@kubaflo — new skill validation results are available based on this last commit: a675a12.
To request a fresh validation after new comments or commits, comment /evaluate-skills.

Overall Passed Static Passed LLM Skipped Skills 28 Agents 7

✅ Skill Validation Results — a675a12 · [release] Review servicing configuration on staging before manual cut · 2026-11-09T21:50:02Z

✅ Static Checks Passed

Skills: 28 | Eval specs linted: 17

Full lint output
── .github/skills/agentic-labeler/tests/eval.vally.yaml
Vally collects pseudonymous usage telemetry (command name, version, outcome, duration, persistent device identifier (when available), and coarse OS/runtime info) to improve the product. No prompts, datasets, file paths, or arguments are collected.
Opt out any time by setting VALLY_TELEMETRY_OPTOUT=1 or DO_NOT_TRACK=1.
Learn more: https://aka.ms/vally/telemetry
✔ .github/skills/agentic-labeler/tests/eval.vally.yaml is valid
── .github/skills/analyze-sessions/tests/eval.vally.yaml
✔ .github/skills/analyze-sessions/tests/eval.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.ownership.vally.yaml
✔ .github/skills/ci-fix/tests/eval.ownership.vally.yaml is valid
── .github/skills/ci-fix/tests/eval.vally.yaml
✔ .github/skills/ci-fix/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/eval.inline-findings.vally.yaml
✔ .github/skills/code-review/tests/eval.inline-findings.vally.yaml is valid
── .github/skills/code-review/tests/eval.producer-trace.vally.yaml
✔ .github/skills/code-review/tests/eval.producer-trace.vally.yaml is valid
── .github/skills/code-review/tests/eval.trim-aot.vally.yaml
✔ .github/skills/code-review/tests/eval.trim-aot.vally.yaml is valid
── .github/skills/code-review/tests/eval.vally.yaml
✔ .github/skills/code-review/tests/eval.vally.yaml is valid
── .github/skills/code-review/tests/hermeticity.vally.yaml
✔ .github/skills/code-review/tests/hermeticity.vally.yaml is valid
── .github/skills/code-review/tests/soak.capability.vally.yaml
✔ .github/skills/code-review/tests/soak.capability.vally.yaml is valid
── .github/skills/evaluate-pr-tests/tests/eval.vally.yaml
✔ .github/skills/evaluate-pr-tests/tests/eval.vally.yaml is valid
── .github/skills/pr-review/tests/eval.gh-auth.vally.yaml
✔ .github/skills/pr-review/tests/eval.gh-auth.vally.yaml is valid
── .github/skills/review-test-failures/tests/eval.vally.yaml
✔ .github/skills/review-test-failures/tests/eval.vally.yaml is valid
── .github/skills/try-fix/tests/eval.restore.vally.yaml
✔ .github/skills/try-fix/tests/eval.restore.vally.yaml is valid
── .github/skills/try-fix/tests/eval.vally.yaml
✔ .github/skills/try-fix/tests/eval.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.protocol.vally.yaml is valid
── .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml
✔ .github/skills/verify-tests-fail-without-fix/tests/eval.vally.yaml is valid

⏭️ LLM Evaluation: Skipped

No changed skills with eval specs found.

🔍 Full results and investigation steps

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 9, 2026 21:52 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 9, 2026 21:53 — with GitHub Actions Inactive
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 9, 2026 21:54 — with GitHub Actions Inactive

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.

🟡 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

Comment on lines +659 to +660
New-MauiReleaseContentCommit -RepositoryPath $RepositoryPath -Parent $LanePlan.mergeSha `
-Changes @{ 'eng/Versions.props' = $content } -Message "Configure release $ReleaseBand SR$Sr for servicing"
Comment on lines +694 to +698
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 }
@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

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

This comment has been minimized.

@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 merged commit c7e8239 into main Nov 9, 2026
30 of 51 checks passed
@kubaflo
kubaflo deleted the kubaflo-staging-servicing-handoff branch November 9, 2026 22:17
@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 9, 2026
kubaflo added a commit that referenced this pull request Nov 10, 2026
…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.
-->
@kubaflo kubaflo added this to the .NET 11 SR2 milestone Nov 24, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — a675a123 Deployed Nov 9, 2026 by kubaflo via conclusion #2846
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.

4 participants