Skip to content

[Net11] Restricted Flaky test cases - #39771

Merged
kubaflo merged 5 commits into
dotnet:release/11.0.1xxfrom
TamilarasanSF4853:release-net11.0-image-resave
Oct 30, 2026
Merged

kubaflo merged 5 commits into
dotnet:release/11.0.1xxfrom
TamilarasanSF4853:release-net11.0-image-resave

Conversation

@TamilarasanSF4853

@TamilarasanSF4853 TamilarasanSF4853 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

In .NET 11, the VerifyShellSearch_CharacterSpacing, VerifyShellSearch_TextColor and ValidateBackgroundColorDoesNotAffectInputTransparent tests are not working properly on CI devices, making them flaky. Therefore, these tests have been restricted for now to avoid flakiness.

Changes:

  • In Windows, when SearchHandler is focused, the focus label does not get updated consistently, making the test flaky. Therefore, the test was restricted to avoid flaky behavior on Windows.
  • On CI Mac devices, tapping on the layout does not work properly in the ValidateBackgroundColorDoesNotAffectInputTransparent test, causing the test to become flaky. Therefore, the test has been restricted on Mac to avoid flakiness.

@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 -- 39771

Or

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

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Oct 30, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@TamilarasanSF4853! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Oct 30, 2026
@azure-pipelines

This comment has been minimized.

@vishnumenon2684

This comment has been minimized.

@azure-pipelines

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 30, 2026
@MauiBot

This comment has been minimized.

@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 30, 2026
@TamilarasanSF4853 TamilarasanSF4853 changed the title [Net11] Resaved VerifyShellSearch_CharacterSpacing Windows image [Net11] Fixed VerifyShellSearch_CharacterSpacing Flaky test Oct 30, 2026
@Ahamed-Ali Ahamed-Ali changed the title [Net11] Fixed VerifyShellSearch_CharacterSpacing Flaky test [Net11] Restricted Flaky test cases Oct 30, 2026
@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 30, 2026
@azure-pipelines

This comment has been minimized.

@Ahamed-Ali
Ahamed-Ali marked this pull request as ready for review October 30, 2026 14:19
@sheiksyedm
sheiksyedm requested a review from kubaflo October 30, 2026 15:06
@MauiBot

MauiBot commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

PR Test Gate

@TamilarasanSF4853 — existing-test verification for commit dce9cb52.

Result FAILED Platform Android Commit dce9cb52


🧪 Gate analysis — click to expand

❌ Failed. The selected tests did not meet the expected outcomes. Inspect the evidence before changing the test or fix.

🖥 UI tests
Test group Without fix With fix
Issue17389 ⚠ Passed without the fix Not run (test-only change)
ShellSearchHandlerFeatureTests ⚠ Passed without the fix Not run (test-only change)

PR head: dce9cb52.

Without-fix baseline: 8c3ee4e1.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Oct 30, 2026
@kubaflo
kubaflo merged commit c4902f5 into dotnet:release/11.0.1xx Oct 30, 2026
32 of 45 checks passed
@github-actions github-actions Bot added this to the .NET 11.0 GA milestone Oct 30, 2026
kubaflo added a commit that referenced this pull request Oct 30, 2026
Merge c4902f5 from release/11.0.1xx without adopting the new Catalyst gesture or Windows Shell text-color/character-spacing quarantines from #39771. Preserve existing unsupported-platform guards. Managed Catalyst and Windows drivers build, and NUnit discovery confirms all three cases remain enabled.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 8095f925-4a70-4d95-9e63-cd33cd5e4cd0
kubaflo added a commit that referenced this pull request Oct 31, 2026
…39742)

<!-- 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 -->

Intentionally targets `release/11.0.1xx`. Align SDK dependencies with
their coherent parents and supported Xcode, restore blocked execution,
and fix fixture/readiness defects **without adding exclusions or
weakening assertions**. Published head:
**`a7a065d0597357accfc99af3c75c0fbe7c630287`**. Its new full native CI
is running. **This PR is not wholly green:** Android Debug resources,
Windows/Catalyst UI failures, packaged deployment, Pester policy and
Maestro acceptance remain unresolved.

[marker]: <> (Begin:dd7cfc83-01ef-4e81-9c5f-0275227f2fa5)
## From https://github.com/dotnet/android
- **Subscription**:
[dd7cfc83-01ef-4e81-9c5f-0275227f2fa5](https://maestro.dot.net/subscriptions?search=dd7cfc83-01ef-4e81-9c5f-0275227f2fa5)
- **Build**:
[11.0.1xx-6d4cadfefbeab3fb1bab7a13b968833799fc7c48-1](https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=15859290)
([338938](https://maestro.dot.net/channel/8298/github:dotnet:android/build/338938))
- **Date Produced**: October 29, 2026 6:00:40 PM UTC
- **Commit**:
[6d4cadfefbeab3fb1bab7a13b968833799fc7c48](dotnet/android@6d4cadf)
- **Branch**:
[release/11.0.1xx](https://github.com/dotnet/android/tree/release/11.0.1xx)

[DependencyUpdate]: <> (Begin)

- **Dependency Updates**:
  - From [37.2.24 to 37.2.29][2]
     - Microsoft.Android.Sdk.Windows

[2]: dotnet/android@446d10b...6d4cadf

[DependencyUpdate]: <> (End)

[marker]: <> (End:dd7cfc83-01ef-4e81-9c5f-0275227f2fa5)

[marker]: <> (Begin:9c8396a8-3960-4c04-a42a-e5d8fd60b14b)
## From https://github.com/dotnet/macios — proposed update deferred
- **Subscription**:
[9c8396a8-3960-4c04-a42a-e5d8fd60b14b](https://maestro.dot.net/subscriptions?search=9c8396a8-3960-4c04-a42a-e5d8fd60b14b)
- **Proposed build**:
[20261029.2](https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=15860281)
([338937](https://maestro.dot.net/channel/8298/github:dotnet:macios/build/338937))
- **Date Produced**: October 29, 2026 5:59:11 PM UTC
- **Proposed commit**:
[01cf76bb05fb2c0f857102f33e29a55bc6b148c1](dotnet/macios@01cf76b)
- **Branch**:
[release/11.0.1xx](https://github.com/dotnet/macios/tree/release/11.0.1xx)

[DependencyUpdate]: <> (Begin)

- **Deferred updates**: proposed [27.0.12230 → 27.0.12269][3] for
Microsoft.MacCatalyst.Sdk.net11.0_27.0, Microsoft.macOS.Sdk.net11.0_27.0
and Microsoft.tvOS.Sdk.net11.0_27.0 requires Xcode27.1. Retain
**27.0.12230**, matching iOS and SHA
`e4732a6dcad66fe70491ad3f808db1e3f2a04541`.

[3]: dotnet/macios@e4732a6...01cf76b

[DependencyUpdate]: <> (End)

[marker]: <> (End:9c8396a8-3960-4c04-a42a-e5d8fd60b14b)

#### Latest implementation

**a7a065d0597 — bound Android failure diagnostics, not test execution.**
Earlier `4338` UI1656915/raw5844 completes its final failed test run
at01:21, then blocks in `adb logcat -d` until02:42 cancellation. Use
Cake's owned `IProcess` and the existing **30-second ADB command
deadline**; its bounded wait terminates the process. Log a typed
diagnostic timeout and rethrow the original UI-test failure. The
standalone logcat target still fails on timeout. No added retries, test
skips, larger test budgets or claimed emulator-connectivity repair.
Update the canonical CI documentation.

**ae09556e2a7 — wait for native search restoration before one focus
action.** Latest `8324` Windows unpackaged execution passes replacement
and disconnection, but removal fails at the immediate native `Focus()`
call after `PopAsync` (line98), before the managed-focus/event
assertions. Wait for the existing box to be loaded, visible and laid
out, then assert the same box and perform the original single focus
action. Preserve all three cases, native-focus checks and the second
focus-event assertion. **New native execution is required; formatting is
not runtime proof.**

**8324f1db042 — remove the delayed strong CarouselView capture.**
`ItemsViewController2` stores its view weakly, but
`UpdateInitialPosition` previously captured a strong `carousel` local
across its existing100ms delay and queued UI callback. Reacquire the
weak view inside that callback and verify its connected handler still
owns this controller. Preserve100ms, all current-item/position
restoration from #36287, every original memory assertion and all40 GC
cycles.

Before: Device1656984/BOT-0306 and Device1657049/BOT-0324 both fail the
generic CarouselView weak-view test on macOS15.7.1; each Controls
run1467/1428 Passed/1 Failed/38 recorded exclusions. After: exact `8324`
Device1657200 passes **all10 Catalyst XML work items on OS15/26**; the
generic CarouselView case passes22.5092ms/14.080ms, and Flyout/Tabbed
variants pass. Actual Apple compile/raw63 succeeds with zero errors.
These are source-labeled native before/after cohorts, **not a
fix-reverted-red/restored-green experiment or full latest UI-position
certification**. Local Xcode26.6/missing maccatalyst workload was not
bypassed.

**cc624e35a36 + ff8f346 — Windows search-focus ownership and real
navigation tests.** Clear detached SearchHandler focus on
removal/replacement/disconnection, null disconnected ownership and
synchronize an attached handler from native AutoSuggestBox/TextBox
focus. Old `4338` TextColor actual46123750/100196 has pixel-identical
red search glyphs but a blank focus marker;195 marker-region pixels
and479 other pixels differ, so the marker is not claimed as the only
difference. No golden, mask or tolerance change. #35079's existing
Show/HideSoftInput wiring is already present, not a duplicate fix.

The first two new tests incorrectly invoked an unchanged CurrentItem
mapper, which returns without retargeting. Replace that setup with real
page PushAsync/PopAsync, retaining all oracles. Both native Windows
builds/raw61,100 pass at `8324`; current unpackaged
replacement/disconnection pass, removal still requires the new readiness
correction. The latest Windows UI TextColor method no longer appears
among failures, but three other Shell screenshots fail; **the complete
visual fix is not certified**.

**bbb5040f6b6 — remove a disproven Catalyst workaround, not coverage.**
Both original relative-coordinate/native event traces and screenshots
put the click inside the visible foreground RedGrid, yet the first
expected tap count1 remains0. Remove optional-target dispatch/private
helper and retain shared physical TapElement, all eight actions,
strict1/2/3/4 then4/0, original readiness and deadlines. Managed
transport/discovery checks are not native success. **The original
gesture/#39775 remains unresolved.**

**4338ff9e1cf — offline picker-scroll fixture.** Use bundled
dotnet_bot.png and remove the separate internet gate that replaces the
entire page with NoInternetAccessLabel. Preserve all17 items, varying
heights40–110, width60, scroll/picker/layout actions and both5px
assertions. Task-owned API30 native scroll→picker Cancel→layout twice
has physicalY1532 unchanged; gate-only reintroduction loses
ScrollButton, restoring the fixed APK restores success. These are manual
native counterfactual measurements, not NUnit certification. Earlier
iOS18.5 run46122258 is59/58 Passed/1 existing exclusion; exact
picker/layout100026 passes4.194s.

**ed65edb9fe0 — previous-.NET coherent children.** Retained macios
parent e4732a6d declares all four **net10.0_27.0 /27.0.10725
/735cfa26761f4478667a0a3d14e32384a1e73fd2** children. Update package
IDs/versions/SHAs, property names and feed together; keep every
coherent-parent relationship. Child Make.config requires Xcode27.0,
packages exist, secure XML comparison matches. `darc verify --ci` still
reports the same four unrelated baseline metadata errors
(TizenUIExtensions/XUnitAnalyzers duplicates; XHarness case/version),
not a pass.

**8786c793965 — normal target merge without new quarantines.** Reject
#39771's added Catalyst gesture and Windows Shell
TextColor/CharacterSpacing exclusions, preserve existing platform
guards. No rebase, squash, force-push or weakened assertions.

#### Latest validation and source identity

| Pipeline | Actual source | State |
| --- | --- | --- |
|
[Main1657387](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1657387)
| Latest `a7a065d`; real merge8053794f, exact pr.sourceSha verified |
Full validation running |
|
[Device1657386](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1657386)
| Exact latest `a7a065d` | Full native validation running |
|
[UI1657296](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1657296)
| Prior `8324` | Still running; classified failures below |
| Latest `a7a065d` UI batch | Automatic batching after prior cohort | No
duplicate manual dispatch |
| [Prior
main1657201](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1657201)
| `8324`; real merge21ee38dc, source verified | **Completed Failed**,
Android Debug APT2260 |
| [Prior
Device1657200](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1657200)
| `8324` | **Completed Failed**, complete9-queue inventory |
| [Earlier
main1656741](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1656741)
| `4338`; real mergee3821933 | **Succeeded**, including Windows
integration |
| [Earlier
Device1656740](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1656740)
| `4338` | **Succeeded;9 queues/62 real XMLs audited** |

**Complete prior `8324` inventory:**9 terminal queues/62 real items;
**61 nonempty result sets/1 missing**. Measured subtotal **42,954
total/41,768 Passed/1 Failed/1,185 recorded exclusions/zero XML error
nodes**. Missing packaged Controls results are null measurements, not
executed tests or zero failures. The strict non-Windows subset is8
queues/52 XMLs: **36,992 total/36,096 Passed/896 recorded
exclusions/zero failures/errors**. These are not relabeled as
newest-head results.

Historical complete inventories remain retained: `cc624e`43,532/42,325
Passed/5 Failed/1,202 exclusions with1 missing;
`bbb`43,801/42,585/4/1,212 with1 missing. Earlier green `4338`
is43,844/42,628 Passed/1,216 exclusions/zero failures/errors, all62 XMLs
after one unchanged failed-Windows-job replacement. That verifies
replacement-worker execution, not repair of corrupt workers. No
all-users runtime/registry cleanup was authorized.

Every initial cohort retains default categories/stages/queues. Queue
controllers and existing exclusions are not counted as executed tests.
Preserve initial failures and missing measurements; no retry-until-green
loop. Certification requires actual terminal identities, nonempty
parseable XML, consistent counters and error-node checks—not XHarness
exit zero or a green badge.

#### Current and historical failures remain explicit

- **Android Debug resources, prior main1657201/raw201:**20 APT2260
occurrences in Controls.Core Android styles. Original failing/passing
binlogs have identical163-item full Controls restore inputs, including
Android37.0/dependencies/asset flags, and both generate
g.props/g.targets and write assets. The failing later build imports zero
package children versus98 in the passing evaluation. Embedded generated
NuGet files capture the same initial portable-only version in both; they
do not prove the later physical file's contents. **No safe root
cause/source patch established; no guessed package reference,
restore-force, SDK downgrade or resource bypass.**
- **Windows native, prior Device1657200/raw165:**unpackaged
Controls896/864 Passed/1 Failed/31 exclusions; removal fails native
Focus() after PopAsync, replacement/disconnection pass. Packaged
Controls on a000ONX fails Appx80073CF0/80070003 before tests; no XML.
Current listed runtime manifests print true, unlike earlier
missing-folder workers, so do not claim an orphaned runtime without
exact deployment-path proof. Eight other Windows apps have nonempty XML
with zero failures.
- **Windows UI Shell2, `8324` UI1657296/raw5671:**both attempts197/181
Passed/3 Failed/13 existing exclusions: CancelButtonColor0.76%,
CharacterSpacing0.76%, TextTransformUppercase0.70%. TextColor is not
among these failures. Native state/actual images must be examined before
any visual repair; no quarantine or golden refresh.
- **Catalyst WebView30381, `8324` UI1657296/raw5734:**both attempts47/46
Passed/1 Failed/zero exclusions;45s Appium timeout tapping
UpdateStatusButton at line28. A separately owned isolated bundled-HTML
fixture/path fix now has retained iPhone/Catalyst evidence; evaluate
only those commits, not promotion ancestors, and do not duplicate
implementation or claim this PR includes it yet.
- **Android CV2, `8324` UI1657296/raw5025:**initial77/76 Passed/1
Failed/zero exclusions, Issue32223 reorder/DataTemplateSelector expects
Success but is empty. Stock full retry77/69 Passed/8 Failed/zero
exclusions; the eight failures are EmptyView fixture setup waiting
EmptyViewButton at GalleryUITest:61, not eight demonstrated EmptyView
product defects. Published run46132128; native root-page state remains
unproven.
- **Older `4338` UI1656915:**Shell2 TextColor0.70%; Catalyst Layout
first RedGrid tap remains red; Shadow fails DNS downloading the MSBuild
logger before tests/no TRX. Android CV3 first117/56 Passed/61 Failed,
stock retry117 Failed after device loss; logcat then blocks82min.
Original results and lack of execution are retained, never turned into
successes.
- **Pester policy:**prior `8324` Actions41157612663/job124407768015
raw2663/2662 Passed/1 Failed/zero Skipped/Inconclusive/NotRun.
Review-Tests.Tests.ps1:85 expects inline GPT5.6 while the workflow
intentionally imports GPT6.1 (#39036). No model downgrade, fake literal,
deleted/skipped assertion or pipeline-test edit. The exception to the
user's pipeline-test-edit prohibition was not approved; unavailable
input is not permission. Newest-head outcome still needs inspection.
- **Maestro:**prior `8324` coherency check124408762176 quotes obsolete
_26.5 children/proposed parent01cf76bb absent from current manifests.
The local graph matches retained e4732a6d; that is not service
acceptance. No parent attributes, pins, subscriptions, channels or check
policies are removed to clear a badge.

#### Earlier implemented fixes and measured evidence

**Historical, source-labeled receipts—not newest-head certification:**

- Retain Android37.2.29/Apple27.0.12230 and supported Xcode; defer
proposed Apple27.1 requirements, never bypass native validation.
- Material3 upstream38c7492 (#38822), three obsolete Switch Ignores
removed (#19883), upstream image32cc36e (#39736): Android29 run46074134
**411/411 Passed, zero exclusions**. No tolerance/mask/crop change.
- WeakList non-inlined factory retains liveness/count/content oracles:
Core Release/Debug1074 Passed/3 existing exclusions each;10 fixture
runs30 Passed/zero excluded, strong-root negative control red; actual
Windows XML passes all three methods.
- Navigation stress preserves10 push/pop cycles/final return, clamps
float progress/ends timers: Catalyst46061170 **72/72 Passed**,
exact347.166s.
- Rotation/keyboard predicate readiness
retains15s/500ms,1px/portrait/keyboard checks: SafeAreaEdges46061290
**164/164 Passed**. Isolated Grid6e47ece: iOS18.5 run46082510 **173/173
Passed**, orientation2.153s/keyboard5.643s; bad-geometry controls remain
red. Not a native revert experiment.
- Checkout-local Appium npm cache from #39600, no global
deletion/chown/elevation/version/retry change; actual CV1 run46055548
**76/76 Passed**.
- Query cleanup #39359/#39725 removes leaked A;three original789×563 Mac
baselines aligned, all four native-icon methods retained:46074330
**149/149 Passed**.
- Depth-one/no-tags UI/integration checkout leaves build/tag versioning
unchanged; job-local CLI state preserves NuGet/Arcade imports.
Missing-TRX publication fails explicitly. No pipeline/configuration
tests written or modified.
- Older bounded recovery receipts remain on their original source:
Android integration46083082 **11/11 Passed**, CV6 **90/90 Passed**, full
main1655682 succeeds. Failed Blazor launch/deployment/tooltip/iframe
cases remain source-labeled, not claimed as causal fixes or latest
coverage.

**Validation commands/results:** `.dotnet/dotnet cake
eng/devices/android.cake --dryrun --target=logcat --boot=false
--create=false` **passes compilation/dry-run with JDK17; no
tasks/devices execute**, existing addon/unused-variable warnings remain.
`.dotnet/dotnet format whitespace --folder --include
src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.Windows.cs
eng/devices/android.cake --verbosity quiet` and `git diff --check`
**pass**. Actual prior `8324` Apple/raw63 and Windows/raw61,100 native
builds pass. Local maccatalyst library build remains NETSDK1147/missing
workload and Xcode26.6 below SDK27; local Windows MakePri.exe cannot run
on Mac. No bypass, local host-macOS XCTest or physical Apple device.
**Newest native runtime validation is pending in the full CI runs
above.**

### 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. -->

Addresses SDK/child-coherency blockers, offline picker gating,
bootstrap/readiness/GC/timer defects, query-cleanup images, silent
missing-result publication and unbounded Android failure diagnostics.
Preserves Switch/search-icon/Catalyst-gesture/Windows-Shell coverage.
Native CarouselView retention now has before/after receipts, but the new
Windows readiness/diagnostic changes and complete newest matrix remain
unverified. **Do not claim #39775 fixed. No separately filed issue.
Remaining functional/build/deployment failures, Pester permission and
Maestro verdict keep this PR incomplete.**

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <kubaflo123@gmail.com>
kubaflo pushed a commit that referenced this pull request Nov 2, 2026
In .NET 11 release branch , PR #39771
changes are reverted via PR #39742.
So, bring back the PR changes here to resolve the CI failures.
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration s/agent-gate-failed AI could not verify tests catch the bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants