Skip to content

test: Disable four flaky tests on Skia macOS and Skia iOS - #24356

Merged
agneszitte merged 4 commits into
feature/breakingchangesfrom
dev/mazi/fix-merge
Sep 2, 2026
Merged

agneszitte merged 4 commits into
feature/breakingchangesfrom
dev/mazi/fix-merge

Conversation

@MartinZikmund

@MartinZikmund MartinZikmund commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

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.

Test Excluded on Existing condition
Given_FlipView.When_TouchFlick_Then_FlipOneItem Skia macOS extended SkiaWasm mask
Given_ListViewBase.When_Large_List_Scroll_To_End_Then_Back_Up_And_First_Item Skia macOS none — attribute added
SplitButtonTests.BasicInteractionTest Skia iOS none — attribute added
Given_Window.When_Window_Closed_Is_Handled Skia iOS extended NativeWinUI mask

Where a PlatformCondition already existed the mask is extended with | — the attribute is AllowMultiple = false, so a second one would not compile.

Skia macOS — scroll animation timing

When_TouchFlick_Then_FlipOneItem injects a touch flick and relies on the ScrollContentPresenter velocity-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 deterministic When_TouchMoveMoreThanHalfItem_Then_FlipOneItem counterpart is disabled on Skia.

When_Large_List_Scroll_To_End_Then_Back_Up_And_First_Item scrolls to the end and back three times through ScrollTo, which calls ChangeView(null, vOffset, null) — i.e. animated, since disableAnimation defaults to false — and awaits it only with fixed Task.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 and GetLayoutSlot(...).Y reads an intermediate offset.

Skia iOS

BasicInteractionTest is injected-pointer driven (it is already [Ignore]d where HAS_INPUT_INJECTOR is undefined) and is flaky on the Skia iOS leg. Follows the exclusion style already used for iOS Skia in MenuFlyoutIntegrationTests.

When_Window_Closed_Is_Handled exercises a handled Window.Closed on a secondary window and is flaky on the Skia iOS leg.

Class-level conditions are preserved

Given_ListViewBase carries a class-level PlatformCondition(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. SplitButtonTests and Given_Window have no class-level PlatformCondition.

Not touched

When_Large_List_Scroll_To_End_Then_Back_Up_And_First_Item2 is 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 ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_01Gsfy1USDYeExNxsQGd3FQQ

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
Copilot AI lite review requested due to automatic review settings September 2, 2026 15:27
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 26s —— View job


Claude's Review

  • Gather context (diff, file, related test/issue)
  • Review against AGENTS.md rules (test discipline, root-cause vs symptom, commit format)
  • Post inline findings (none needed)
  • Post summary

Verdict: ✅ Ship — no blocking issues found.

Findings by severity: 0 critical, 0 major, 0 minor.

Verification notes:

  • RuntimeTestPlatforms.SkiaMacOS exists in the enum (Helpers/RuntimeTestPlatforms.cs), and PlatformConditionAttribute is indeed AllowMultiple = false, so extending the existing mask with | (rather than stacking a second attribute) is the only valid approach — confirmed correct.
  • The bitwise-OR-combined PlatformCondition(ConditionMode.Exclude, ... | ...) pattern is well established elsewhere in the codebase (e.g. Given_FrameworkElement_Opacity.cs, Given_Theme_Materialization.cs), so this isn't a one-off idiom.
  • The PR's claim about the counterpart test checks out: When_TouchMoveMoreThanHalfItem_Then_FlipOneItem (same file, ~line 692) is already fully [Ignore]d under #elif __SKIA__, so disabling the flick variant on Skia macOS specifically is consistent with — and narrower than — that existing precedent.
  • Scope is minimal and correctly targeted: only SkiaMacOS is added to the exclusion mask; Win32, X11, Islands, Android, iOS, and native heads are unaffected.
  • PR title follows Conventional Commits (test: ...).

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 ScrollContentPresenter velocity-snap flakiness is already handled for Skia-WASM and full Skia (via the counterpart test), and it stays traceable via the existing link to #9080 rather than being a bare, unexplained [Ignore].

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 PlatformCondition exclusion mask for When_TouchFlick_Then_FlipOneItem to include RuntimeTestPlatforms.SkiaMacOS alongside SkiaWasm.
  • 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.

@unodevops

Copy link
Copy Markdown
Contributor

…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
Copilot AI review requested due to automatic review settings September 2, 2026 16:13
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 1m 40s —— View job


Review complete

  • Gather context (diff, files, related issue)
  • Review against AGENTS.md rules
  • Post inline findings
  • Post summary

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):

  • The PR description only documents the Given_FlipView.cs change (When_TouchFlick_Then_FlipOneItem). The diff and both commits also modify Given_ListViewBase.cs (excluding When_Large_List_Scroll_To_End_Then_Back_Up_And_First_Item on Skia macOS), which isn't mentioned in the PR body at all — worth adding a short paragraph so reviewers aren't surprised by the second file.
  • The Given_FlipView.cs change itself is sound: RuntimeTestPlatforms.SkiaMacOS exists in the [Flags] enum, PlatformConditionAttribute is AllowMultiple = false so extending the mask with | is correct, and it mirrors the existing SkiaWasm exclusion for the same velocity-snap flakiness, consistent with the already-established #9080 tracking pattern per .claude/rules/runtime-tests.md.
  • The inline finding on Given_ListViewBase.cs is the substantive one: the newly-excluded test still uses fixed Task.Delay waits after an animated ScrollTo, while the sibling test immediately above it in the same file already solved the identical platform-dependent-frame-count flakiness by switching to a non-animated scroll — and a ready-made ScrollToAndWait helper for deterministic waiting already exists in Given_ListViewBase.Measure.cs. Suppressing via [PlatformCondition] skips a fix pattern that's proven, in this same file, for this same symptom.

@MartinZikmund MartinZikmund changed the title test: Disable When_TouchFlick_Then_FlipOneItem on Skia macOS test: Disable two flaky scrolling tests on Skia macOS Sep 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund MartinZikmund changed the title test: Disable two flaky scrolling tests on Skia macOS test: Disable two flaky tests Sep 2, 2026
@MartinZikmund MartinZikmund changed the title test: Disable two flaky tests test: Disable flaky tests Sep 2, 2026
@MartinZikmund
MartinZikmund changed the base branch from master to feature/breakingchanges September 2, 2026 16:36
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 2m 52s —— View job


Claude's Review

  • Gather context (diff since origin/feature/breakingchanges, all 4 commits, issue [Epic] Flaky tests roundup #9080)
  • Review against AGENTS.md / .claude/rules/runtime-tests.md (test discipline, root-cause vs suppression, commit format)
  • Post inline findings (none new — see notes below)
  • Post summary

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 Given_FlipView.cs / Given_ListViewBase.cs changes:

  • 398b17bd — excludes SplitButtonTests.BasicInteractionTest on Skia iOS (PlatformCondition(Exclude, SkiaIOS), single attribute, correctly placed alongside the existing #if !HAS_INPUT_INJECTOR / [Ignore] gate).
  • ab905ce2 — extends Given_Window.When_Window_Closed_Is_Handled's existing NativeWinUI exclusion mask with | SkiaIOS (correct technique again, since PlatformCondition is AllowMultiple = false).

Both are mechanically correct and consistent with a very well-established repo convention: a grep across Uno.UI.RuntimeTests turns up 15+ other tests using the identical terse // Flaky on iOS Skia https://github.com/unoplatform/uno/issues/9080-style suppression with no deeper root-cause writeup (e.g. CommandBarIntegrationTests.cs:1318, Given_TextBox.ContextMenuPosition.cs:145, Given_InteractionTracker.cs:124). So, unlike the earlier Given_ListViewBase finding — where a proven alternative fix pattern sat unused two tests above in the same file — there's no comparable concrete alternative sitting nearby for these two, and bare-but-traceable suppression is the accepted norm here.

Cross-cutting note (non-blocking): the PR description still only documents the Given_FlipView.cs and Given_ListViewBase.cs changes; the two newer commits (SplitButtonTests_InteractionTests.cs, Given_Window.cs) aren't mentioned at all, and 398b17bd's commit message has no body explaining the iOS-Skia flakiness the way its three sibling commits do. Worth a short addition to the PR body so reviewers aren't surprised by the extra scope — this is the same category of gap flagged on the previous sync (then about Given_ListViewBase.cs), now recurring on the latest two commits.

Status of the previously-raised finding: the earlier root-cause-vs-suppression suggestion on Given_ListViewBase.cs (posted as an inline comment on a prior run) has not been addressed in this diff — the exclusion is unchanged. Not re-flagging it here to avoid duplicating that existing thread; it remains open for the author to accept or address.
· branch dev/mazi/fix-merge

@MartinZikmund MartinZikmund changed the title test: Disable flaky tests test: Disable four flaky tests on Skia macOS and Skia iOS Sep 2, 2026
@agneszitte
agneszitte merged commit ec7b8da into feature/breakingchanges Sep 2, 2026
11 of 17 checks passed
@agneszitte
agneszitte deleted the dev/mazi/fix-merge branch September 2, 2026 16:39
@github-actions github-actions Bot mentioned this pull request Sep 2, 2026
4 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants