Skip to content

[Epic] Flaky tests roundup #9080

Open
Open

Description

@MartinZikmund

Current behavior

This epic tracks flaky tests so they can be addressed one by one.

When a flaky test is added in this list, it can be set to [Ignore] on the platform or platforms where it tends to fail.

  • When_TextBox_Has_ContextFlyout_Keyboard_Trigger_Shows_Flyout is flaky on iOS Skia and Wasm Skia
  • TextBox_Readonly, PasswordBox_RevealInScrollViewer and FlyoutTest_Target are very flaky on iOS native
  • When_ReversedMouseWheel_Then_ScrollInReversedDirection Skia X11
  • When_Nested_ScrollViewers_WheelChanged is flaky on Skia WPF Islands
  • TextBox_TextChanging_Capitalize is flaky on iOS
  • When_Page_Navigates_Back_With_Outer_Before fails often on all targets in CI
  • Make WebView runtime tests more reliable #20731
  • When_Page_Navigates_Back_With_Outer_Before fails often on all targets in CI
  • When_Navigate and When_NavigateToString fail often on all targets in CI
  • When_Year_Mode_Shown fails on iOS Native because the initial loading/switching between modes takes longer
  • When_FullSizeDesired fails often on Skia Android
  • NavigationViewItem fails in When_Add_Remove (Assert.AreEqual failed. Expected:<0>. Actual:<1>. ItemsRepeater/NavigationViewItemMenuItemsHost)
  • When_ListViewNestedAndSwipeUpThenFlickDown_Then_ScrollThenShowIndicatorButDoNotRequest fails often on Skia Android
  • When_Focus_Immediately fails on Skia targets
  • Given_PipsPager is very flaky
  • When_RepeatForever_ShouldLoop is flaky
  • When_MultipleSelectionWithoutItemClick_Then_PointersEvents is flaky on skia targets
  • When_Large_List_Scroll_To_End_Then_Back_Up_And_First_Item is flaky in WASM CI
  • ValidateDynamicOverflowOrderBasic() is flaky on Android
  • When_ShapeVisual_ViewBox_Shape_Combinations (When_ShapeVisual_ViewBox_Shape_Combinations is unstable #18752)
  • When_Rectangle UI test is very flaky on iOS
  • BreadcrumbBar leak tests are flaky on iOS
  • Given_AppWindow.WhenResize is failing in CI on Linux, passing locally
  • [Android] Knob_Translation fails in CI #18375
  • ListView tests on iOS crash on 17.0+ simulators #17101
  • [iOS] When_Setting_SelectedItem_TakesEffect NSInternalInconsistencyException Reason: Attempted to scroll the collection view to an out-of-bounds item #17102
  • When_Uri_Nullified fails on some Skia targets
  • ValidateElementsHaveCorrectKeys is not passing (incorrectly disabled)
  • VerifyKeyboardAcceleratorCanOverrideControlAccelerator, VerifyTryInvokeKeyboardAcceleratorBehaviorForLocallyScopedAccelerator, ValidateKeyboardAcceleratorEventNotInvokedWhenCollapsed and ValidateKeyboardAcceleratorBehaviorWithMultipleModifiers on Skia are unstable
  • When_Image_Is_Monochromatic fails on iOS .NET 9 RC1
  • Runtime test content alignment is not consistent #18064
  • Some Given_ImageBrush.WhenStretch fail on iOS
  • GridViewGroupedResizable is too slow and fails randomly test: Move GridViewGroupedResizable to manual test #18926
  • Pointer tests are not passing on wasm #17742
  • When_Hungarian_Culture_Column_Order, When_Czech_Culture_Column_Order and When_CanadaFrench_Culture_Column_Order fail on net9 wasm. It could be related to a missing/filtered ICU, or a headless browser issue, it works locally.
  • MoveItemsBetweenPrimaryAndSecondaryCommands is unstable on android
  • When_DownSampling is flaky and disabled in test: Disable flaky test #16991
    Running test When_DownSampling()
    GLIB UNHANDLED EXCEPTIONSystem.ArgumentNullException: Value cannot be null. (Parameter 'bitmap')
       at SkiaSharp.SKImage.FromBitmap(SKBitmap bitmap)
       at Windows.UI.Composition.CompositionSurfaceBrush.UpdatePaint(SKPaint fillPaint, SKRect bounds) in C:\a\1\s\src\Uno.UI.Composition\Composition\CompositionSurfaceBrush.skia.cs:line 91
       at Windows.UI.Composition.CompositionSpriteShape.Paint(PaintingSession& session) in C:\a\1\s\src\Uno.UI.Composition\Composition\CompositionSpriteShape.skia.cs:line 19
       at Windows.UI.Composition.BorderVisual.Paint(PaintingSession& session) in C:\a\1\s\src\Uno.UI.Composition\Composition\BorderVisual.skia.cs:line 127
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 190
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.Render(PaintingSession& parentSession) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 199
       at Windows.UI.Composition.Visual.RenderRootVisual(SKSurface surface, Nullable`1 offsetOverride) in C:\a\1\s\src\Uno.UI.Composition\Composition\Visual.skia.cs:line 152
       at Uno.UI.Runtime.Skia.Gtk.SoftwareRenderSurface.OnDrawn(Context cr) in C:\a\1\s\src\Uno.UI.Runtime.Skia.Gtk\Rendering\SoftwareRenderSurface.cs:line 99
       at Gtk.Widget.Drawn_cb(IntPtr inst, IntPtr cr)
    
  • SelectingTimeSetsSelectedTime is flaky in CI (Wasm, Skia) #16167
  • Tests failing under fluent #18105
  • When_UnloadAndReload_Then_ReMaterializeItems
  • When_ThemeChange on Wasm
    image
  • Android TestProgressRing_InitialState fails
  • FlyoutTest_Unloaded
  • FlyoutTest_Target is flaky on iOS
  • Given_CalendarDatePicker.When_Theme_Changes is flaky on iOS #13417
  • PasswordBox_RevealInScrollViewer is flaky on iOS
  • EventSequence_Tests.TestHyperlink misses a click event on android #15734
  • TextBox_VerticalAlignment is flaky on Wasm
  • Verify_MenuBarItem_Bounds_Native_Popups is flaky on Android - started being flaky after pull request fix(flyout): dismiss all flyouts on window focus lost and SizeChanged #13630 (@ramezgerges)
  • TextBox_Readonly is flaky on iOS
  • When_Drag_Then_DoesNotScroll is not working on Android, the thumb drags when it should not
  • CanChangeDisplayModeBeforeLoaded is flaky on Skia
  • Holding_Tests.When_InListViewWithoutItemClick fails for missing item on android
  • Holding_Tests.When_Basic fails on android
  • Holding_Tests.When_InScroll fails on android
  • Holding_Tests.When_InListViewWithItemClick fails on android
  • TestTextBoxReleaseOutFocused is flaky on WASM
  • Check_ListView_Swallows_Measure is flaky on Android #15829
  • When_MultipleItems is not failing sometimes (Timing related ?)
  • Flyout_TemplatedParent is flaky on WASM
  • WebView tests are flaky on iOS #15828
  • When_MediaPlayerElement_SetSource_Check_Play fails on Skia #15471
  • TestTranslatedTap is flaky on WASM (could be related to TestTranslatedClick fails on faster build agents #13844)
  • ValidateOverflowPlacement does not pass on Android
  • TestTranslatedTap is failing on android
  • DoesNotShowMenuIfSecondaryElementsAreCollapsed does not pass on Android
  • When_NestedInSVAndOutOfViewportOnInitialLoad_Then_MaterializedEvenWhenScrollingOnMinorAxis is flaky on WASM
  • TestTranslatedClick fails on faster build agents #13844
  • Android When_NestedIRSlowlyChangeViewport_Then_MaterializedNeededItems (Timeout even with retries) (Youssef: Can't repro)
  • Android When_Verify_Canvas_With_Outer_Clip (Assert.Fail failed. ImageAssert.HasColorAt @ line 73) (Youssef: Verified - it always fails)
  • UITests.Windows_UI_Xaml_Media.GradientBrushTests.GradientsPage crashes the android emulator completely (not just the app)
  • Android VerifyNavigationViewItemToolTipPaneDisplayMode (Youssef: Verified - it always crashes locally)
  • When_Focused_Element_Transformed is crashing the iOS/Android emulator
  • Android VerifyCollectionChangeGetsRespected (Cleanup System.Exception: Event was not raised. in MUXApiTestBase.Cleanup()) (Youssef: test not disabled on master, and always passes for me)
  • ListView_ObservableCollection_Unused_Space fails regularly on iOS (Expected: 132.0f But was: 88.0f)
  • When_Open_Close_Root_Twice_Keep_State fails on android for missing TreeView items (Youssef: fails locally with null ref)
  • When_UsingMultipleLanguages unit test fails when running with net7 or later (DateFormatter is buggy and CultureInfo itself returns wrong values)
  • ExecuteScriptAsync tests are flaky on iOS #11997
  • NavigationViewInfoBadgeTestPage causes CI not to pass #13257
  • When_Grid_RowCollection_Changes fails with invalid child.SizePassedToArrangeOverride
  • iOS 16+ tests
    • NativeCommandBar_Size fails (The first orientation change fails to be applied)
    • ListView_SelectedItems fails (Timeout ?)
    • When_Flipview_DataTemplateSelector (AssertFailedException: Assert.Fail failed. ImageAssert.HasColorAt @ line 101)
    • When_Add_Remove failure: ColorPicker
    • When_Add_Remove failure: CalendarView
  • iOS When_ItemsControl.When_NestedItemsControl_RecycleTemplate (Assert.AreEqual failed. Expected a difference no greater than &lt;1&gt; between expected value &lt;50&gt; and actual value &lt;0&gt;. )
  • iOS RepeaterTests.VerifyCorrectionsInNonScrollableDirection
  • iOS/Skia VerifyFocusedItemIsRecycledOnCollectionReset (Skia fixed in test: enable working tests and add ItemsRepeater fixes for RepeaterTests #13074)
  • iOS When_WebMessageReceived (Timed out waiting for condition to be met. When_WebMessageReceived():207)
  • iOS When_Flipview_Items_Modified (Timed out waiting for equality condition to be met. Expected -1 but last received value was 0.)
  • iOS When_Render_Border_GetPixelsAsync (Assert.AreEqual failed. Expected:&lt;&lt;10, 10&gt;&gt;. Actual:&lt;&lt;10.5, 10&gt;&gt;. Invalid Layouted.)
  • test: TextBox_Readonly, PasswordBox_RevealInScrollViewer and FlyoutTest_Target are very flaky on iOS #13095
  • [All platforms] ValidateFractionalWidthDoesNotCrash (Assert.Fail failed. Timeout waiting on SpectrumRectangle.Fill to be set.) (Youssef: Test is actually skipped in WinUI. There is not much info on why it's skipped there, but I don't see anything that should trigger property changed for Fill)
  • When_StretchAndAlignment on Android 28 (Youssef: Passing for me locally)
  • TextBox_Readonly_ShouldNotBringUpKeyboard on Android 30 (The keyboard does not show up on emulators, breaking the test)
  • When_PressOnContainerAndReleaseOnNested_Mouse on WASM (fails in CI)
  • When_RepeatDuration: It was enabled in chore: enable When_RepeatDuration on skia #13060, but then failures are found and reverted in Revert "chore: enable When_RepeatDuration on skia" #13089
  • MediaPlayer tests are failing too often #13384
  • [iOS/Skia/macOS] RepeaterTests.VerifyRepeaterDoesNotLeakItemContainers (Skia started failing in build: Move build to net8.0/net9.0 instead of net8.0/net7.0 #16523)
  • ExecuteScriptAsync tests are flaky on iOS (ExecuteScriptAsync tests are flaky on iOS #11997)
  • WebView tests are flaky in general
  • When_LargeExtent_And_Very_Large_List_Scroll_To_End_And_Back_Half_Size is flaky on Skia Android
  • When_SmallExtent_And_Large_List_Scroll_To_End_Half_Size is flaky on Skia Android
  • When_IsTextSelectionEnabled_ContextMenu_SelectAll is very flaky on all targets (disabled on all targets)
  • When_ScrollIntoView_FreshlyAddedOffscreenItem is very flaky on all targets (disabled on all targets)
  • When_ComboPopup_Rearrange_ScrollShouldNotReset is flaky on Skia WASM (disabled on Skia WASM)

In Progress

  • TestTextBoxReleaseOutFocused is flaky on WASM
  • TestTextBoxTap is very flaky on WASM
  • Given_SymbolIcon.Validate_Size fails on all targets (Expected:&lt;20&gt;. Actual:&lt;627.5&gt;) (fix: Fix Given_SymbolIcon.Validate_Size test failure #13069)
  • Android VerifyDropdownItemTemplateWithNoControl (failed cleanup System.Exception: Event was not raised.) (Youssef: passing for me - test: Enable skipped BreadcrumbTests on Android #13077)
  • Android VerifyBreadcrumbDefaultAPIValues (failed cleanup System.Exception: Event was not raised.) (Youssef: passing for me - test: Enable skipped BreadcrumbTests on Android #13077)
  • ValidateOverflowButtonHidesWhenAppropriateWithNoAppBarButtons, ValidateMoreButtonCanShowWithoutSizeChanging, ValidateOverflowButtonHidesWhenAppropriateWithPrimaryAppBarButtons are failing randomly on android. (Youssef: passing for me - test: Enable CommandBar tests on Android #13078)
  • Android/iOS When_EmbeddedResource (resource is not included when build on dotnet build) (Youssef: This appears to only be an issue for Uno.UI solution, ie, not a problem for external customers. Fixing in build: Make sure AssignTargetPathsDependsOn is set properly in Uno solution build #13079)
  • DoubleAnimation_Tests on android. These tests fail on android when running one by one, but don't when run with others. (Youssef: Can't repro. Enabling in test: Enable DoubleAnimation_Tests #13082)
    System.Exception : Error while performing WaitFor([unknown], "Failed to find [Completed] on [Text]", null, null, null)
    ----> System.TimeoutException : Failed to find [Completed] on [Text]
    
  • When_Opacity_Paused_With_FillBehaviorHold_Then_Hold - on Android (Youssef: Can't repro. Enabling in test: Enable DoubleAnimation_Tests #13082)
  • When_Transforms_Paused_With_FillBehaviorStop_Then_Hold. This test tends to fail when run alone, indicating a race condition, see in the comments for screenshots of the test. (Youssef: Can't repro. Enabling in test: Enable DoubleAnimation_Tests #13082)
    1) Failed : SamplesApp.UITests.Windows_UI_Xaml_Media_Animation.DoubleAnimation_Tests.When_Transforms_Paused_With_FillBehaviorStop_Then_Hold
    ImageAssert.AreEqual @ line 85
    pixelTolerance: No color tolerance
    expected: Initial (When_Transforms_Paused_With_FillBehaviorStop_Then_Hold_Initial.png {Width=1280, Height=800}) in 
    {X=615,Y=442,Width=50,Height=50}
    actual  : Final (When_Transforms_Paused_With_FillBehaviorStop_Then_Hold_Final.png {Width=1280, Height=800}) in 
    {X=615,Y=442,Width=50,Height=50}
    
  • iOS/Android Given_ImageBrushStretch (Incorrect RenderTargetBitmap content) (youssef: Issue not related to RenderTargetBitmap. Fixing test in test: Unskip and fix When_Stretch test #13081)

Done

Activity

  1. added
    kind/bug
    difficulty/challenging 🤯
    on Jun 20, 2022
  2. Youssef1313 commented on Aug 23, 2022

    @Youssef1313
    Member

    When_Reorder_To_Last_2 on WASM, Android

    This test appears to be Wasm only. I'm disabling in #9571

  3. jeromelaban commented on Nov 1, 2022

    @jeromelaban
    Member

    Images for When_Transforms_Paused_With_FillBehaviorStop_Then_Hold:

    Teardown:
    When_Transforms_Paused_With_FillBehaviorStop_Then_Hold_When_Transforms_Paused_With_FillBehaviorStop_Then_Hold_-_Tear_down_on_error
    Initial:
    When_Transforms_Paused_With_FillBehaviorStop_Then_Hold_Initial
    Final:
    When_Transforms_Paused_With_FillBehaviorStop_Then_Hold_Final

  4. added
    area/tests 🧪
    on Dec 15, 2022
  5. ramezgerges commented on Jul 30, 2023

    @ramezgerges
    Contributor

    When_UsingMultipleLanguages is acting really off. First off, CultureInfo returns weird patterns e.g. in ft-CA, info.LongTimePattern returns HH 'h' mm instead of HH:mm. A possible hack is to replace the added garbage with a colon e.g. using Regex.Replace(value, " '[^']*' ", ":"), but obviously, that isn't ideal. Another thing is that our DateTimeFormatter implementation diverges a lot from the net7 implementation, so it might need a rewrite or something.

  6. ramezgerges commented on Jul 30, 2023

    @ramezgerges
    Contributor

    VerifyFocusedItemIsRecycledOnCollectionReset seems to fail on skia due to a problem with dispatching measure/arrange. Items in an ItemsRepeater are only updated in a Measure, and it appears that no Measure is dispatched during the test (even though some paths are dirty for sure). A manual GetRoot(repeater).Measure(Window.Current.Bounds.Size) (where GetRoot just walks up the tree to get the RootVisual) passes the test, but I've failed to find the root of the problem.

    Edit: It appears that TestServices.WindowHelper.WaitForIdle().Wait() is causing a deadlock (usually it's called with await instead of Wait()).

  7. changed the title [-]Flaky tests roundup[/-] [+][Epic] Flaky tests roundup[/+] on Jul 31, 2023
  8. 39 remaining items

  9. MartinZikmund commented on Sep 9, 2026

    @MartinZikmund
    MemberAuthor

    Triage note: the recent CI red is mostly not flaky tests

    I swept the last 200 Uno.UI - CI builds (2026-09-02 → 09-09; 121 of 200 red, master 0/24 green) looking for tests to add here. Almost nothing qualified, and the reasons are worth recording so the next person doesn't repeat the analysis.

    Only ~8% of the red is attributable to tests

    Of 131 failed/partial builds, 10 were red solely because a test failed. 53 carry a test-failure row at all, but 43 of those also carry an infrastructure or build failure that would have reddened them anyway. The dominant causes were job timeouts (44 builds / 30 branches), PR compile errors (16), the public-API gate (11), and a single 100%-broken iOS TestFlight publish job (16 builds, all master).

    So: adding the worst-looking test names here would have recovered almost no green, while hiding several things that should stay visible.

    Three counting traps that make the CI look far flakier than it is

    Anyone mining failed-test names from ADO logs will hit these. All three inflate or invert the apparent flake rate:

    1. iOS prints the failed-test list twice. build/test-scripts/ios-uitest-run.sh calls dotnet run list-failed at both line 479 and line 488, against two paths holding the same results. tvOS (tvos-uitest-run.sh:299), Android (:212) and WASM (:143) call it once. Any "did it fail again on the retry?" metric keyed on duplicate rows reads ~97% on iOS and 0% on tvOS — pure log formatting, unrelated to test health.
    2. The task name Run Runtime Tests is used by three separate desktop stages (Windows, Linux, Linux Framebuffer). Key on the timeline record id, not the display name, or one test failing across stages in one build collides into a fake "repeat offender".
    3. record['log']['id'] only reaches the latest job attempt. Earlier attempts hang off previousAttempts[].timelineId. For any retried job you get the filtered rerun's list, not the original failure set.

    Also: build volume is very uneven (106 of those 200 builds finished on 2026-09-03 alone), and jobs that publish no results at all — an Android job hard-killed at the cap, a WASM shard hitting UNOBLD005 — contribute zero rows, so the denominator understates the problem. Normalise before quoting any rate.

    What the corrected data actually says

    The tests that looked worst were mostly not flaky:

    • ~126 tvOS Given_TextBox.* / KeyboardAccelerator failures come from exactly two unmerged PR branches and are green on every master build in the window. They are catching real tvOS text-input regressions. Filing them here would green-light both.
    • A 20-test iOS cluster (MenuFlyout, theme resolution, ComboBox, TabView, TreeView) fails all-or-nothing across four unrelated branches — one shared run-scoped state corruption, not 20 flakes. Disabling them removes the only symptom.
    • Given_InputPane.When_Focused_Element_Not_Occluded_Then_Centered_Content_Is_Not_Moved is the one test that repeatedly reds builds on its own (17 builds / 12 branches). It is genuinely intermittent — it fails attempts 1 and 2 and passes on 3, hidden by UnitTestEngineConfig.DefaultRepeatCount = 3 — but it guards a just-shipped ScrollContentPresenter arrange change and may be catching a real extra layout pass on every keyboard show. It reproduces on Skia Desktop, so it is worth debugging rather than listing here.

    Two infrastructure defects that make flakiness unmeasurable

    Both are being fixed separately; noting them here because they explain missing data in this epic:

    • The runtime-test watchdog could never fire. END_TIME=$((SECONDS+TIMEOUT)) charged the emulator/simulator boot and install twice, putting the deadline past the ADO job cap — 44 Android runs were hard-killed at exactly 44.5 minutes, publishing no logs and no failed-test list, so none of their failures ever reached this epic.
    • The test engine has no default per-test timeout. UnitTestsControl.GetTestTimeout only reads an explicit [Timeout] attribute, and the else branch is a bare await task. One hung test with no attribute discards up to 1747 already-passing results and every failing test name.

    Housekeeping

    When_Page_Navigates_Back_With_Outer_Before is listed twice in the checklist above.

  10. MartinZikmund commented on Sep 10, 2026

    @MartinZikmund
    MemberAuthor

    Two more, on Skia Android, now excluded there and tracked by #24480:

    • Given_AutoSuggestBox.When_Popup_Above — popup placement asserted before the suggestion list settles on its final height (4 failures across 4 distinct branches, incl. master)
    • Given_TextBox.When_Touch_Focused_Then_Scrolled_Away_The_Scroll_Sticks — injected drag only partly reaches the ScrollViewer, 37px of a 200px drag (10 failures across 7 distinct branches, incl. master)

    Ranked by distinct source branch over the 191 CI builds that ran the Android leg between 2026-09-02 and 2026-09-10, so a re-queued red branch cannot fake a cluster. These are the top two named failures on that leg.

  11. MartinZikmund commented on Sep 10, 2026

    @MartinZikmund
    MemberAuthor

    Four more, now disabled on all targets by #24491 and tracked by #24489:

    • Given_InputPane.When_Focused_TextBox_Has_Content_Below_Then_Scrolled_Above_Occlusion — setup scrolls to a content offset computed from the live viewport height, so the intended geometry only holds for a band of window sizes
    • Given_InputPane.When_Focused_Element_Not_Occluded_Then_Centered_Content_Is_Not_Moved — 0.5 tolerance on TransformToVisual positions; a centered card can legitimately shift half a pixel when the pad changes the extent's parity
    • Given_InputPane.When_Occluded_Field_In_Viewport_Sized_Content_Then_Scrolled_Above_Occlusion — 40px "minimal scroll" upper bound with no slack for a layout pass landing one scroll line further
    • Given_ScrollViewer_ScrollChaining.When_Chaining_Backwards_Then_Residual_Chains_To_Outer — chains twice and reads the public offsets after a single WaitForIdle, while they are refreshed through RequestUpdate

    All four are hypotheses from reading the tests, not measured root causes — details in #24489.

  12. MartinZikmund commented on Sep 10, 2026

    @MartinZikmund
    MemberAuthor

    One more in the same PR (#24491), also tracked by #24489 — this one excluded only on Skia iOS / Skia tvOS, not everywhere:

    • Given_BitmapIcon.When_Foreground_Changed_With_ShowAsMonochrome_True — screenshot-based tint assert after a single WaitForIdle, no retry; not analysed

    Note for anyone disabling this test further: it already carries a conditional [Ignore] for non-Skia and non-RenderTargetBitmap targets, and IgnoreAttribute is AllowMultiple = false, so a second [Ignore] on it is a compile error — use [PlatformCondition] or an #else arm instead.

  13. MartinZikmund commented on Oct 8, 2026

    @MartinZikmund
    MemberAuthor

    New iOS flakes, excluded on iOS in #25093:

  14. MartinZikmund commented on Nov 18, 2026

    @MartinZikmund
    MemberAuthor

    Disabled as flaky in #26491, tracked by #26579:

    • RadioButtonsInteractionTests.BasicKeyboardTest (Skia iOS)
    • RadioButtonsInteractionTests.ScrollViewerSettingSelectionDoesNotMoveFocus (Skia macOS)
  15. Xiaoy312 commented on Nov 25, 2026

    @Xiaoy312
    Contributor

    Test: Given_ItemsRepeater_FastScroll.When_ScrolledThroughList_Then_ExtentAccommodatesRealContent
    Disabled on: native WinUI (WinAppSDK leg) only, via [PlatformCondition(ConditionMode.Exclude, RuntimeTestPlatforms.NativeWinUI)]
    PR: #26695 (commit 466ddc7)
    Tracking issue: none yet

    It intermittently kills the whole WinAppSDK test app, so the run ends with "Test results file was not created". It was the last test started in 12 failed Uno.UI - CI builds over the last 30 days. Seven died with an unhandled Microsoft.UI.Xaml.LayoutCycleException and five with COMException (0x80070490) Element not found. Both are thrown from native WinUI layout and fail fast (exit code -1073741189), so the test cannot report a failure itself. 55 isolated runs and 8 full-suite runs locally did not reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tests 🧪difficulty/challenging 🤯epickind/bugno-repro

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions