Repository navigation
Description
Current behavior 🐛
Two runtime tests are flaky on Skia Android and are being temporarily excluded there. This issue tracks fixing them and re-enabling the platform.
Both fail on refs/heads/master and across many unrelated branches, so neither is a single PR's regression. Ranked by distinct source branch (a re-queued red branch would otherwise fake a cluster), mined from the runtime-tests-android-skia-failures artifacts of 191 CI builds that ran the Android leg between 2026-09-02 and 2026-09-10:
| test | failing attempts | distinct branches |
|---|---|---|
Given_TextBox.When_Touch_Focused_Then_Scrolled_Away_The_Scroll_Sticks |
10 | 7 (incl. master) |
Given_AutoSuggestBox.When_Popup_Above |
4 | 4 (incl. master) |
1. Given_AutoSuggestBox.When_Popup_Above
AssertFailedException: Assert.IsLessThanOrEqualTo failed.
Actual value <797> is not less than or equal to expected value <768>.
'upperBound' expression: 'suggestBoxPoint.Y + 1'
'value' expression: 'popupPoint.Y + popup.Child.ActualSize.Y'
Expected `417 + 380`=797 <= 768
The AutoSuggestBox top is at Y=767. The popup was placed at Y=417 — positioned for a 350px child (767 − 350 = 417). By assert time the child had measured 380px, so its bottom landed at 797, i.e. 30px past the box it was meant to sit above.
The shared helper When_Popup_Position waits on child.ActualSize.Y > 0 before asserting geometry — a first-non-zero latch, not a settled-size wait. It releases on the first layout pass that gives the suggestion list any height, while the list is still growing toward its final 10-item height.
Two candidate fixes, and they are not exclusive:
- Test-side — wait for a stable height (two consecutive equal measures, or a
WaitForIdleafter the popup opens) before reading the transform. - Framework-side, and worth checking first — WinUI repositions an above-placed popup when its child resizes. If Uno places once and never re-evaluates, a suggestion list that grows after placement overlaps the box for a real user too, not only in this test. Please confirm against WinUI before writing this off as test-only.
2. Given_TextBox.When_Touch_Focused_Then_Scrolled_Away_The_Scroll_Sticks
AssertFailedException: Assert.IsGreaterThan failed.
Actual value <37> is not greater than expected value <200>.
'lowerBound' expression: '200d', 'value' expression: 'offsetBeforeScroll - sv.VerticalOffset'
the scroll the user performed must stick (offset 470 -> 433, caret CaretWithThumbsOnlyEndShowing,
selection 9/0, flyout False, dragged from [843, 95] in 643,80,400,100)
The ScrollViewer moved 37px of a 200+px injected drag (470 → 433). Everything else in the state dump is correct: the caret is in CaretWithThumbsOnlyEndShowing, no selection flyout is up, and the drag started inside the TextBox bounds. So the gesture reached the right element in the right state; the scroll simply stopped after the first slice.
Not root-caused. 37px is close to a manipulation-start threshold's worth of travel — working hypothesis is that on a loaded emulator the injected pointer-move ticks arrive coalesced, the ScrollViewer's manipulation only starts near the tail of the drag, and the remaining travel is too small to clear the assert. Also worth ruling out: the caret-drag capture from the preceding tap releasing late and eating the first part of the drag.
Expected behavior 🎯
Both tests pass reliably on Skia Android, and the SkiaAndroid exclusions added alongside this issue are removed.
How to reproduce it (as minimally and precisely as possible) 🔬
Run the Skia Android runtime tests in CI (Tests - Android Skia) repeatedly — When_Popup_Above lands in shard 0, When_Touch_Focused_Then_Scrolled_Away_The_Scroll_Sticks in shard 3. Both reproduce on master.
Sample evidence:
- ADO build 232883,
Tests - Android Skia / Runtime Tests 0, attempt 3, log 891 — failing name, and the assertion text in artifactruntime-tests-android-skia-results,android-device-log-RuntimeTests-0-RuntimeTests.txt. - ADO build 232821 (
master), artifactruntime-tests-android-skia-results,android-device-log-RuntimeTests-3-RuntimeTests.txt— the TextBox assertion, 2026-09-09 19:15:29.
Workaround 🛠️
Retry the runtime_tests_skia_android stage.
Renderer 🎨
- Skia
- Native
Affected platforms 📱💻🖥️
Android (Skia)
Anything else we need to know? 💬
Related: #9080 (flaky tests roundup epic).
While ranking these, one further finding came out of the same data and is the larger source of Android CI flakiness — already being addressed by #24472, so it is recorded here only as context. Classifying all 194 Android shard-job attempts (including retries) across the 30 most recent builds that ran the Android leg:
| outcome | attempts | share |
|---|---|---|
| pass | 122 | 63% |
hang → job cancelled waiting for TestResult.xml |
43 | 22% |
| named test failure | 19 | 10% |
| failed with 0 named failures | 9 | 5% |
| other | 1 | 1% |
Hangs outnumber every named test failure combined by more than 2:1, across 21 distinct builds. In ADO build 232883, shard 0's attempts 1 and 2 each sat the full 2600s at Waiting for .../TestResult-*.xml to be available... and were cancelled at the ADO cap, while attempt 3 ran the identical 1364-test shard to completion in ~6 minutes. The app process stays alive throughout (the runner's adb shell ps | grep keeps matching), so it is an in-app wedge, not a crash.
This is the same defect already seen on WebAssembly: the runtime test engine applies no default per-test timeout (only an explicit [Timeout] attribute is honoured), and the results XML is written only at the end of the run — so one wedged test costs the whole shard, discards its passes, and surfaces with no failing test name anywhere. 22% of Android shard attempts currently fail with nothing to point at.
#24472 ("Time out a hung test instead of the whole shard") is the fix for that; the numbers above are just the Android-side measurement of what it is worth.
Activity
test(android): Disable two flaky Skia Android tests
test(android): Disable two flaky Skia Android tests