Skip to content

[release] Derive prerelease labels and SR stabilization from source branches - #40042

Merged
kubaflo merged 2 commits into
mainfrom
kubaflo-branch-derived-release-labels
Nov 7, 2026
Merged

kubaflo merged 2 commits into
mainfrom
kubaflo-branch-derived-release-labels

Conversation

@kubaflo

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

Description of Change

Derive MAUI's prerelease label and default package stabilization from the full BUILD_SOURCEBRANCH ref in eng/Versions.props, before Arcade evaluates package versions.

User-directed scope expansion: the original labels-only commit was followed by the request to automate the remaining StabilizePackageVersion=true flip: "i wish this has been automated as well". This PR now has two normal commits, with no amend, rebase, or force-push: original label policy e58dd764d38552dfa05d6c0b04ed6401b2195acb, followed by automatic SR stabilization 8d92a2dda43d96f2052f633c522a5014a00cbeca. It still targets literal main; the original base is 171c30d4ae467b41c51b2bdda866113508ad2d9a.

Full source ref Default label Default stabilization
refs/heads/main, refs/heads/net11, refs/heads/net11.0, candidate refs, unknown refs, PR refs, or absent source ref ci.main false
refs/heads/inflight/current ci.inflight false
refs/heads/inflight/<major>.0.<band>xx-sr<N> ci.inflight false
refs/heads/release/<major>.0.<band>xx-sr<N> with effective servicing branding servicing true
Preview/RC/GA release refs, unsupported Preview/RC inflight refs, numeric legacy inflight refs, malformed refs, or sandbox-prefixed refs ci.main false

Numeric components must be positive decimal integers without leading zeros. Patterns match the entire ref with \A/\z; SR0, leading zeros, suffixes, nested refs, wrong casing, and trailing newlines do not match. This classifies the source lane; it does not infer or update SDK bands, product/patch/assembly versions, or prove that branch contents match a release cycle. No local Git discovery or PR-target/source-branch reinterpretation is added.

Stable by default only for servicing-branded strict SR source refs. The existing single StabilizePackageVersion node retains Condition="'$(StabilizePackageVersion)' == ''". Its value evaluates the strict SR ref and effective label together, producing lowercase true or false. It remains after IsServicingBuild and before DotNetFinalVersionKind and workload-version calculation.

  • A recognized SR release ref produces stable packages without a separate flip: IsServicingBuild=true, StabilizePackageVersion=true, DotNetFinalVersionKind=release, and no workload prerelease suffix.
  • Explicit -p:StabilizePackageVersion=false still produces servicing prereleases on SR refs. Explicit true still wins on main, net11, candidate, inflight, or any other ref.
  • Explicit Preview, RC, PR, or other non-servicing labels keep the default stabilization false, even on an SR source ref. Without the effective-label guard, Arcade would strip these explicitly requested prerelease labels. An explicit stabilization true still wins if requested.
  • IsServicingBuild remains governed by its existing rule and explicit overrides, independently of stabilization. For example, SR plus StabilizePackageVersion=false remains a servicing build but produces prerelease packages.

Stable versioning is not publication authorization or evidence of shipment. Signing, manual approval, public publication gates, previous-version testing, and version pins are unchanged. No pipeline configuration, production refs, mirror, release execution, or package publication is changed by this PR. The companion release coordinator must recognize the exact auto-stable policy before skipping a redundant servicing-preparation PR.

The original tightly coupled scheduled-build fix is retained: SetVersions no longer overwrites the label with nightly after Arcade has calculated package/workload versions. Scheduled builds keep the correct source-derived label and stabilization plus the existing ##vso[build.addbuildtag]nightly output.

Validation

On head 8d92a2dda43d96f2052f633c522a5014a00cbeca, 98 actual MSBuild cases / 1,905 property assertions passed, before the follow-up commit and again on the pushed commit. Evaluation uses the actual SDK, workload manifest, and template projects. The complete command/property/item matrix is a session artifact, not a YAML/pipeline test or a new committed test runner.

Exact command, result passed:

python3 /Users/kubaflo/.copilot/session-state/d2e450cf-6eb9-450d-8ea6-4839b4568b1f/files/validate_auto_stable_versions.py
# PASS: 98 actual MSBuild cases; 1905 property assertions; XML parsed.

The runner calls dotnet msbuild with OfficialBuildId=20261107.1, _SkipUpdateBuildNumber=true, the full source ref, and -t:SetVersions, plus evaluation-only and template-selection cases. It asserts label/iteration, PackageVersion, Version, PackageReferenceVersion, IsServicingBuild, stabilization, final-version kind, workload suffix/SDK version, unchanged product/SDK/assembly versions and previous-version testing, publication/signing defaults, and the nightly tag. The single stabilization node and its evaluation order are also checked.

Actual case(s) PackageVersion IsServicingBuild StabilizePackageVersion DotNetFinalVersionKind Workload SDK version
main, net11, net11.0, net12.0, candidate, absent/unknown/malformed/PR refs 11.0.10-ci.main.26557.1 unset false unset 11.0.100-ci.main
inflight/current and strict versioned inflight refs 11.0.10-ci.inflight.26557.1 unset false unset 11.0.100-ci.inflight
strict release/11.0.1xx-sr1, release/10.0.1xx-sr13, release/12.0.2xx-sr10 11.0.10 true true release 11.0.100
SR + explicit stabilization false 11.0.10-servicing.26557.1 true false unset 11.0.100-servicing
main/net11/candidate/inflight + explicit stabilization true 11.0.10 unset true release 11.0.100
Preview/RC/GA refs without label overrides 11.0.10-ci.main.26557.1 unset false unset 11.0.100-ci.main
SR or Preview ref + explicit preview/iteration 3 11.0.10-preview.3.26557.1 unset false unset 11.0.100-preview.3
SR or RC ref + explicit rc/iteration 2 11.0.10-rc.2.26557.1 unset false unset 11.0.100-rc.2
SR/inflight/PR merge ref + explicit PR label 11.0.10-ci.pr40041.26557.1 unset false unset 11.0.100-ci.pr40041
non-SR or malformed ref + explicit servicing label 11.0.10-servicing.26557.1 true false unset 11.0.100-servicing
SR + IsServicingBuild=false 11.0.10 false true release 11.0.100
main + IsServicingBuild=true 11.0.10-ci.main.26557.1 true false unset 11.0.100-ci.main

CLI TRUE/FALSE variants remain authoritative. Explicit Preview/RC plus stabilization true produces stable versions as explicitly requested. Scheduled main, inflight, and SR cases match normal version outputs; scheduled Preview/PR-label and explicit stabilization-false overrides remain prerelease. Evaluation before SetVersions already produces the stable SR result.

Manifest and template projects were separately evaluated for main, inflight, SR, stabilization-false, and Preview override cases. Stable template selections contain no wildcards. With a controlled prerelease logging dependency override, the stable SR template preserves exact 11.0.0-preview.7.1234; an explicit stabilization-false build retains the existing 11.0.0-* floating behavior.

Exact scheduled-tag command, result passed, emitted ##vso[build.addbuildtag]nightly:

dotnet msbuild src/Workload/Microsoft.Maui.Sdk/Microsoft.Maui.Sdk.csproj -nologo -t:SetVersions -v:minimal -p:OfficialBuildId=20261107.1 -p:CI=true -p:BUILD_REASON=Schedule -p:BUILD_SOURCEBRANCH=refs/heads/release/11.0.1xx-sr1 -p:_SkipUpdateBuildNumber=true

git diff --check: passed. git ls-remote origin refs/heads/kubaflo-branch-derived-release-labels: passed, matches 8d92a2dda43d96f2052f633c522a5014a00cbeca. Validation used host SDK 11.0.100-preview.6.26359.118, MSBuild 18.9.0.36018, and repository-pinned Arcade 11.0.0-beta.26514.118; the RTM SDK under global.json tools was not provisioned. No compilation/device builds, signing, release execution, or package publication was performed. No new CI run was manually queued. Results from the earlier labels-only head are not certification of this follow-up or merge readiness.

Upstream overlap / compatibility with #39913

Open and recently merged upstream overlap was checked before each publication, including release/inflight-targeted versioning work. #39774/#39490 are branch-specific stabilization flips, #39473 enables stable GA packaging, and #39805 prepares main for SR1; they are prior art, not duplicate central auto-stable policies. #39913 supplies the companion release infrastructure, not this central policy. The PRs remain intentionally separate.

At published head a484491c9435f3f006006e1f397d0dafd5e56d28, #39913 includes the automatic-policy compatibility from c9097ef73b44a3eb634a1454e9ee84ee85cd607a plus scoped-validation, source, URI, and provenance guards. It strictly recognizes this PR's exact ordered three-label policy and single-node effective-servicing + SR stabilization expression, preserves the raw defaults during phase changes, and skips the redundant servicing-preparation PR only when the policy is recognized and servicingSha equals the approved merge. The coordinator verifies human-managed candidate proof and pins the signed source to the exact approved cut. Legacy separate-PR behavior, public publication approvals, recovery, strict scoped trials, and rejected scoped publication remain supported. Readiness and development-forwarding consumers are adapted. The companion PR has removed its overlapping eng/Versions.props edit.

The parent session reports final persisted local evidence at a484491c9435f3f006006e1f397d0dafd5e56d28: 263 coupled business Pester cases, 150 actual MSBuild assertions, 2,358 readiness cases, and 88 branch-role cases passed. The business coverage includes real Git release cycles, no-redundant-PR behavior, and publication guards; MSBuild coverage includes defaults, Preview/RC, explicit CLI false, and scoped behavior. These are parent-reported results, not additional runs performed by this child. This PR's independently executed 98 actual MSBuild cases / 1,905 assertions remain unchanged.

Hosted evidence for the preceding c9097ef73b44a3eb634a1454e9ee84ee85cd607a head is now available. Release Readiness 42404931455 completed successfully; its raw logs confirm 2,348 / 94 / 88 passed with zero failures, plus 150 actual MSBuild assertions. PowerShell Script Tests 42404931432 reports 2,665 passed and two failed Retina screenshot-cropping tests. Documentation Checks 42404931524 reports seven spelling findings in three files. The parent identifies the two Retina failures and seven documentation findings as unchanged baseline findings; this child verified the raw outcomes but did not independently repeat that baseline comparison. The failing checks are not dismissed or described as green.

New a484491c9435f3f006006e1f397d0dafd5e56d28 hosted validation is pending: Release Readiness 42410685974 and PowerShell Script Tests 42410685901 were observed in_progress. That head's Documentation Checks 42410685857 has already reported failure; this body-only task has not investigated or attributed that newer result. Earlier hosted passes do not certify the final companion head. No all-green or merge-readiness claim is made.

The literal-first-ci.main-leaf consumer finding is addressed in the companion implementation, not proven fixed by #40042 standing alone: the frozen main readiness parser still reads literal metadata until those consumer changes land. The companion changes must be adopted with this policy, and unknown expressions remain rejected rather than executed or treated as boolean evidence. No human-review draft thread has been resolved, and this metadata-only update supplies no new source fix or standalone validation for that finding. This child has not modified #39913, queued a run, or changed any source commit or production ref.

Adopt central policy and compatible infrastructure together in net11 before the .NET 12 cutover, so retained .NET 11 lanes inherit both pieces. This states adoption order, not authorization to merge, retarget, or change main/staging/production refs.

Exact decoded label conditions, in order after literal ci.main, remain:

'$(BUILD_SOURCEBRANCH)' == 'refs/heads/inflight/current' or $([System.Text.RegularExpressions.Regex]::IsMatch('$(BUILD_SOURCEBRANCH)', '\Arefs/heads/inflight/[1-9][0-9]*\.0\.[1-9][0-9]*xx-sr[1-9][0-9]*\z'))
$([System.Text.RegularExpressions.Regex]::IsMatch('$(BUILD_SOURCEBRANCH)', '\Arefs/heads/release/[1-9][0-9]*\.0\.[1-9][0-9]*xx-sr[1-9][0-9]*\z'))

Exact stabilization node, after the unchanged IsServicingBuild rule and before the unchanged DotNetFinalVersionKind rule:

<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">$([System.Text.RegularExpressions.Regex]::IsMatch('$(PreReleaseVersionLabel):$(BUILD_SOURCEBRANCH)', '\Aservicing:refs/heads/release/[1-9][0-9]*\.0\.[1-9][0-9]*xx-sr[1-9][0-9]*\z').ToString().ToLowerInvariant())</StabilizePackageVersion>

Issues Fixed

N/A — user-requested central version-label policy and automatic SR stabilization. Related: #39913; this PR does not close, retarget, merge, or modify it.

Preserve explicit version overrides and stable/publication gates, and retain nightly tags without changing labels after package calculation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d2e450cf-6eb9-450d-8ea6-4839b4568b1f
@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 7, 2026 16:08 — with GitHub Actions Inactive
@github-actions

github-actions Bot commented Nov 7, 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 -- 40042

Or

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

@kubaflo
kubaflo temporarily deployed to copilot-pat-pool November 7, 2026 16:08 — with GitHub Actions Inactive
@azure-pipelines

This comment has been minimized.

@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 7, 2026
@azure-pipelines

This comment has been minimized.

@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 — 2 findings

Reviewed commit e58dd76.

See inline comments for details.

Comment thread eng/Versions.props
<PreReleaseVersionLabel>ci.main</PreReleaseVersionLabel>
<PreReleaseVersionLabel Condition="'$(BUILD_SOURCEBRANCH)' == 'refs/heads/inflight/current'">ci.inflight</PreReleaseVersionLabel>
<PreReleaseVersionLabel Condition="'$(BUILD_SOURCEBRANCH)' == 'refs/heads/inflight/current' or $([System.Text.RegularExpressions.Regex]::IsMatch('$(BUILD_SOURCEBRANCH)', '\Arefs/heads/inflight/[1-9][0-9]*\.0\.[1-9][0-9]*xx-sr[1-9][0-9]*\z'))">ci.inflight</PreReleaseVersionLabel>
<PreReleaseVersionLabel Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(BUILD_SOURCEBRANCH)', '\Arefs/heads/release/[1-9][0-9]*\.0\.[1-9][0-9]*xx-sr[1-9][0-9]*\z'))">servicing</PreReleaseVersionLabel>

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.

[moderate] Backward Compatibility and Migration - Update the existing release-readiness parser for the conditional servicing label. With this policy on release/11.0.1xx-sr1 and StabilizePackageVersion=true as documented, MSBuild selects servicing and produces stable versions, but Get-VersionsPropsState in .github/skills/release-readiness/scripts/Get-ReleaseReadiness.ps1 extracts only the first literal PreReleaseVersionLabel (ci.main). Get-ReleaseShipChecks consequently reports the servicing flip as BLOCKED and instructs the owner to replace the label policy, even for a correctly stabilized SR or its shipped tag. Teach that consumer to recognize the effective branch-derived label without removing the stabilization check; the companion compatibility work described in the PR is not present in this frozen source.

Comment thread eng/Versions.props
<PreReleaseVersionLabel>ci.main</PreReleaseVersionLabel>
<PreReleaseVersionLabel Condition="'$(BUILD_SOURCEBRANCH)' == 'refs/heads/inflight/current'">ci.inflight</PreReleaseVersionLabel>
<PreReleaseVersionLabel Condition="'$(BUILD_SOURCEBRANCH)' == 'refs/heads/inflight/current' or $([System.Text.RegularExpressions.Regex]::IsMatch('$(BUILD_SOURCEBRANCH)', '\Arefs/heads/inflight/[1-9][0-9]*\.0\.[1-9][0-9]*xx-sr[1-9][0-9]*\z'))">ci.inflight</PreReleaseVersionLabel>
<PreReleaseVersionLabel Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(BUILD_SOURCEBRANCH)', '\Arefs/heads/release/[1-9][0-9]*\.0\.[1-9][0-9]*xx-sr[1-9][0-9]*\z'))">servicing</PreReleaseVersionLabel>

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.

[moderate] Regression Prevention and Test Coverage - Persist regression coverage for the branch-label and scheduled-build behavior. This diff adds no tests, and the reported 64-case runner exists only in session artifacts. Existing provisioning tests check SDK pins, while release-readiness fixtures synthesize literal labels rather than evaluate these conditions. No committed assertion distinguishes a valid SR ref from sr0, leading-zero components, extra suffixes or PR refs, or catches restoration of the late scheduled nightly overwrite. Add a matrix evaluating the production properties and SetVersions, including explicit label overrides and CI=true/BUILD_REASON=Schedule, asserting package/workload label consistency and the retained nightly tag.

@MauiBot

This comment has been minimized.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 7, 2026
Default to stable versions only for servicing-branded canonical SR refs, preserve explicit stabilization and prerelease-label overrides, and retain protected publication decisions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: d2e450cf-6eb9-450d-8ea6-4839b4568b1f
@kubaflo kubaflo changed the title [release] Derive prerelease labels from build source branches [release] Derive prerelease labels and SR stabilization from source branches Nov 7, 2026
@kubaflo

kubaflo commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

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

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 release-wide stable-pack default depends on separate #39913 readiness/coordinator updates, requiring release-owner confirmation of deployment order and pinned-SDK signed-package behavior not validated in this snapshot.

No open issues 🎉

What changed in this PR

This PR centralizes .NET MAUI’s branch-based package versioning before Arcade evaluates versions, replacing manual stabilization flips for recognized servicing release branches. Adoption is coordinated with the compatible release infrastructure in #39913; publication and approval gates remain unchanged.

Changes:

  • Derive prerelease labels from full source refs and default servicing-branded SR release builds to stable packages, preserving explicit overrides.
  • Remove the late scheduled-build label override while retaining the nightly build tag.
  • Document branch matching, stabilization defaults, overrides, and local version inspection.
File Description
src/​Workload/​README.md Summarizes stabilization behavior and links to the release policy.
eng/​Versions.targets Removes the scheduled-build prerelease label overwrite.
eng/​Versions.props Adds strict versioned branch matching and automatic SR stabilization.
docs/​ReleaseProcess.md Documents source-ref rules, override precedence, and version inspection.

Review effort: Balanced

@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 7, 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.

@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 — 2 findings

Reviewed commit 8d92a2d.

See inline comments for details.

Comment thread eng/Versions.props
<!-- Enable to remove prerelease label and produce stable package versions. -->
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">false</StabilizePackageVersion>
<!-- SR source refs with servicing branding default to stable packages; explicit overrides still win. -->
<StabilizePackageVersion Condition="'$(StabilizePackageVersion)' == ''">$([System.Text.RegularExpressions.Regex]::IsMatch('$(PreReleaseVersionLabel):$(BUILD_SOURCEBRANCH)', '\Aservicing:refs/heads/release/[1-9][0-9]*\.0\.[1-9][0-9]*xx-sr[1-9][0-9]*\z').ToString().ToLowerInvariant())</StabilizePackageVersion>

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.

[moderate] Backward Compatibility and Migration - Update the release-readiness consumer alongside these computed defaults. Get-VersionsPropsState in .github/skills/release-readiness/scripts/Get-ReleaseReadiness.ps1 extracts the first label (ci.main) and returns this stabilization expression as raw text. Get-ReleaseShipChecks therefore reports an automatically stabilized release/11.0.1xx-sr1 as BLOCKED because it expects literal servicing/true. It also rejects an already-bumped development branch because mainStabilizeOk requires literal false, recommending that owners replace the working policy with literals. Recognize the branch-derived effective values while preserving the stabilization checks; the companion #39913 changes described in the PR are absent from this frozen source.

Comment thread eng/Versions.props
<SdkBandVersion>11.0.100</SdkBandVersion>
<PreReleaseVersionLabel>ci.main</PreReleaseVersionLabel>
<PreReleaseVersionLabel Condition="'$(BUILD_SOURCEBRANCH)' == 'refs/heads/inflight/current'">ci.inflight</PreReleaseVersionLabel>
<PreReleaseVersionLabel Condition="'$(BUILD_SOURCEBRANCH)' == 'refs/heads/inflight/current' or $([System.Text.RegularExpressions.Regex]::IsMatch('$(BUILD_SOURCEBRANCH)', '\Arefs/heads/inflight/[1-9][0-9]*\.0\.[1-9][0-9]*xx-sr[1-9][0-9]*\z'))">ci.inflight</PreReleaseVersionLabel>

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.

[moderate] Regression Prevention and Test Coverage - Commit regression coverage for the branch-label fix and automatic stabilization. This diff adds no tests; existing provisioning tests inspect SDK pins, and release-readiness fixtures synthesize literal labels rather than evaluate this policy. The reported 98-case runner exists only in session artifacts. No committed assertion catches versioned inflight refs reverting to ci.main, malformed refs becoming stable, explicit prerelease overrides losing their label, or restoration of the late scheduled nightly overwrite. Add a matrix evaluating the production properties and SetVersions for valid SR/inflight refs, sr0/leading-zero/suffixed/PR/absent refs, explicit label and stabilization overrides, and scheduled builds; assert package/workload consistency and preservation of the nightly tag.

@MauiBot

MauiBot commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@kubaflo — existing-test verification for commit 8d92a2dd.

Result SKIPPED Platform Android Commit 8d92a2dd


🧪 Gate analysis — click to expand

⚠ Skipped. No runnable PR tests were selected. The fix has not been verified by this gate.

No interpretable test-group summary was produced. No additional test execution is inferred.

PR head: 8d92a2dd.

Without-fix baseline: 171c30d4.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Nov 7, 2026
@kubaflo
kubaflo merged commit 1c4f8b1 into main Nov 7, 2026
39 of 178 checks passed
@kubaflo
kubaflo deleted the kubaflo-branch-derived-release-labels branch November 7, 2026 21:05
kubaflo added a commit that referenced this pull request Nov 8, 2026
…39913)

<!-- 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.
-->

### Description of Change

<!-- Enter description of the fix in this section -->

Document and implement versioned release lanes, **automatic exact cuts,
SR stabilization and next-cycle CI housekeeping**, next tracking PRs,
legacy servicing-PR compatibility, approval-ready signed/publication
preparation, daily forwarding, staged nightly selection and source-aware
readiness.

> [!IMPORTANT]
> **Once the compatible policy and coordinator are deployed, a
human-approved two-parent candidate merge into net11 automatically cuts
the release, selects stable SR packages without an extra flip PR,
restores next-cycle net11 CI metadata and creates the next
candidate/inflight pair and draft PRs.**
>
> Legacy sources still receive a separate reviewed servicing PR, never
auto-merged. Signing verifies the approved candidate cut for
automatic-policy releases, or the reviewed legacy servicing merge, plus
its exact internal mirror. Canonical preparation uses
`pushPackages=false`; public publishing, promotion, protections and
external approvals remain separately gated.

#### Fix review and branch roles

Individual .NET 11 fix PRs initially target **net11 for review**. After
approval, a maintainer manually retargets to the active versioned
inflight branch, validates final-base CI and merges there. Bots neither
retarget nor merge individual fixes, and those fixes do not merge
directly into net11. Candidate integration is separate release work.

```mermaid
flowchart LR
    Fix["Fix PR: review against net11"] --> Approval["Human approval"]
    Approval -->|Maintainer manually retargets and merges| Inflight["inflight/11.0.1xx-sr2"]
    Candidate["candidate/11.0.1xx-sr1: CI, plain 11.0.10 option"] -->|Human Create a merge commit| Net11["net11: approved integration"]
    Inflight -.->|Draft future visibility; do not merge first| Net11
    Net11 -->|Automatic exact-source cut| Release["release/11.0.1xx-sr1"]
    Net11 -->|Automatic patch20 + plain 11.0.20 in one commit| Normalized["net11: next-cycle CI"]
    Release -->|Automatic stable SR defaults + exact mirror + signed success| Prepare["Canonical artifact preparation: pushPackages=false"]
    Release -.->|Only for legacy metadata| Servicing["Reviewed servicing PR; never auto-merged"]
    Servicing -->|Reviewed legacy merge + exact signed source| Prepare
    Prepare -->|Separate human-approved canonical publication| Publish["Public packages and promotion"]
    Normalized --> Next["candidate SR2 + inflight SR3 + two draft PRs"]
    Normalized -->|CI-normalized daily forward PR; no auto-merge| Main["main: planned .NET 12 features"]
    classDef current fill:#dafbe1,stroke:#1a7f37,stroke-width:2px
    classDef gated fill:#fff8c5,stroke:#9a6700,stroke-width:2px
    class Candidate,Net11,Release current
    class Approval,Servicing,Publish gated
```

The selected `candidateNamingPolicy=candidate` creates candidate SR N+1
and future inflight SR N+2 while retaining historical refs, rather than
destructively renaming/deleting them. Historical `net11.0` is not an
alias for literal `net11`.

**Preservation boundary:** user-requested reconciliation normally
fast-forwarded all ten remaining .NET 11 commits. Main and net11 were
verified at `171c30d4ae467b41c51b2bdda866113508ad2d9a`; no
rebase/history rewrite was necessary. Preserve this
policy/infrastructure on the .NET 11 source before the separate
main-to-.NET 12 migration.

#### Current real SR1/SR2 trackers

| Tracker | Route | Source |
|---|---|---|
| [SR1 #40040](#40040) |
candidate/11.0.1xx-sr1 → net11 |
`2c0fd8426e2169aeb475e0b987ce6dcff310cc55` |
| [SR2 #40039](#40039) |
inflight/11.0.1xx-sr2 → net11 |
`aadd62bb1a916e3b423030601f6b4bc87f44b34f` |

Both are drafts; **SR2 is visibility only and must not merge ahead of
SR1**. The candidate net diff is only plain `11.0.10` entries in both
bug dropdowns; its Versions.props matches net11 byte-for-byte. SR2's
first-parent metadata change couples patch10→20 and plain `11.0.20` in
both dropdowns, retaining `11.0.10` and SDKband11.0.100. Old
candidate/inflight ancestry and future payload remain preserved by
normal merges/fast-forwards.

Actual repeated Core/Arcade evaluation of refreshed SR2 produced
`11.0.20-ci.inflight.26557.1`, non-stable metadata and workload suffix
`-ci.inflight`, with servicing/final-version flags unset. Candidate
stays patch10/ci.main/non-stable. That reconciliation merged no
production candidate, cut no release, created no tag and published no
package. Net11 protection and exact-head CI remain acceptance gates, not
inferred from branch existence.

Owned obsolete production PRs #39999/#40000 and nine owned trial PRs
were closed **unmerged**. Trial refs/evidence were preserved, not
overwritten/deleted. The current routes are #40040/#40039, not
servicing-configured or `(candidate)`-suffixed obsolete candidates.

#### Automatic phase order and recovery

1. Candidate keeps its verified patch and CI/non-stable configuration,
with its plain version in both bug dropdowns.
2. Human **Create a merge commit** integration into net11 is verified
from the live same-repository managed PR, current maintainer write
permission, exact two-parent merge, metadata and future-source ancestry.
Squash/rebase, wrong routes, unknown metadata and conflicts are
rejected.
3. Create-once `automation/release-lanes/<band>-srN` receipts pin the
approved merge and every prepared output before routine mutations.
4. `Sync-ReleaseNextLanes.ps1 -CompleteRelease` creates the release ref
at the approved merge, then non-forced-fast-forwards net11 to its exact
prepared housekeeping child. A failure between the two operations is
resumable.
5. The recognized strict SR/effective-servicing policy automatically
defaults stabilization to true at the cut, with no extra commit/PR.
Legacy sources receive a separate reviewed release-targeted servicing
PR; the runner never merges it.
6. Next candidate includes normalized source/future ancestry; next
inflight gets its own correct patch/bug-version update. Both draft
trackers are reconciled directly, including GITHUB_TOKEN writes whose
events do not fire. Newer ancestry is retained; obsolete previews close
only after replacements exist.
7. A normalized net11-to-main forward PR is prepared when main is
genuinely a later major; daily06:40UTC, source pushes and zero-input
dispatch provide recovery. Raw release-to-main servicing configuration
is not forwarded.

**Each patch bump and its corresponding plain version option are one
commit.** Patch20→30 adds `11.0.30`, not another `11.0.20`, and neither
has a `(candidate)` suffix. An existing candidate only needs its missing
plain option. **SdkBandVersion remains 11.0.100 for the 11.0.1xx
train**; an SR patch is not a feature-band migration.

Retries reproduce receipts/outputs, resume partial operations without
duplicates, recover managed deleted heads only from verified merge proof
and retain release descendants. Consumed inflight movement after a
checkpoint blocks retirement unless both replacements preserve the
complete advanced source. Complete housekeeping branch names are
URI-encoded. No reset/force-push occurs. `trackingSr` selects the
upcoming pair; canonical `currentSr`/`nightlyMode` remain separately
controlled until actual readiness/nightly gates clear.

#### Separate central branch-label policy

The policy is extracted into
[#40042](#40042), targeting main at
`8d92a2dda43d96f2052f633c522a5014a00cbeca`: the original label commit
plus a normal user-requested stabilization follow-up, without rewritten
history. **This PR does not duplicate its Versions.props edit.**

Helpers accept the exact ordered three-label policy in an unconditional
version group with standard literal/leaf/attribute wiring. Production
conditions remain byte-identical across phase commits; legacy sources
remain supported. Trial scopes require separately recognized
inflight/servicing conditions and cannot masquerade as production
publication inputs. Unknown/reordered conditions and side-effecting
interleaved properties fail explicitly.

Main/net11/candidate/default refs use ci.main, supported inflight refs
use ci.inflight and strict SR refs use servicing.
**StabilizePackageVersion defaults to true only for effective
`servicing` on a strict SR release source, before Arcade evaluates
package versions.** Development/staging stays non-stable;
explicitfalse/Preview/RC/PR overrides remain authoritative. Default SR
builds produce stable packages with no extra flip commit/PR; legacy
metadata keeps its reviewed servicing PR. Readiness, forwarding,
receipts and publication helpers recognize the exact expression, not
arbitrary text or the firstci.mainleaf.

Actual SDK/manifest/template matrix on the pushed policy passed **98
cases/1905 assertions**, including stable SR `11.0.10`/no workload
suffix, explicitfalse `11.0.10-servicing.26557.1`, Preview/RC/PR
preservation, scheduled output consistency and exact template dependency
pins. No branch/default alone proves signing or public publication.

#### Signing, preparation, and publication limits

`Sync-ReleasePublishing.ps1` verifies the exact human-approved managed
candidate integration and immutable cut for the automatic policy. Legacy
metadata still waits for its reviewed servicing merge. Both paths
require retained CI housekeeping and exact authorized internal mirror
source. Federation/access/pipeline/mirror deployment remain
prerequisites; no PAT, permission or mirror overwrite is created.

It queues the existing official signed build and, only after
exact-source success, canonical **artifact preparation** with
`pushPackages=false`. Durable intents precede queues. Lost/ambiguous
responses are reconciled by complete exact-source/parameter inventory,
never blind resubmission; duplicate matches require owner selection.

If a historical release branch advances after completed
signing/preparation, the runner verifies the original approved release
source, saved publisher-source identity and both successful runs, then
continues to later SRs without implicitly signing the new hotfix or
substituting it as the approved source. An intent/offline plan is not
success. Public approval/publishing stays separate.

Verified stable GitHub publication/immutable tag evidence can prepare an
idempotent main-branch metadata update for missing shipped versions;
already-added plain options are not duplicated. The read-only bundle
producer does not publish packages or grant authority.

#### Readiness and contributor/tooling changes

Configured source/candidate/nightly resolve independently from feature
main. Synchronization is checked both ways and source ancestry
classified by **each actual fixing commit**, including mixed
integrated/staged fixes. Managed bots require exact Bot identity,
configured same-repository head/base and production marker; absent proof
is unverifiable.

Revision overrides reject Git arguments/ranges and use separately passed
verified identities. Historical Preview/RC and explicit net11.0
entrypoints stay compatible. Live selected-nightly metadata uses one
snapshot; unconfigured/band-only evidence is not falsely attributed to
retained inflight refs. SR provenance also requires actual configured
inflight query constraints. Missing baseline/source/signed/publication
evidence remains UNKNOWN/NOT_RUN, never an empty green inventory.

Populated inbound Markdown uses initial net11 review → maintainer manual
inflight landing, not direct individual-fix merge into net11.
Contributor/template/agent, milestone/staging/base discovery, handoff
and primary/official CI routes follow the same roles. Shipped reports
preserve immutable contentsRef/tag identity rather than trusting a
mutable branch.

#### Empirical evidence and current limitations

Persisted automatic-policy tests execute two real Git candidate cycles
with exact cuts/receipts, no redundant stabilization commit/PR, scoped
trial validation, source-movement reconciliation, literal encoded
housekeeping branches, candidate approval checks and development
forwarding. Real MSBuild validates automatic SR/default/override
outputs.

Earlier genuine isolated GitHub cycles exercised the **legacy
servicing-PR path**: cuts, CI restoration, separate PR merge,
injected-failure recovery and replay. Evidence pins cut
`fa4f7330022affa86ace444556a14492a3df5e8b`, servicing merge
`40dd43f59b54534fd3dad40501e59c05e3e64198` and SR2 integration
`64f8abe6493913c81f26e73879ddf364478918c3`. Those remain
historical-source evidence, not new automatic-policy certification. No
production cut/signing/publication was performed.

[Five genuine
screenshots](#39913 (comment)),
[bot
preparation42296010618](https://github.com/dotnet/maui/actions/runs/42296010618),
[forwarding42191569428](https://github.com/dotnet/maui/actions/runs/42191569428),
and [initial
rollover42187695506](https://github.com/dotnet/maui/actions/runs/42187695506)
remain **historical evidence**. Their earlier servicing-configured
candidate phase is superseded, not current implementation or
signed-production certification.

Exact latest local commands/results:

- `Import-Module Pester -RequiredVersion 5.9.0; Invoke-Pester -Path
.github/scripts/ReleaseNextLanes.Tests.ps1,.github/scripts/ReleasePublishing.Tests.ps1,.github/scripts/ReleasePublishedVersions.Tests.ps1,.github/scripts/Sync-ServicingForwardPullRequest.Tests.ps1,.github/scripts/Fix-MilestoneDrift.Tests.ps1
-PassThru`: **263 passed/0 failed**, real Git automatic/legacy cycles
and complete mocked publication/recovery/approval guards, no actual
queue/signing.
- `pwsh -NoProfile -File
eng/scripts/MauiReleaseConfiguration.Tests.ps1`: **150 actual
MSBuild/version assertions passed**, including strict SR/dev/scoped
defaults and explicitfalse/Preview/RC/PR overrides.
- `pwsh -NoProfile -File
.github/skills/release-readiness/tests/Test-ReleaseReadiness.ps1
-SkipE2E`: **2358 passed/0 failed**, including automatic stabilization
and constrained nightly provenance.
- `pwsh -NoProfile -File
.github/skills/release-readiness/tests/Test-ReleaseBranchRoles.ps1`:
**88 passed/0 failed**.
- `pwsh -NoProfile -File
.github/skills/release-readiness/tests/Test-ReleaseHandoff.ps1`: **94
passed/0 failed**, confirmed again by current hosted validation.
- `npx --no-install cspell --config ./eng/automation/cspell/cSpell.json
docs/ReleaseBranchWorkflow.md docs/ReleaseProcess.md --no-progress`: **2
files/0 issues**. PowerShell syntax/error-level analysis, actionlint and
`git diff --check` passed. No pipeline/YAML configuration tests were
added.

Published head is `a484491c9435f3f006006e1f397d0dafd5e56d28`. Its
[readiness42410685974](https://github.com/dotnet/maui/actions/runs/42410685974)
**passed2358/94/88 and150actualMSBuild assertions**, including smoke
reports.
[Pester42410685901](https://github.com/dotnet/maui/actions/runs/42410685901)
had **2669passes/two unchanged Retina failures**;
[documentation42410685857](https://github.com/dotnet/maui/actions/runs/42410685857)
retains seven unchanged-page spelling findings. Changed release docs
pass. This is not an all-green/full-native/internal-release certificate.

The preceding automatic-policy commitc9097ef
[readiness42404931455](https://github.com/dotnet/maui/actions/runs/42404931455)
passed2348/94/88 and150actualMSBuild assertions.
[Pester42404931432](https://github.com/dotnet/maui/actions/runs/42404931432)
had2665passes/two unchanged Retina failures;
[documentation42404931524](https://github.com/dotnet/maui/actions/runs/42404931524)
had seven unchanged-page spelling findings. Earlier8c
[readiness42391900646](https://github.com/dotnet/maui/actions/runs/42391900646)
passed2343/94/88/82. Earlier exact-main reproduction established
baseline failures; none is waived or relabeled green.

Azure YAML previews were non-executing. No internal signed/preparation
build, paid route, customer publication, tag or protection/subscription
mutation occurred. Earlier
[native1667311](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1667311)
contained an unmatched simulator launch failure; later successful
Azure1669154 is pinned to preceding0ab6849 at merge92a3d994, not current
acceptance.

#### Separate .NET 12 migration and rollout gates

The separate [#39946](#39946) was
last verified OPEN/main/UNMERGED at
`794a44ac060b2c431d54cd02767aced735a18ccc`, a normal child of C30. Its
f4ad main171c integration and preserved closed#39947
source`6f8eb75ceb55d61223250e373200a3e772c596b4` remain retained. No
.NET12 SDK/TFM or migration fixes enter net11 through this PR.


[Expert5814137847](#39946 (review))
assessed **C30**, not794a: COMMENTED, **incomplete9/11 with three
findings**. Its
[major4503117641](#39946 (comment))
found wildcard`Test-Path` matching realSDK1 for literalSDK[1] and
returning0 while the requested runtime was missing. Published794a stages
downloads in an owned safe temporary path, transfers via literal .NET
APIs preserving SDK-host files, verifies the literal runtime and
keeps`eng/common` unchanged.

**Actual
[Windows42401256593/job128489280561](https://github.com/dotnet/maui/actions/runs/42401256593/job/128489280561)
passed on exact794a**, independently checked from raw log and17
downloaded artifact files. Real SDK[1]/SDK1 controls:
baselineexit0/runtimeabsent → fixedexit0/fresh10.0.14installed at
literal[1] → revertedexit0/runtimeabsent → restoredexit0/freshinstalled.
Matching sibling runtime stayed present, SDK-host hashes stayed
unchanged, and the final runtime listing confirms literal[1]. Fixed-log
SHA256 independently matches
`3662389ae0ec59e0a60cdf8e812d7ab13d382a554daf0fa8b01616d56d93e61a`;
percent/comma/trailing/spaced controls passed. The major was resolved
only afterward in4503238894. Consumed runner/scene-target
findings4502844585/4503117648 were fixed/resolved4503238904/4503238909;
repeated configuration-test request4503117647
declined/resolved4503238912 under owner policy, not fulfilled
shared-selector coverage.

At that source-qualified handoff, native42401256593 was in progress,
Catalyst status was successful but its artifacts were not certified
here, and iOS was running. Owner-reported main1669386 was active
on794a/integration`6c2765c5a3c2c590b4bab54a295de6f4581f3e69`. New
device/UI requests6711475427/6711475641 and review6711475837 were posted
once; actual queues/receipts were pending. Those dated observations are
not a claim that later checks remain running. The C30 expert receipt
stays immutable incomplete9/11, not794a approval; refresh migration
acceptance in [#39991](#39991)
before cutover.

The older
[review5813656643](#39946 (review))
assessed **old a64**, not c30: COMMENTED, **incomplete10/11 with two
findings**. Its
[major4502762522](#39946 (comment))
Windows percent-path finding was resolved only after actual C30 proof,
in
[reply4503039703](#39946 (comment)),
not by promoting that partial assessment to approval.

[C30
Windowsjob128475776433/run42396724339](https://github.com/dotnet/maui/actions/runs/42396724339/job/128475776433)
passed, independently verified from its exact source/job, raw log and12
downloaded artifact files. SDK12/bootstrap10.0.403 and defined expansion
variables exercised literal SDK`%SDK_TAG%`/checkout`%REPO_TAG%`:
baselineMSB3073/exit1/nochild → ordinary trigger-removed green →
fixedexit0/exactDir → revertedexit1/nochild → restoredexit0/exactDir.
Actual absent10.0.14 installation/final runtime listing and
logSHA`5fb6e973d1a47c06b367f284843216c3f9f53add38dcb84bf6acb302641e65b8`
were verified. Intermediate e57/da24 failed oracles and db81 inner-CMD
failures remain failed earlier-source evidence, not relabeled passes.

C30 native42396724339 fully completed all three jobs successfully
before794a; it is previous-source evidence. This tracker independently
verified196exactEntry rows/195Pass/1existingSkip/0Fail,
XMLSHA`c253116dd37c9dafee11245f0b64f34e7325e171ca07d360419e6983192ddc9a`,
ten native app Build succeeded/0errors and MT7199negative/restored
controls. Old-db81 gate15959093 had units/XAML passes with blocked
devices/outdated source, not current/full-runtime acceptance. No
duplicate activation was added here.

Previous-source f4ad results were XAML2161Pass14existingSkip0Fail,
SourceGen675Pass0Fail and CoreLocalization40Pass0Fail;
HostRunner12Pass2sameRetinafail reproduced on exact-main171c. Its
Windows/Catalyst passed, but iOS was canceled, not passed. Prior a64
Windows/managed/device/UI/native/expert receipts remain earlier-source
only. At a64, required1669146/1669148/1669147 ended FAILED on six
Xcode27.0-vs-required27.1 selectors/four artifact cascades; available
runnable/free-native results passed, with M3's existing full-fixture
retry caveat retained.

The remaining owner requirement is usable AzureXcode27.1/ARM64
provisioning or an explicitly authorized licensed route, not an implied
billing/access grant or public redistribution. The plan and ten native
sub-issues stay in
[#39988](#39988), beginning with
[#39989](#39989). Internal
deployment, protected net11/staging routes, canonical state advancement,
dependency flow, signed nightlies, public approvals and the first
production cycle retain unchecked acceptance gates. **Merging this PR
does not close the whole rollout.**

### 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. -->

Contributes to [#39989](#39989),
[#39993](#39993) and
[#39997](#39997) under
[#39988](#39988). They stay open
until deployment/production acceptance gates pass.

<!--
Verify the target branch follows the release workflow in
docs/ReleaseBranchWorkflow.md.
Infrastructure and documentation changes should target the branch where
they apply.
-->

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