Repository navigation
test: Disable four flaky tests on Skia macOS and Skia iOS - #24356
Conversation
The injected flick depends on the ScrollContentPresenter velocity-based snap, which is not reproducible on Skia macOS in CI - the same reason the test is already excluded on Skia-WASM. Extends the existing exclusion mask rather than adding a second attribute (PlatformCondition is AllowMultiple = false). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Gsfy1USDYeExNxsQGd3FQQ
|
Claude finished @MartinZikmund's task in 1m 26s —— View job Claude's Review
Verdict: ✅ Ship — no blocking issues found. Findings by severity: 0 critical, 0 major, 0 minor. Verification notes:
Cross-cutting note (non-blocking): this is a suppression of a known-flaky, timing-dependent test rather than a root-cause fix — but that's the correct call here, since it mirrors how the same underlying |
There was a problem hiding this comment.
🟢 Approval recommended
The change is a minimal, well-documented extension of an existing platform exclusion using a confirmed [Flags] enum and a single non-duplicated PlatformCondition attribute.
Pull request overview
This PR updates Uno.UI runtime test platform gating to exclude a flaky FlipView touch-flick test on Skia macOS CI, aligning it with existing exclusions on Skia WASM for the same velocity-based snap timing sensitivity.
Changes:
- Extend
PlatformConditionexclusion mask forWhen_TouchFlick_Then_FlipOneItemto includeRuntimeTestPlatforms.SkiaMacOSalongsideSkiaWasm. - Add an inline comment documenting the Skia macOS CI flakiness and linking to the tracking issue.
File summaries
| File | Description |
|---|---|
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_FlipView.cs | Excludes the velocity-snap-dependent FlipView touch-flick runtime test on Skia macOS to reduce CI flakiness. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24356/wasm-skia-net9/index.html |
…em on Skia macOS The test drives animated ChangeView scrolls and only awaits them with fixed Task.Delay calls. Skia macOS steps through more animation frames than Win32, so those delays can elapse mid-scroll and the layout-slot assertions read an intermediate offset. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Gsfy1USDYeExNxsQGd3FQQ
|
Claude finished @MartinZikmund's task in 1m 40s —— View job Review complete
Verdict: fix-first — 1 finding worth addressing before merge, no blockers to the mechanism used in the described change itself. Findings by severity: 0 critical, 1 major (root-cause-fix opportunity), 0 minor. Cross-cutting notes (non-blocking):
|
There was a problem hiding this comment.
🟢 Approval recommended
The changes are narrowly scoped to platform-specific test exclusions, use existing PlatformCondition patterns, and are well-justified/documented for Issue #9080.
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0 new
- Review effort level: Lite
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-24356/wasm-skia-net9/index.html |
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Gsfy1USDYeExNxsQGd3FQQ
Extends the existing exclusion mask rather than adding a second attribute (PlatformCondition is AllowMultiple = false). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01Gsfy1USDYeExNxsQGd3FQQ
|
Claude finished @MartinZikmund's task in 2m 52s —— View job Claude's Review
Verdict: ✅ Ship — no blocking or new-major issues in this sync. 0 critical, 0 major, 0 minor new findings. What's new since the last review pass: two commits were added on top of the previously-reviewed
Both are mechanically correct and consistent with a very well-established repo convention: a grep across Cross-cutting note (non-blocking): the PR description still only documents the Status of the previously-raised finding: the earlier root-cause-vs-suppression suggestion on |
GitHub Issue: #9080
PR Type:
🏗️ Build or CI related changes
What changed? 🚀
Four flaky runtime tests are excluded from CI legs where they cannot settle — two on Skia macOS, two on Skia iOS. One commit per test, so each can be re-enabled independently as it is fixed.
Given_FlipView.When_TouchFlick_Then_FlipOneItemSkiaWasmmaskGiven_ListViewBase.When_Large_List_Scroll_To_End_Then_Back_Up_And_First_ItemSplitButtonTests.BasicInteractionTestGiven_Window.When_Window_Closed_Is_HandledNativeWinUImaskWhere a
PlatformConditionalready existed the mask is extended with|— the attribute isAllowMultiple = false, so a second one would not compile.Skia macOS — scroll animation timing
When_TouchFlick_Then_FlipOneIteminjects a touch flick and relies on theScrollContentPresentervelocity-based snap to advance the page. Timing-dependent, and not reproducible on the Skia macOS leg — the same reason it is already excluded on Skia-WASM, and why the deterministicWhen_TouchMoveMoreThanHalfItem_Then_FlipOneItemcounterpart is disabled on Skia.When_Large_List_Scroll_To_End_Then_Back_Up_And_First_Itemscrolls to the end and back three times throughScrollTo, which callsChangeView(null, vOffset, null)— i.e. animated, sincedisableAnimationdefaults tofalse— and awaits it only with fixedTask.Delay(200)/Task.Delay(600)calls. Skia macOS steps through more animation frames than Win32, a difference already documented in the comment on the preceding test in the same file, so those delays can elapse mid-scroll andGetLayoutSlot(...).Yreads an intermediate offset.Skia iOS
BasicInteractionTestis injected-pointer driven (it is already[Ignore]d whereHAS_INPUT_INJECTORis undefined) and is flaky on the Skia iOS leg. Follows the exclusion style already used for iOS Skia inMenuFlyoutIntegrationTests.When_Window_Closed_Is_Handledexercises a handledWindow.Closedon a secondary window and is flaky on the Skia iOS leg.Class-level conditions are preserved
Given_ListViewBasecarries a class-levelPlatformCondition(Exclude, NativeWinUI). Adding a method-level attribute does not replace it: the engine evaluates the method and its declaring type separately and OR's the two ignore verdicts (UnitTestMethodInfo.IsIgnored), so the two stack.SplitButtonTestsandGiven_Windowhave no class-levelPlatformCondition.Not touched
When_Large_List_Scroll_To_End_Then_Back_Up_And_First_Item2is a separate test whose name is a prefix-match of the one disabled above. It is left enabled on macOS — if it fails in the same run it can be added.Validation
Uno.UI.RuntimeTests.Skia(net10.0): ✅ 0 warnings, 0 errors, after each commit.Coverage on every other target — Skia Win32, X11, Islands, WebAssembly, Android, and the native heads — is unchanged.
PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
https://claude.ai/code/session_01Gsfy1USDYeExNxsQGd3FQQ