Repository navigation
Add actionable SR backport, version-transition, and ship-Assessment feed guidance - #36497
Conversation
Guide merged mainline fixes through the repository backport automation and require non-main fixes to flow to main first. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: cf5a6299-1e58-4157-b7fd-b85efaa14755
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 36497Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 36497" |
Skill Validation Results
✅ Skill Validation Results —
|
There was a problem hiding this comment.
Pull request overview
This PR updates the release-readiness skill documentation and tests to clarify the mainline-to-SR backport workflow, including when to recommend the /backport to release/... command and how to handle non-main PRs and automation conflicts.
Changes:
- Documented an explicit SR backport handoff workflow (automation path + manual cherry-pick fallback) in the skill docs and methodology reference.
- Updated regression-candidate classification to treat open non-main PRs as
needs-human-review(not backport-ready). - Strengthened unit tests and markdown rendering assertions to require emitting the exact
/backport to ...command for mainline-ready cases.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .github/skills/release-readiness/tests/Test-ReleaseReadiness.ps1 | Adds coverage for exact backport-command recommendations and for open non-main PR classification. |
| .github/skills/release-readiness/SKILL.md | Documents the SR backport handoff rules and expands the “gotchas” list to include the backport workflow. |
| .github/skills/release-readiness/scripts/Get-ReleaseReadiness.ps1 | Adjusts open-PR classification logic and updates recommended actions / markdown output to reference the /backport command. |
| .github/skills/release-readiness/references/methodology.md | Adds “Gotcha #4” describing the source-to-SR backport workflow and conflict fallback steps. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: cf5a6299-1e58-4157-b7fd-b85efaa14755
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 04bf990b-a216-41df-aa75-08f62a1ecaf0
An SR branch needs a BAR default-channel mapping so its build is promoted and generates the per-build darc-pub NuGet feed (darc-pub-dotnet-maui-<sha8>). The DevDiv ship Assessment must link that feed so CSI/customers can validate the exact candidate packages. Without the mapping + promotion the feed never exists and the Assessment ships incomplete — the SR9 miss. Get-MaestroOperationalChecks now emits a "Ship Assessment validation feed" check that derives and surfaces the feed URL (READY when the build is promoted, WATCH when it isn't) plus the `darc get-asset` confirm command. Adds Gotcha #7 to methodology + a SKILL.md checks-table row, and extends the maestro unit tests (Scenario 2 feed assertions + new Scenario 14 for the unpromoted build). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 136770fc-91e0-451c-8a4d-ea6a176f30e8
PureWeen
left a comment
There was a problem hiding this comment.
Adversarial review — current head e147c6f
Findings
- ❌ Logic —
Invoke-DarcJsontreats darc's generic exit code 42 as a unique no-build result, so authentication, argument, network, and BAR failures are mislabeled as a benignWATCH/wait-for-CI state. (1/3 reviewers + repo domain specialist) - ❌ Regression —
darc get-asset --output-format jsonreturnslocationsas URL strings, but the parser and fixtures expect object-shaped locations. The new Assessment-feedREADYpath is therefore unreachable against real darc output. (3/3 reviewers after dispute)
Methodology: 3 independent reviewers with adversarial consensus + repo domain specialist. External behavior was verified against the authoritative dotnet/arcade-services darc implementation.
Test coverage: The harness replaces Invoke-DarcJson and supplies fabricated response shapes, so it cannot catch either contract mismatch. Add cases for a generic exit-42 failure that remains UNKNOWN and the real locations: ["https://..."] asset payload.
Prior review status: All 50 existing inline threads are resolved, and earlier findings were reconciled rather than duplicated.
Verdict: NEEDS_CHANGES
Both defects are in the new operational safeguard: one hides real darc failures, and the other prevents a published validation feed from ever being recognized.
…36497 review) Addresses PureWeen re-review 4758597655 (NEEDS_CHANGES): G1 — Invoke-DarcJson treated darc exit code 42 as a unique "no matching build". Exit 42 is darc's generic Constants.ErrorCode, returned for no-match, invalid arguments, auth failures, and unhandled exceptions alike (verified in dotnet/arcade-services GetBuildOperation). Deriving NoMatch from it made every real darc failure surface as a reassuring WATCH ("wait for CI") during auth/network/BAR outages. Removed the NoMatch derivation; any darc failure now surfaces as UNKNOWN, with the message calling out that exit 42 is generic (could be no-build-yet, auth, or network) and may be transient. The genuine empty-but-successful case (exit 0, no builds) still maps to WATCH. G2 — the ship-Assessment feed check parsed `darc get-asset --output-format json` `locations` as `{ type, location }` objects with a fallback top-level `NugetFeed` property. The real payload projects locations to a flat array of URL strings (GetAssetOperation: `locations = ...Select(l => l.Location)`), so every lookup returned null and the feed READY path was unreachable even when the per-build feed was published. Now collect the NuGet v3 feed URLs from the location strings and prefer the per-build darc-pub feed. Tests: added a direct Invoke-DarcJson exit-42 contract test, a string-URL get-asset locations scenario, and updated the exit-42 build scenario to assert UNKNOWN; refreshed all asset fixtures to the real string-URL shape. 960/0 green; the 6 new/updated asserts fail without their fix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d00747b7-96f3-4e7a-8dfb-e3a48db04b2d
|
@PureWeen — both findings from the re-review are fixed in
Tests: 960/0 green, including a direct
|
PureWeen
left a comment
There was a problem hiding this comment.
Adversarial review — current head 81e3eb8
Finding
- ❌ Logic — The new string-location parser falls back to any NuGet-v3 URL when the required per-build public
darc-pubfeed is absent. A durable, shared, internal, or wrong-SHA feed can therefore make the Assessment checkREADYand be linked as if it contained only the exact candidate packages. (3/3 reviewers after dispute)
What looks right: The same self-correction correctly stops treating generic darc exit code 42 as a unique no-build signal and now parses the real locations: string[] payload shape.
Methodology: 3 independent reviewers with adversarial consensus + repo domain specialist. The feed-location behavior was verified against dotnet/arcade and dotnet/arcade-services publishing source.
Test coverage: The new fixtures prove string-URL parsing and darc-pub preference, but do not cover a payload containing only a shared/internal feed or a darc-pub URL for the wrong SHA. Those cases should remain WATCH.
Prior review status: All 52 earlier inline threads are resolved. This finding is a distinct regression introduced by the 81e3eb8 self-correction, not a duplicate of the prior object-shape finding.
Verdict: NEEDS_CHANGES
The report can still green-light the ship Assessment with a feed that is not the required public per-build validation feed.
…36497 review) PureWeen adversarial finding (3634079346): the get-asset feed check treated ANY NuGet-v3 location as satisfying the required public per-build validation feed. It preferred a substring 'darc-pub' match (accepting a darc-pub feed for a DIFFERENT build's SHA) and, failing that, fell back to the first NuGet-v3 feed of any kind (shared/durable/internal). Both paths marked the row READY and told the release captain to link a feed that cannot prove CSI/customers validated the exact candidate packages (wrong-SHA feeds mix builds; internal feeds require auth). Fix: gate READY strictly on the already-computed expected feed name `darc-pub-dotnet-maui-<buildSha8>` (SHA-exact, case-insensitive). If that exact feed is not among the asset's locations, stay WATCH and note that any other returned feeds are shared/durable/wrong-SHA and are not linked. Tests: add scenario 2d (shared dotnet-eng + internal darc-int-<sha> feeds → WATCH, regression for the "any NuGet v3 feed" fallback) and 2e (darc-pub feed for the WRONG sha → WATCH, regression for the loose 'darc-pub' substring match); update scenarios 2/2b for the new wording. Harness: 967/0; without the script fix exactly 7 asserts fail (incl. both new WATCH-vs-READY status checks). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d00747b7-96f3-4e7a-8dfb-e3a48db04b2d
|
@PureWeen addressed the latest finding in |
PureWeen
left a comment
There was a problem hiding this comment.
Adversarial review — current head 2e9f548a
Finding
- ❌ Logic — A failed
darc get-assetcall on a promoted build leaves$feedCandidatesand$expectedFeedTokenunset, but the new WATCH path reads both under StrictMode. The exception aborts the entire readiness report instead of degrading the feed check. (3/3 reviewers)
What looks right: The SHA-matched per-build feed gate and its shared/internal/wrong-SHA negative fixtures correctly address the previous review finding.
Methodology: 3 independent reviewers with adversarial consensus + repo domain specialist.
Test coverage: The harness already exposes -AssetAuthFail, but no scenario invokes it. Add a promoted-build asset-failure case that proves the report does not throw and emits a non-READY feed row.
Prior review status: All 53 earlier inline threads are resolved. This is a distinct regression introduced by the 2e9f548a self-correction.
Verdict: NEEDS_CHANGES
A transient asset lookup failure currently prevents any release-readiness report from being produced.
The SHA-exact feed gating added in 2e9f548 initialized $feedCandidates and $expectedFeedToken only inside the `if ($asset.Success)` block. When `darc get-asset` fails (auth/network, or the asset isn't published yet), the else/WATCH branch reads both variables — under Set-StrictMode -Version Latest that throws on the unset variables and aborts the entire readiness report. Initialize $feedCandidates and $expectedFeedToken (plus an $assetLookupOk flag) before the success check, and give the WATCH branch a dedicated failed-lookup case that reports the lookup "did not return a usable result" instead of implying the feed was checked and absent. Adds regression scenario 2f (-AssetAuthFail) asserting the feed check degrades to WATCH and the report still completes (build check emitted) rather than aborting. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d00747b7-96f3-4e7a-8dfb-e3a48db04b2d
|
@PureWeen — addressed your latest finding in
|
PureWeen
left a comment
There was a problem hiding this comment.
Adversarial review — current head fe15bb2c
No new findings survived adversarial consensus.
What looks right: The promoted-build get-asset failure path now initializes all WATCH-path state before the success gate, degrades safely to WATCH, and preserves the rest of the readiness report.
Methodology: 3 independent reviewers with adversarial consensus + repo domain specialist.
Test coverage: Scenario 2f exercises the real failure branch through -AssetAuthFail and independently proves no throw, WATCH status, accurate failure detail, and continued build-check output. Earlier exact-feed, wrong-SHA, JSON-shape, and exit-42 cases remain covered.
Prior review status: All 54 existing inline threads are resolved; the latest self-correction addresses the prior unanimous finding without reintroducing earlier issues.
Verdict: NO NEW FINDINGS
|
I think this should be fixed in this PR rather than deferred. The failing Recommended change in
The current detector output already demonstrates the valid shape: shipped SR9, no in-flight SR, candidate SR10 with |
Allow candidate numbering to anchor on the highest shipped refresh SR when no in-flight SR exists between a ship and the next branch cut. Add a deterministic synthetic detector fixture for the shipped-plus-candidate state. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4c228cec-8795-4bd5-a86c-c3fede46d534
Bound main-side revert scanning from the prior release baseline instead of the current SR tip, preserving reverts inherited into both main and the SR. Keep the post-ship detector fixture offline and add a synthetic common-ancestry git graph regression test. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4c228cec-8795-4bd5-a86c-c3fede46d534
| $script:_origGetContent = Get-Command Get-ContentFromRepo -CommandType Function -ErrorAction SilentlyContinue | ||
| $script:_mockVdText = $fixtureVd | ||
| function global:Get-ContentFromRepo { | ||
| $script:OrigGetContentFromRepoForPins = ${function:Get-ContentFromRepo} | ||
| function Get-ContentFromRepo { |
| 4. Confirm the feed location with `darc get-asset --name | ||
| Microsoft.Maui.Controls --build <BAR id>` (prints the `NugetFeed` location). |
PureWeen
left a comment
There was a problem hiding this comment.
Adversarial review — current head b016b54bce9
No new findings survived adversarial consensus.
What looks right: The live SR E2E now accepts the valid shipped-plus-candidate/no-in-flight window while retaining candidate-number and priorSrBranch assertions. Its synthetic fixture exercises the real detector without network access. The main-revert scan now uses the prior release baseline, preserving common-ancestry reverts without returning to an all-history scan.
Methodology: 3 independent reviewers with adversarial consensus + repo domain specialist. Two initial findings were fixed and re-reviewed clean by all reviewers.
Test coverage: The complete local harness reports 1057/0. New deterministic coverage proves the post-ship transition and a real fix→revert git graph where the old current-SR bound loses the revert.
Prior review status: All 54 existing inline threads are resolved.
Verdict: NO NEW FINDINGS
Scope: code review only. CI/check status and merge readiness are assessed separately.
Preserve preview PR discovery during GitHub GraphQL 502 and rate-limit failures by projecting REST pull-request responses into the existing report shape. Improve retry diagnostics and cover open/merged fallback behavior. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4c228cec-8795-4bd5-a86c-c3fede46d534
Continue through REST closed-PR pages until 100 actual merges are collected, and fail to the existing unavailable-history path if a bounded scan cannot reach the end. Add page-two displacement coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4c228cec-8795-4bd5-a86c-c3fede46d534
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!
Summary
Release-readiness reports identified the right blockers, but did not always provide enough precise, safe instructions for a release captain or future agent to complete them. This PR makes the SR transition workflows explicit and test-backed.
mainbefore recommending/backport to release/....git cherry-pick -xconflict fallback.PatchVersion, setPreReleaseVersionLabel=servicing, and enable stable package versions only on the release branch.mainbump as a separate one-file, one-line PR, including the exact title and XML edit. For SR9 → SR10 this isUpdate PatchVersion from 90 to 100and<PatchVersion>90</PatchVersion>→<PatchVersion>100</PatchVersion>.SdkBandVersion,PreReleaseVersionLabel=ci.main, andStabilizePackageVersion=falseonmain, matching the SR7/SR8/SR9 precedent.Get-MaestroOperationalChecksnow derives and emits thedarc-pub-dotnet-maui-<sha8>NuGet feed URL (theShip Assessment validation feedcheck) to paste into the DevDiv ship Assessment, plus thedarc get-assetconfirm command. It reportsWATCHwhen the build isn't promoted — no default channel → no promotion → no feed → the Assessment has nothing to link (the SR9 miss).Release workflow captured
main/backport to release/<branch>only after main ancestry is verifiedrelease/<major>.0.1xx-sr<N>PatchVersion; switch toservicingand stable packages after the final backportmainPatchVersionto(N+1)*10; keep SDK-band and CI prerelease settings unchangedrelease/<major>.0.1xx-sr<N>builddarc-pub-dotnet-maui-<sha8>feed in the DevDiv Assessment so CSI/customers can validate the exact candidate packagesWhat not to do
inflight/current.mainnext-cycle bump with the release branch servicing flip.SdkBandVersionor copy servicing settings ontomain.darc-pub-dotnet-maui-<sha8>feed exists to link.mainrefs, or create channels / promote builds / edit the Assessment; the skill remains report-only (it only derives and surfaces the feed URL).Validation
READY) / unpromoted (WATCH) feed cases, common-ancestry main-revert detection, the shipped-SR + next-candidate state with no in-flight SR, and GraphQL→REST PR-discovery fallback pagination.