Skip to content

[net11] [Test Failure] [Android] Fix Android device test failure for Root Replacement During Flyout Construction Publishes Latest Root - #39692

Merged
kubaflo merged 1 commit into
dotnet:net11.0from
Vignesh-SF3580:fix-38214DeviceTestFailure
Oct 27, 2026

Conversation

@Vignesh-SF3580

Copy link
Copy Markdown
Contributor

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

Before Issue Fix After Issue Fix

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39692

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39692"

@Vignesh-SF3580 Vignesh-SF3580 added community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration labels Oct 27, 2026
@azure-pipelines

This comment has been minimized.

@vishnumenon2684

This comment has been minimized.

@azure-pipelines

This comment has been minimized.

@sheiksyedm
sheiksyedm marked this pull request as ready for review October 27, 2026 11:45
@sheiksyedm
sheiksyedm requested review from kubaflo and a balanced review from Copilot October 27, 2026 11:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 ReentrantFlyoutPage with ReentrantFlyoutViewHandler in WindowHandlerTests.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

@kubaflo

This comment has been minimized.

@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Oct 27, 2026
@azure-pipelines

This comment has been minimized.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expert Review — 0 findings

Reviewed commit 29de3fa.

@MauiBot

MauiBot commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@Vignesh-SF3580 — existing-test verification for commit 29de3fa2.

Result FAILED Platform Android Commit 29de3fa2


🧪 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
Test group Without fix With fix
ShellHandlerTests_Shell ⚠ Passed without the fix Not run (test-only change)

PR head: 29de3fa2.

Without-fix baseline: 72c46c7e.

@MauiBot MauiBot added s/agent-gate-failed AI could not verify tests catch the bug and removed s/agent-review-in-progress AI review is currently running for this PR labels Oct 27, 2026
@kubaflo
kubaflo merged commit bbdda8d into dotnet:net11.0 Oct 27, 2026
139 of 181 checks passed
@github-actions github-actions Bot added this to the .NET 11.0-rc2 milestone Oct 27, 2026
kubaflo added a commit that referenced this pull request Oct 27, 2026
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
@Vignesh-SF3580 Vignesh-SF3580 changed the title [net11] [Android] Fix Android device test failure for Root Replacement During Flyout Construction Publishes Latest Root [net11] [Test Failure] [Android] Fix Android device test failure for Root Replacement During Flyout Construction Publishes Latest Root Oct 28, 2026
kubaflo added a commit that referenced this pull request Nov 3, 2026
…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.
-->

---------
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 27, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 29de3fa2 Deployed Oct 27, 2026 by Vignesh-SF3580 via conclusion #2531
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/android s/agent-gate-failed AI could not verify tests catch the bug test-failure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants