Repository navigation
[release] Derive prerelease labels and SR stabilization from source branches - #40042
Conversation
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
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 40042Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 40042" |
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.
This comment has been minimized.
This comment has been minimized.
| <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> |
There was a problem hiding this comment.
[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.
| <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> |
There was a problem hiding this comment.
[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.
This comment has been minimized.
This comment has been minimized.
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
|
@dalexsoto stamp |
There was a problem hiding this comment.
🔵 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
nightlybuild 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
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.
| <!-- 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> |
There was a problem hiding this comment.
[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.
| <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> |
There was a problem hiding this comment.
[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.
PR Test Gate |
…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. --> ---------
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_SOURCEBRANCHref ineng/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=trueflip: "i wish this has been automated as well". This PR now has two normal commits, with no amend, rebase, or force-push: original label policye58dd764d38552dfa05d6c0b04ed6401b2195acb, followed by automatic SR stabilization8d92a2dda43d96f2052f633c522a5014a00cbeca. It still targets literalmain; the original base is171c30d4ae467b41c51b2bdda866113508ad2d9a.refs/heads/main,refs/heads/net11,refs/heads/net11.0, candidate refs, unknown refs, PR refs, or absent source refci.mainfalserefs/heads/inflight/currentci.inflightfalserefs/heads/inflight/<major>.0.<band>xx-sr<N>ci.inflightfalserefs/heads/release/<major>.0.<band>xx-sr<N>with effectiveservicingbrandingservicingtrueci.mainfalseNumeric 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
StabilizePackageVersionnode retainsCondition="'$(StabilizePackageVersion)' == ''". Its value evaluates the strict SR ref and effective label together, producing lowercasetrueorfalse. It remains afterIsServicingBuildand beforeDotNetFinalVersionKindand workload-version calculation.IsServicingBuild=true,StabilizePackageVersion=true,DotNetFinalVersionKind=release, and no workload prerelease suffix.-p:StabilizePackageVersion=falsestill produces servicing prereleases on SR refs. Explicittruestill wins on main, net11, candidate, inflight, or any other ref.false, even on an SR source ref. Without the effective-label guard, Arcade would strip these explicitly requested prerelease labels. An explicit stabilizationtruestill wins if requested.IsServicingBuildremains governed by its existing rule and explicit overrides, independently of stabilization. For example, SR plusStabilizePackageVersion=falseremains 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:
SetVersionsno longer overwrites the label withnightlyafter Arcade has calculated package/workload versions. Scheduled builds keep the correct source-derived label and stabilization plus the existing##vso[build.addbuildtag]nightlyoutput.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 msbuildwithOfficialBuildId=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.11.0.10-ci.main.26557.111.0.100-ci.main11.0.10-ci.inflight.26557.111.0.100-ci.inflight11.0.1011.0.10011.0.10-servicing.26557.111.0.100-servicing11.0.1011.0.10011.0.10-ci.main.26557.111.0.100-ci.main11.0.10-preview.3.26557.111.0.100-preview.311.0.10-rc.2.26557.111.0.100-rc.211.0.10-ci.pr40041.26557.111.0.100-ci.pr4004111.0.10-servicing.26557.111.0.100-servicing11.0.1011.0.10011.0.10-ci.main.26557.111.0.100-ci.mainCLI
TRUE/FALSEvariants remain authoritative. Explicit Preview/RC plus stabilizationtrueproduces 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 beforeSetVersionsalready 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 existing11.0.0-*floating behavior.Exact scheduled-tag command, result passed, emitted
##vso[build.addbuildtag]nightly:git diff --check: passed.git ls-remote origin refs/heads/kubaflo-branch-derived-release-labels: passed, matches8d92a2dda43d96f2052f633c522a5014a00cbeca. Validation used host SDK11.0.100-preview.6.26359.118, MSBuild18.9.0.36018, and repository-pinned Arcade11.0.0-beta.26514.118; the RTM SDK underglobal.jsontools 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 fromc9097ef73b44a3eb634a1454e9ee84ee85cd607aplus 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 andservicingShaequals 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 overlappingeng/Versions.propsedit.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 CLIfalse, 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
c9097ef73b44a3eb634a1454e9ee84ee85cd607ahead 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
a484491c9435f3f006006e1f397d0dafd5e56d28hosted validation is pending: Release Readiness 42410685974 and PowerShell Script Tests 42410685901 were observedin_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
net11before 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:Exact stabilization node, after the unchanged
IsServicingBuildrule and before the unchangedDotNetFinalVersionKindrule: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.