Repository navigation
Conversation
Wait for Android image loading after attachment, wait for HybridWebView page readiness before Apple leak checks, and give the ten-navigation scenario a dedicated timeout. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
kubaflo
temporarily deployed
to
copilot-pat-pool
September 20, 2026 18:59 — with
GitHub Actions
Inactive
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38713Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38713" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
kubaflo
temporarily deployed
to
copilot-pat-pool
September 20, 2026 19:00 — with
GitHub Actions
Inactive
Contributor
Author
|
/azp run maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
kubaflo
temporarily deployed
to
copilot-pat-pool
September 20, 2026 19:01 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 20, 2026 19:03 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 20, 2026 19:03 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
September 20, 2026 19:04 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The changes require final human review because they are too complex or risky for automated approval.
Review effort: Lite
Findings: None
What changed in this PR
Stabilizes Android and Apple device-test lifecycle timing without changing product code.
Changes:
- Attaches Android image layouts before waiting for rendering.
- Waits for HybridWebView readiness on Apple platforms.
- Extends the nested tab-navigation test timeout to 30 seconds.
| File | Description |
|---|---|
| src/Controls/tests/DeviceTests/Memory/MemoryTests.cs | Updated as part of this pull request. |
| src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.cs | Updated as part of this pull request. |
| src/Controls/tests/DeviceTests/Elements/Image/ImageTests.cs | Updated as part of this pull request. |
| src/Controls/tests/DeviceTests/Elements/HybridWebView/HybridWebViewTestsBase.cs | Updated as part of this pull request. |
Wait for the loaded native image to finish layout before asserting its pixels. Preserve intrinsic sizing and the original red-pixel assertion. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
/azp run maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This was referenced Sep 21, 2026
Use the full pinned SDK package version for Windows Helix payloads instead of the shortened installed SDK version. Preserve explicit overrides and XHarness SDK selection on other platforms, with regression coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run listener registration, simulated callbacks, assertions and cleanup in one UI-thread turn. Dispose both test managers so native callbacks cannot leak into subsequent tests. Preserve detection of duplicate registrations. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
/azp run maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Contributor
Author
|
/azp run maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Mutate the drawable before applying SwipeItem icon styling. Add a regression that renders a separately loaded resource after tinting, and remove the image-layout workaround that did not address the failure. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
/azp run maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
/azp run maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
…st compilation Heap dumps identify scrollbar-fading callbacks retaining detached item views beyond fast CoreCLR collection loops. Preserve the collection-attempt limit and leak assertions, allow pending native callbacks to run, and cover delayed release plus intentionally rooted objects. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
/azp run maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Exit after RunTestsAsync disposes its result writer, preserve failure status for failed tests and runner errors, and keep strict CI exit/XML validation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
/azp run maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Fix Android shared-drawable tinting, device-test lifecycle assumptions, and Windows Helix SDK selection/result integrity. This started from failures in main-targeting device build 1603846, compared with passing SR11 build 1602667, and includes subsequent failures observed while validating this PR. No global timeout, test skip, retry, or weakened assertion is added.
SwipeItemMenuItemHandlerapplied a color filter to a resource drawable without callingMutate(). Its shared state could then make a separately loadedred.pngrender black. CallMutate()before applying icon styling. AddSwipeItemIconTintDoesNotAffectSharedImageSource, which creates a tinted SwipeItem and renders a separately loaded copy onto a canvas, requiring the original red pixels. It fails with an all-black image before the product fix and passes afterward. The SwipeItem still receives its intended tint. Remove the earlier window/layout-readiness workaround: build 1605367 disproved it, and the originalImageWithUndefinedSizeAndWithBackgroundSetRendersis restored unchanged from main.AttachAndRundetaches the test-owned view, disconnect its handler on non-Windows platforms and destroy/dispose the Android native WebView in a UI-threadfinally. Windows already disconnects and closes the browser when its test host closes the window and must not be disconnected again. This applies to the functional-test helper, not the memory-leak assertion. Readiness timeouts now report URL, document readiness, bridge presence, sentinel presence, and body text. The 25-second bound and assertions are unchanged. Missing cleanup was found while investigating a Mono timeout; a direct causal reproduction of that timeout was not obtained.finally. Preserve the one-event assertion and distinct-listener simulation that detects duplicate registrations.cf4074a85). Windows must use the fullMicrosoftNETSdkPackageVersion, not the shortenedNETCoreSdkVersion, to download servicing SDKs. Preserve explicit overrides and XHarness SDK selection on other platforms.NavigationCompletedis earlier than WinUI's asynchronous native layer/pin initialization. The unpackaged Map process in build 1605524 crashed with stowed HRESULT0x8007139f; matching native symbols point to Map layer/element operations calling WebView2ExecuteScriptAsync. Wait for the browser's layer creation and pin script to execute before unloading the control, including after reattaching it. Keep the existing 15-second bound and every native-layer/pin assertion. Do not change MapHandler ownership, clear native layers, or close the Map-owned WebView2. This timing correction still requires current-head Windows CI; no local Windows reproduction is claimed.engcorrelation payload.Current verification status
Head
065f4c982brequires full device CI. This PR is not yet verified green across all device suites. Completion requires all seven Helix jobs and all 46 actual suite result sets, including complete Windows category results in both packaging modes. Aggregate pipeline success is insufficient.Build 1605524 on
b90966c8abreported success, but inspecting all seven Helix jobs and all 46 aggregate XML files found a hidden Windows unpackaged Map crash. Its zero-byte Map XML was omitted with only a warning. Controls reported 866 total / 835 passed / 31 skipped instead of the packaged run's 868 total / 837 passed / 31 skipped. Two Map tests were missing and a native crash dump was uploaded. This is an incomplete run, not a pass; the latest commit addresses both the readiness race and the runner's false-green behavior.The other 45 suite result sets were complete with zero failures. Both Android runtimes had Controls 994 total / 982 passed / 12 existing skips, and both the new tint regression and restored original image test explicitly passed. Android CoreCLR's local GC failures did not recur in this CI run. All iOS 18.1/26 and MacCatalyst 15/26 suites had complete results; the earlier missing MacCatalyst Core XML did not recur. The 90 Windows HybridWebView teardown failures were gone in both packaging modes, but that does not excuse the missing unpackaged Map results.
Earlier failures are retained here rather than hidden by later passes:
The 1605221 Windows failures were introduced by the cleanup follow-up:
AttachAndRunalready closes the host window, disconnecting the handler and clearingCoreWebView2; a second disconnection threw inHybridWebView2Proxy.Disconnect. Commit9fdfe272abexcludes Windows from additional cleanup, and 1605524 verified that correction in both modes.Local validation
Mutate()with an independently loaded resource rendered black, then passes with the fix. The original image test also passes. Ten earlier isolated image-category runs passed before this regression reproduced the shared-state problem.Limitations
The original main/SR11 comparison had identical relevant product/test source; no SDK regression is claimed. The Android drawable bug has a fail-before/pass-after reproduction, but the intermittent Apple readiness failure does not. Windows behavior cannot be executed locally on this macOS host and must be verified in CI. Local Android uses API 33 ARM64/workload 36.1.69 rather than CI's x64/workload 36.1.115; local iOS uses 18.5 rather than CI's 18.1. Local builds use the installed .NET 11 preview SDK targeting net10.0, with uncommitted
UseMonoRuntime=false/PublishReadyToRun=falseoverrides for CoreCLR because local crossgen rejects Android. Final cross-platform verification requires actual current-head CI results.