Repository navigation
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39586Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39586" |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
🔵 Needs a closer look
The available evidence covers only 65 of the described 116 changed files, and current required CI results remain unverified.
No open issues 🎉
What changed in this PR
Ports the .NET 11 GA API-baseline rollover from #39474 to net11.0, recording existing APIs as shipped without changing product implementations.
Changes:
- Moves existing GA API records from unshipped to shipped inventories.
- Applies previously recorded removals while preserving replacement signatures and nullability markers.
- Retains newer
net11.0-only entries as unshipped, as described in the PR.
The supplied review covers 65 of the 116 files described in the PR; full-change verification and current CI results remain outstanding.
| File | Description |
|---|---|
| src/Graphics/src/Graphics/PublicAPI/netstandard/PublicAPI.Unshipped.txt | Clears rolled-over Color entries. |
| src/Graphics/src/Graphics/PublicAPI/netstandard/PublicAPI.Shipped.txt | Records 40 Color entries as shipped. |
| src/Graphics/src/Graphics/PublicAPI/net/PublicAPI.Unshipped.txt | Clears rolled-over Color entries. |
| src/Graphics/src/Graphics/PublicAPI/net/PublicAPI.Shipped.txt | Records 40 Color entries as shipped. |
| src/Graphics/src/Graphics/PublicAPI/net-windows/PublicAPI.Unshipped.txt | Clears rolled-over Color entries. |
| src/Graphics/src/Graphics/PublicAPI/net-windows/PublicAPI.Shipped.txt | Records 40 Color entries as shipped. |
| src/Graphics/src/Graphics/PublicAPI/net-tizen/PublicAPI.Unshipped.txt | Clears rolled-over Color entries. |
| src/Graphics/src/Graphics/PublicAPI/net-tizen/PublicAPI.Shipped.txt | Records 40 Color entries as shipped. |
| src/Graphics/src/Graphics/PublicAPI/net-macos/PublicAPI.Unshipped.txt | Clears rolled-over Color entries. |
| src/Graphics/src/Graphics/PublicAPI/net-macos/PublicAPI.Shipped.txt | Records 40 Color entries as shipped. |
| src/Graphics/src/Graphics/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt | Clears rolled-over Color entries. |
| src/Graphics/src/Graphics/PublicAPI/net-maccatalyst/PublicAPI.Shipped.txt | Records 40 Color entries as shipped. |
| src/Graphics/src/Graphics/PublicAPI/net-ios/PublicAPI.Unshipped.txt | Clears rolled-over Color entries. |
| src/Graphics/src/Graphics/PublicAPI/net-ios/PublicAPI.Shipped.txt | Records 40 Color entries as shipped. |
| src/Graphics/src/Graphics/PublicAPI/net-android/PublicAPI.Unshipped.txt | Clears rolled-over Color entries. |
| src/Graphics/src/Graphics/PublicAPI/net-android/PublicAPI.Shipped.txt | Records 40 Color entries as shipped. |
| src/Essentials/src/PublicAPI/netstandard/PublicAPI.Unshipped.txt | Clears GA entries and removal directives. |
| src/Essentials/src/PublicAPI/net/PublicAPI.Unshipped.txt | Clears GA entries and removal directives. |
| src/Essentials/src/PublicAPI/net-windows/PublicAPI.Unshipped.txt | Clears Windows GA entries and removal directives. |
| src/Essentials/src/PublicAPI/net-tizen/PublicAPI.Unshipped.txt | Clears Tizen GA entries and removal directives. |
| src/Essentials/src/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt | Clears MacCatalyst GA entries and removal directives. |
| src/Essentials/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt | Clears iOS GA entries and removal directives. |
| src/Essentials/src/PublicAPI/net-android/PublicAPI.Unshipped.txt | Clears Android GA entries and removal directives. |
| src/Core/src/PublicAPI/netstandard2.0/PublicAPI.Unshipped.txt | Resets Core inventory to nullable directive. |
| src/Core/src/PublicAPI/netstandard/PublicAPI.Unshipped.txt | Resets Core inventory to nullable directive. |
| src/Core/src/PublicAPI/net/PublicAPI.Unshipped.txt | Resets Core inventory to nullable directive. |
| src/Core/src/PublicAPI/net-windows/PublicAPI.Unshipped.txt | Clears Windows Core GA entries. |
| src/Core/src/PublicAPI/net-tizen/PublicAPI.Unshipped.txt | Clears Tizen Core GA entries. |
| src/Core/src/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt | Clears MacCatalyst Core GA entries. |
| src/Core/maps/src/PublicAPI/netstandard/PublicAPI.Unshipped.txt | Clears Core Maps GA entries. |
| src/Core/maps/src/PublicAPI/net/PublicAPI.Unshipped.txt | Clears Core Maps GA entries. |
| src/Core/maps/src/PublicAPI/net-windows/PublicAPI.Unshipped.txt | Clears Windows Core Maps GA entries. |
| src/Core/maps/src/PublicAPI/net-tizen/PublicAPI.Unshipped.txt | Clears Tizen Core Maps GA entries. |
| src/Core/maps/src/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt | Clears MacCatalyst Core Maps GA entries. |
| src/Core/maps/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt | Clears iOS Core Maps GA entries. |
| src/Core/maps/src/PublicAPI/net-android/PublicAPI.Unshipped.txt | Clears Android Core Maps GA entries. |
| src/Controls/src/Xaml/PublicAPI/netstandard/PublicAPI.Unshipped.txt | Clears rolled-over XAML entries. |
| src/Controls/src/Xaml/PublicAPI/netstandard/PublicAPI.Shipped.txt | Records extensions and component registry APIs. |
| src/Controls/src/Xaml/PublicAPI/net/PublicAPI.Unshipped.txt | Clears rolled-over XAML entries. |
| src/Controls/src/Xaml/PublicAPI/net/PublicAPI.Shipped.txt | Records extensions, registry, and Hot Reload APIs. |
| src/Controls/src/Xaml/PublicAPI/net-windows/PublicAPI.Unshipped.txt | Clears rolled-over Windows XAML entries. |
| src/Controls/src/Xaml/PublicAPI/net-windows/PublicAPI.Shipped.txt | Records Windows XAML GA APIs. |
| src/Controls/src/Xaml/PublicAPI/net-tizen/PublicAPI.Unshipped.txt | Clears rolled-over Tizen XAML entries. |
| src/Controls/src/Xaml/PublicAPI/net-tizen/PublicAPI.Shipped.txt | Records Tizen XAML GA APIs. |
| src/Controls/src/Xaml/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt | Clears rolled-over MacCatalyst XAML entries. |
| src/Controls/src/Xaml/PublicAPI/net-maccatalyst/PublicAPI.Shipped.txt | Records MacCatalyst XAML GA APIs. |
| src/Controls/src/Xaml/PublicAPI/net-ios/PublicAPI.Unshipped.txt | Clears rolled-over iOS XAML entries. |
| src/Controls/src/Xaml/PublicAPI/net-ios/PublicAPI.Shipped.txt | Records iOS XAML GA APIs. |
| src/Controls/src/Xaml/PublicAPI/net-android/PublicAPI.Unshipped.txt | Clears rolled-over Android XAML entries. |
| src/Controls/src/Xaml/PublicAPI/net-android/PublicAPI.Shipped.txt | Records Android XAML GA APIs. |
| src/Controls/Maps/src/PublicAPI/netstandard/PublicAPI.Unshipped.txt | Clears Controls Maps GA entries. |
| src/Controls/Maps/src/PublicAPI/net/PublicAPI.Unshipped.txt | Clears Controls Maps GA entries. |
| src/Controls/Maps/src/PublicAPI/net-windows/PublicAPI.Unshipped.txt | Clears Windows Controls Maps GA entries. |
| src/Controls/Maps/src/PublicAPI/net-tizen/PublicAPI.Unshipped.txt | Clears Tizen Controls Maps GA entries. |
| src/Controls/Maps/src/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt | Clears MacCatalyst Controls Maps GA entries. |
| src/Controls/Maps/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt | Clears iOS Controls Maps GA entries. |
| src/Controls/Maps/src/PublicAPI/net-android/PublicAPI.Unshipped.txt | Clears Android Controls Maps GA entries. |
| src/BlazorWebView/src/Wpf/PublicAPI.Unshipped.txt | Clears WPF additions and removal directives. |
| src/BlazorWebView/src/Wpf/PublicAPI.Shipped.txt | Records IWebView2 signatures and composition-control options. |
| src/BlazorWebView/src/Maui/PublicAPI/net/PublicAPI.Unshipped.txt | Clears MAUI BlazorWebView GA entries. |
| src/BlazorWebView/src/Maui/PublicAPI/net-windows/PublicAPI.Unshipped.txt | Clears Windows BlazorWebView GA entries. |
| src/BlazorWebView/src/Maui/PublicAPI/net-tizen/PublicAPI.Unshipped.txt | Clears Tizen BlazorWebView GA entries. |
| src/BlazorWebView/src/Maui/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt | Clears MacCatalyst BlazorWebView GA entries. |
| src/BlazorWebView/src/Maui/PublicAPI/net-ios/PublicAPI.Unshipped.txt | Clears iOS BlazorWebView GA entries. |
| src/BlazorWebView/src/Maui/PublicAPI/net-android/PublicAPI.Unshipped.txt | Clears Android BlazorWebView GA entries. |
Review effort: Balanced
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Preserve the API rollover while incorporating the current target branch for CI validation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 926bbbf9-c70b-4536-887e-adc384c04b56
Adapt #39545 at 5bfc7c7. Keep explicit crop overrides and comparison policy unchanged. Re-crop current goldens without importing unrelated rendering replacements: 2410 exact top crops and four landscape top extensions preserving every previously tested body pixel. Exclude the generated diff-image artifact. Co-authored-by: Ahamed-Ali <102580874+Ahamed-Ali@users.noreply.github.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 926bbbf9-c70b-4536-887e-adc384c04b56
|
/review expert-review |
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.
1 similar comment
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Expert Review — 1 finding
Reviewed commit 39ec895.
Source assessment incomplete (9/10 dimensions); finding count is partial.
See inline comments for details.
| @@ -426,12 +426,29 @@ but both can happen. | |||
|
|
|||
| var actualImage = new ImageSnapshot(screenshotPngBytes, ImageSnapshotFormat.PNG); | |||
|
|
|||
| int androidStatusBarHeight = 0; | |||
| if (_testDevice == TestDevice.Android && cropTop <= 0) | |||
There was a problem hiding this comment.
[moderate] Regression Prevention and Test Coverage - The new status-bar validation and query-bypass branches have no committed regression tests. Existing screenshot callers exercise normal device responses, but cannot distinguish the important negative cases: a positive cropTop must succeed without querying system bars even when that query would fail, and a reported height of zero must be accepted while a negative or missing height must fail. The supplemental console projection is not a repository test of this helper, so a regression in these branches is not protected by it. Add automated tests against the actual crop implementation with discriminating payloads and a query-call assertion for the explicit-override case.
PR Test Gate🧪 Gate analysis — click to expand⚠ Inconclusive. Setup, build, or execution did not produce a conclusive result. This does not prove the fix is incorrect. 🖥 UI tests
Coverage gap: some detected groups were omitted by the verifier. Inspect the complete report before treating this as full coverage. Execution log excerptsWithout fix With fix PR head: 39ec8955. Without-fix baseline: 4ef2769e. |
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
Intentionally targets
net11.0, as the counterpart of the GA API-baseline rollover in #39474. The original GA PR remains open and unchanged.Also incorporates the Android status-bar screenshot-cropping correction from #39545, with pixel-preserving baseline adaptation described below. The original #39545 remains unchanged.
The API port started from
net11.0base94c833d0d23e20062f375d96c980ebf427be1249; the branch subsequently integrated targete6d22838eabafdce06753be819dd7ea4e9ccb797by a normal merge. The API inventory changes come from601a5694eb92bf63dbad6882b0347c85bf77b17c, whose rollover uses the existingeng/scripts/mark-shipped.ps1workflow documented indocs/design/APIChangeTracking.md. No rebase or force push.*REMOVED*directives. Every removal matches an existing shipped record; replacement signatures and analyzer-generated~markers are preserved.net11.0; this port does not restore them.The GA shipped inventories are byte-identical to the source PR. Each resulting unshipped file is exactly the source PR's nullable directive plus that file's net11-only appended entries. The effective API set of every current target inventory is unchanged; this moves existing records between shipped/unshipped rather than changing APIs.
Android screenshot cropping -- #39545
Adapt the change by Ahamed-Ali from source
5bfc7c785723c624942271e4f064fe9d74ead215in #39545:App.GetSystemBars()/statusBar.height, rather than fixed 60/112-pixel values. Malformed/missing status-bar data and negative heights fail explicitly.cropTopoverrides, bottom/side cropping, comparison tolerances, assertions, existing retry behavior, and other platforms.Baseline adaptation is deliberately not a blind copy of every source image. The complete source PR contains 2,415 PNG changes. A decoded-RGBA audit found only 160 exact top crops; 400 also change the last row, 1,850 change additional pixels, four landscape images grow, and one added file is a generated
*-diff.png. Those differences are not all certified crop-only changes.This branch instead updates 2,414 existing expected baselines, preserving the current target's rendered pixels and PNG color metadata:
Material3CheckBox_Click_VerifyVisualState-diff.pngas an expected baseline.Every result was reopened and compared against its expected decoded pixel buffer. Palette transparency and applicable gamma/ICC/sRGB metadata were preserved and verified. This proves the transformation, not native rendering correctness or that every CI failure is fixed. No unrelated rendering replacement, tolerance increase, new retry, skip, or product-code workaround is included.
Combined scope against the integrated target: 2,532 paths -- 116 API text files, 2,414 expected PNGs, the shared screenshot helper, and its documentation.
API validation retained from the original API-only head
Used the existing private .NET SDK 11.0.100 installation, not the default installed 11.0 preview SDK. No SDK/workload version override or analyzer suppression was introduced.
Prerequisite build -- passed, 0 warnings / 0 errors:
The initial
--no-restoreprerequisite attempt failed because this worktree had no restored assets/reference assemblies. The normal restore/build above resolved those prerequisites without source or configuration changes.Public-API analyzer Release rebuilds -- all four passed, each with 0 warnings / 0 errors:
Formatting verification -- passed, no changes, scoped to the 116 changed API files:
Independent session-artifact inventory validation -- passed across all 70 current baseline pairs. It verifies:
(old shipped union old additions) minus explicit removalsequals the source rollover's shipped inventory, without duplicates or tombstones;git diff --check-- passed.These are inventory, neutral managed build/analyzer, and formatting checks. Native Android/Apple/Windows/Tizen builds, device/UI tests, signing/packaging, and the full CI suite were not run locally. No XCTest or MacCatalyst UI automation was performed; CI is reported separately.
Upstream open
net11.0API-shipping work was checked before publication; no existing counterpart was found.Combined-change checks and CI boundary
git diff --check: passed.Actual UI assembly compilation, API 30/API 36 visual execution, and the rest of CI remain separate gates. The previous API-only head's CI had real exact-base XAML/device failures, Windows packaged pre-test deployment failures, and unfinished/unmatched UI results. Those have not been relabeled as green or waived by this crop change. Fresh combined-head CI is required before claiming all tests pass.
Issues Fixed
Requested
net11.0counterpart of #39474 and Android screenshot-cropping correction from #39545. This does not close or retarget either original PR. No additional issue-closing claim.