Repository navigation
[net11] [Test Failure] [Android] Fix Android device test failure for Root Replacement During Flyout Construction Publishes Latest Root - #39692
Conversation
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39692Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39692" |
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.
There was a problem hiding this comment.
🔵 Needs a closer look
The registration matches the stated fix, but Android device-test results were unavailable to confirm that it resolves the timeout.
No open issues 🎉
What changed in this PR
This PR updates Android device-test setup so the root-replacement regression test uses its custom flyout handler with the Shell-handler configuration, matching the existing renderer setup.
Changes:
- Registers
ReentrantFlyoutPagewithReentrantFlyoutViewHandlerinWindowHandlerTests.SetupBuilder(). - Limits the change to test configuration; production code is unchanged.
| File | Description |
|---|---|
| src/Controls/tests/DeviceTests/Elements/Shell/ShellHandlerSubclasses.Android.cs | Adds the custom flyout handler registration to the Android test setup. |
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.
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit 29de3fa.
PR Test Gate
🧪 Gate analysis — click to expand❌ Failed. The selected tests did not meet the expected outcomes. Inspect the evidence before changing the test or fix. 📱 Device tests
PR head: 29de3fa2. Without-fix baseline: 72c46c7e. |
The live published net11.0 tip is bbdda8d, not the stale origin tracking ref. Its only change after426ad52 is merged #39692. Verify the complete ShellHandlerSubclasses.Android.cs blob already matches our ca15 correction exactly, then retain upstream ancestry with a normal merge. The tree is unchanged: no duplicate fixture patch, no rebase/force or PR merge. Source-Commit: bbdda8d Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 87b27872-6f30-4208-af18-f1e6de6ff66c
…wipeView analyzer fix (#39854) <!-- 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! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> Intentional, focused backport to **`release/11.0.1xx`**, in two separate commits retaining the original authors and source-commit attribution: - Backport #39832 (`464839d863668cd2be600f0bed8a2a2eff38d303`): run previous-framework (.NET 10) Apple integration `Build` cases on hosted `macOS-26` / Xcode 26.5, while the complementary cases retain GoldenGate / Xcode 27. Preserve coverage with disjoint `DisplayName~net10.0` and `DisplayName!~net10.0` filters, support per-job filter/Xcode overrides, and single-quote filters in the shared PowerShell runner. The documentation wording is adjusted to describe the release branch rather than main. - Backport #39375 (`510d60147a49be8447276b40137e25b6729c8b9b`): use `Assert.Single(collection, predicate)` in the Android SwipeView device test, resolving xUnit2031 without changing its assertion. Fresh checks of release/main/inflight history and open/recently merged PRs found no existing release backport of these two fixes. No product code, snapshots, baselines, quarantines, dependency pins, or pipeline tests are changed. **Deliberately excluded after checking the actual release sources:** #39692 references reentrant Flyout fixture types that are absent on this branch (introduced by #38214); the Catalyst annotation from #39665 targets a grouped EmptyView helper that is also absent (introduced by #37959). Importing those unrelated product prerequisites is outside this PR. The MediaPicker portion is already backported by #39670. #39549 and #39509 are not included. **Validation at head `135cf0fbe740608ceab17aeece755ebbe098e4da`** - Android Controls.DeviceTests compilation passed with the repository-provisioned .NET 11 SDK: `./.dotnet/dotnet build src/Controls/tests/DeviceTests/Controls.DeviceTests.csproj -f net11.0-android -p:IncludeIosTargetFrameworks=false -p:IncludeMacCatalystTargetFrameworks=false -p:IncludeMacOSTargetFrameworks=false -v:minimal` (binary logging enabled). Result: **0 errors**, two existing MAUI1001 runtime-XAML deprecation warnings. Initial attempts exposed missing build tasks; the bootstrap produced the tasks, but its aggregate build reported Java 21 obsolete-option diagnostics. The subsequent affected-project build above succeeded without disabling analyzers or suppressing warnings. - `ruby -ryaml -rdate -e 'ARGV.each {|p| YAML.safe_load(File.read(p), permitted_classes: [Date,Time], aliases: true); puts "parsed #{p}"}' eng/pipelines/ci.yml eng/pipelines/arcade/stage-integration-tests.yml` — **passed**. - Azure definition **302** expanded-YAML preview via `az devops invoke --area pipelines --resource runs --route-parameters project=public pipelineId=302 --api-version 7.1 --http-method POST --in-file azure-preview-request.json --organization https://dev.azure.com/dnceng-public --output json` — **passed**. The preview-only request pinned the branch and exact head above. Server expansion confirms hosted `macOS-26`, `XCODE=26.5`, `REQUIRED_XCODE=26.5` and the previous-framework filter; the complementary lane retains `AcesShared` / `$(AcesMacImageOverride)` and excludes those cases. The expanded YAML also parsed successfully. - Parsed both actual **Azure-expanded** PowerShell runner scripts, after substituting their job filters, with `System.Management.Automation.Language.Parser.ParseInput` — **passed**, zero syntax errors and zero background pipelines for each lane. The local template expansion was checked separately with the same result. - `dotnet format whitespace --folder --include src/Controls/tests/DeviceTests/Elements/SwipeView/SwipeViewTests.Android.cs --verify-no-changes` — **passed**. - `git diff origin/release/11.0.1xx...HEAD --check` — **passed**. **CI remains pending, not green:** [maui-pr 1662034](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1662034) was queued and has now entered `inProgress`, with `triggerInfo.pr.sourceSha` matching this exact head. No completed CI outcome is claimed. Device/UI pipelines have not been queued. Device runtime tests and full integration execution have **not** been run locally. Catalyst source was not changed. The configuration preview is not a test execution or a whole-PR success claim. ### 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. --> Backports #39832 and #39375 (original analyzer issue: #39376) to `release/11.0.1xx`. <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> ---------
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!
Issue Details
The Android Shell-handler test timed out while waiting for finalPage to load, whereas the Shell-renderer variant passed.
Test name: Root Replacement During Flyout Construction Publishes Latest Root
Root Cause
The .NET 11 tests run with both the Shell renderer and Shell handler, but the custom Flyout handler was registered only in the renderer setup, causing the test to fail with the Shell handler.
Description of Changes
Added the missing custom Flyout handler registration to WindowHandlerTests.SetupBuilder() so the test works with both the renderer and handler setups, without modifying production code.
Screenshots