Repository navigation
Conversation
Match the base WindowTests registration so the inherited construction-reentry test actually invokes its replacement callback in WindowHandlerTests. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 73b5ca16-6343-4a5e-bb44-eaa12e175e88
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 18:30 — 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 -- 39571Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39571" |
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 18:30 — with
GitHub Actions
Inactive
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 18:32 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 18:34 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
No code defects were identified, but current required CI results and reported Android validation were not independently verified.
No open issues 🎉
What changed in this PR
Corrects Android native-Shell device-test setup so the inherited Window reentrancy test uses its intended fixture handler. The title and description match the one-line change.
Changes:
- Registers
ReentrantFlyoutPagewithReentrantFlyoutViewHandlerinWindowHandlerTests.SetupBuilder. - Preserves existing native-Shell registrations, test assertions, and product code.
| File | Description |
|---|---|
| src/Controls/tests/DeviceTests/Elements/Shell/ShellHandlerSubclasses.Android.cs | Adds the missing reentrant Flyout fixture registration. |
Review effort: Balanced
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 18:36 — with
GitHub Actions
Inactive
kubaflo
temporarily deployed
to
copilot-pat-pool
October 22, 2026 18:36 — with
GitHub Actions
Inactive
This branch was previously deployed
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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!
Description of Change
Superseded by #39536. This exact test-only fix is now included in the consolidated PR at
63ef2602a7b7350595f10236097056991a55550e, with identical file contents and preserved attribution. This standalone PR is being closed without merging. The per-fix evidence below remains historical evidence for this PR's original head, not new native validation of the combined head; combined-head checks and pending CI are documented in #39536.Register the existing
ReentrantFlyoutPage/ReentrantFlyoutViewHandlerfixture pair in AndroidWindowHandlerTests.SetupBuilder.The native-Shell subclass replaces
WindowTests.SetupBuilderrather than invoking it, and omitted this registration. Its inheritedRootReplacementDuringFlyoutConstructionPublishesLatestRoottest therefore receives an ordinaryFlyoutViewHandler:OnCreatingPlatformViewnever runs,window.Pagenever becomes the finalNavigationPage, and waiting for the final page's native attachment times out. The baseWindowTestsclass already registers the pair and passes unchanged.Scope: one line in
ShellHandlerSubclasses.Android.cs, based on currentnet11.0commit7b0ea7800db3f3faccbaecb665d32b7c61eaf932. NativeShellHandler,ShellItemHandler, andShellSectionHandlerregistrations are preserved. No product code, regression trigger, assertions, timeouts, sleeps, skips, GC fixtures/helpers, dependencies, or pipeline configuration are changed. This is a fixture-wiring correction, not a navigation-product fix or a claim that all CI failures are fixed.Original failure: device build 1644557, investigating #39536. The exact derived-class case fails on Android Mono and CoreCLR, and also fails in exact-base build 1643729. #39536 remains untouched.
Native causal validation
Full repository Controls device-test APKs; pinned .NET SDK
11.0.100-rtm.26514.118(product11.0.100), Android workload 37.2.15, private headless API 33 ARM64 emulator. Mono and CoreCLR were built separately, with their distinct native runtime payloads verified.Every row below was run in three fresh application processes per runtime, selecting the exact failing
Microsoft.Maui.DeviceTests.WindowHandlerTestsclass using the existing runner's temporary class-filter injection. Each actual xUnit XML contains exactly 33 distinct cases, no skips/errors, and no unrelated class.Reversion/restoration means switching the installed native APK input, not rewriting repository history. Immutable target source is used for baseline builds. The 24 processes have independently checked distinct Android PIDs; 792 case executions reconcile with the XML assembly counts. The other 32 tests pass in every arm, including superseded requests, discarded prepared roots, fragment-execution deferral, toolbar redirection, disconnect reentrancy, and native root attachment.
The passing test retains its original assertions: construction really reenters,
window.Pageis the final root, the superseded Flyout handler is disconnected, the final toolbar exists, the published platform root matches, and the final page is actually attached beneath that native root.Separately, unchanged base
WindowTestspassed 33/33 in four Mono processes. These are controls, not evidence that the failing derived subclass passed before the fix.Commands and results (
Econtains preserved, uncommitted validation scripts, APKs, logs and XML):An initial emulator exit 134 occurred before any test installation/execution and is not counted as a target failure. The successful causal matrix ran only after verifying the private emulator's boot state, API and architecture under an exclusive local-runtime lease. The owned emulator was stopped and its private AVD removed afterward; no shared ADB server, other device, global SDK/workload or configuration changes.
Open PR exact-file inventory (87 PRs) and recent main/net11/inflight file history found no duplicate fixture fix.
pr-finalizeverifies the focused diff and title/body consistency. Local evidence is Android ARM64 only; no local MacCatalyst, XCTest, desktop UI automation, cross-platform certification or full-suite-green claim.Issues Fixed
No separate issue. Fixes the pre-existing Android native-Shell
WindowHandlerTests.RootReplacementDuringFlyoutConstructionPublishesLatestRootfixture failure identified while investigating #39536.