Skip to content

test: Disable five flaky runtime tests (InputPane occlusion, scroll chaining, BitmapIcon monochrome) (backport #24491) - #24583

Merged
ajpinedam merged 4 commits into
servicing/6.8from
mergify/bp/servicing/6.8/pr-24491
Sep 22, 2026
Merged

ajpinedam merged 4 commits into
servicing/6.8from
mergify/bp/servicing/6.8/pr-24491

Conversation

@mergify

@mergify mergify Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: #24489 (intentionally not auto-closed — that issue tracks fixing and re-enabling these tests)

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Five runtime tests fail intermittently and are adding noise to CI. All point at #24489, which tracks making them reliable and re-enabling them.

Four are disabled on all targets with [Ignore]:

test file
Given_InputPane.When_Focused_TextBox_Has_Content_Below_Then_Scrolled_Above_Occlusion Tests/Windows_UI_ViewManagement/Given_InputPane.cs
Given_InputPane.When_Focused_Element_Not_Occluded_Then_Centered_Content_Is_Not_Moved same
Given_InputPane.When_Occluded_Field_In_Viewport_Sized_Content_Then_Scrolled_Above_Occlusion same
Given_ScrollViewer_ScrollChaining.When_Chaining_Backwards_Then_Residual_Chains_To_Outer Tests/Windows_UI_Xaml_Controls/ScrollViewerTests/Given_ScrollViewer_ScrollChaining.cs

One is flaky only on Skia iOS / Skia tvOS and is excluded just there:

test file
Given_BitmapIcon.When_Foreground_Changed_With_ShowAsMonochrome_True Tests/Windows_UI_Xaml_Controls/Icons/Given_BitmapIcon.cs

"All targets" means all targets — there is no green configuration to keep them on

This is the part worth being explicit about, because two review passes read the Include(Skia) gate on the Given_InputPane tests as if it narrowed the flakiness. It doesn't — it narrows the feature:

  • RuntimeTestPlatforms.Skia is SkiaDesktop | SkiaWasm | SkiaMobile, i.e. every leg Uno runs runtime tests on — Skia desktop (Windows, Linux, Linux Framebuffer, macOS), Skia WASM, Skia Android, Skia iOS and Skia tvOS. The only thing it excludes is WinAppSDK, where soft-keyboard occlusion scrolling is the OS's job and the test is meaningless. So "flaky on all targets" and "gated to Skia" are not in tension: the gate is the feature's platform scope, the [Ignore] is the flake's, and the flake's scope is everything inside the gate.
  • Given_ScrollViewer_ScrollChaining isn't platform-gated at all (the class body is #if HAS_UNO && UNO_HAS_MANAGED_SCROLL_PRESENTER), and When_Chaining_Backwards_Then_Residual_Chains_To_Outer fails on every leg that compiles it.
  • These are timing races on a dispatcher/layout round-trip, not platform-specific defects, so they do not stay green on any one host, renderer or OS. A [PlatformCondition] exclusion would therefore have to list every leg — which is what [Ignore] already is, spelled with one attribute instead of eight.

The contrast with the fifth test is the proof that the distinction is deliberate rather than lazy: Given_BitmapIcon.When_Foreground_Changed_With_ShowAsMonochrome_True is platform-specific, so it gets [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.SkiaUIKit)] and keeps running everywhere else. If the four could have been scoped that way, they would have been.

The [Ignore] reason now reads "Flaky on all targets, not one platform" so the same question doesn't get re-asked from the test report alone, and the Given_BitmapIcon exclusion comment now names Skia iOS/tvOS explicitly.

Mechanics

The three Given_InputPane tests keep their existing [PlatformCondition(ConditionMode.Include, RuntimeTestPlatforms.Skia)]; [Ignore] supersedes it, so removing the [Ignore] later restores the original Skia-only gating with no further edit.

Given_BitmapIcon gets [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.SkiaUIKit)] (SkiaUIKit == SkiaIOS | SkiaTvOS) rather than a second [Ignore]: the method already carries a conditional [Ignore] for non-Skia and non-RenderTargetBitmap targets, and IgnoreAttribute is AllowMultiple = false, so a second one would be a duplicate-attribute compile error on those builds. PlatformConditionAttribute has no message parameter, which is why its reason lives in a trailing comment.

Coverage retained: the other three Given_InputPane tests (When_OccludedRect_Set_Then_Focused_TextBox_Scrolled_Into_View, When_OccludedRect_Cleared_Then_ScrollViewer_Padding_Restored, When_App_Ensured_Focused_Element_In_View_Then_No_Pad_Is_Applied) and the other five Given_ScrollViewer_ScrollChaining tests stay enabled, so the occlusion-pad and scroll-chaining features are not left uncovered. The BitmapIcon test still runs on every other Skia target, and When_ShowAsMonochrome_False_Foreground_Change_Does_Not_Reload_Image is untouched.

This is a tracked quarantine, not a deletion: #24489 is open, assigned, and records the per-test flakiness hypotheses (half-pixel geometry tolerances, viewport-height-dependent setup arithmetic, WaitForIdle vs. the RequestUpdate offset refresh) as starting points for the fix. They are labelled hypotheses precisely because the fix work hasn't happened yet — the decision to quarantine is about CI noise, and the root-cause analysis is what #24489 is for.

PR Checklist ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_01RjVqiGVHKGZyRLuy9SVMZi


This is an automatic backport of pull request #24491 done by [Mergify](https://mergify.com).

MartinZikmund and others added 3 commits September 21, 2026 20:17
Three InputPane occlusion-scrolling tests and the backwards scroll-chaining
test fail intermittently on every target. Disabled on all targets until they
are made reliable; tracked by #24489.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MbHmxnFUWzjgeBQgdZGC1T
(cherry picked from commit 9431b99)
The [Ignore] reason now says the flakiness is not platform-scoped, so the
Include(Skia) gate on the InputPane tests isn't misread as narrowing it,
and the BitmapIcon exclusion comment names Skia iOS/tvOS explicitly.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01RjVqiGVHKGZyRLuy9SVMZi
(cherry picked from commit 9e69573)
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 234859 has failed on Uno.UI - CI.

@ajpinedam

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 234880 has failed on Uno.UI - CI.

@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Sep 22, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@ajpinedam
ajpinedam enabled auto-merge September 22, 2026 17:00
@ajpinedam
ajpinedam merged commit 07a4124 into servicing/6.8 Sep 22, 2026
59 of 60 checks passed
@ajpinedam
ajpinedam deleted the mergify/bp/servicing/6.8/pr-24491 branch September 22, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants