Skip to content

test: Wait for animation and input frames instead of fixed delays - #25198

Merged
MartinZikmund merged 5 commits into
masterfrom
dev/mazi/webgpu-animation-input-waits
Oct 11, 2026
Merged

MartinZikmund merged 5 commits into
masterfrom
dev/mazi/webgpu-animation-input-waits

Conversation

@MartinZikmund

Copy link
Copy Markdown
Member

GitHub Issue: part of #25139

PR Type:

🐞 Bugfix / 🏗️ Build or CI related changes

What changed? 🚀

Replaces fixed Task.Delay / single-idle waits with waits on the actual condition in tests that assert animation progress, inertia or rendered pixels. These flaked on the slow-frame WebGPU lanes.

Split out of #25140 (part of the WebGPU lane stabilization tracked in #25139). In the 8 days to 2026-10-09, 36 of 39 master builds had a failed WebGPU job.

Test Cause Change Kind
DoubleAnimation.When_StartingFrom_AnimatingValue Fixed Task.Delay before asserting animation progress; exact value comparison Wait for animation frames; compare with a tolerance test
InputManager inertia Pressed after a fixed idle, by which time inertia could already be over Press during inertia test
TextBox grippers Single-idle wait before asserting rendered ink Wait for gripper frames test
RefreshContainer Asserted pixels right after the swipe Wait for the settled pixel test

Results (CI build 238511, every WebGPU lane forced on, all fixes combined)

WebGPU lane Failed tests, all attempts Before (8-day window, builds with test failures)
WebAssembly (12 groups) 0 41 / 43
Android (5 groups) 0 21 / 43

PR Checklist ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_01TP1JtY64etkfxxGCms44aN

Copilot AI balanced review requested due to automatic review settings October 10, 2026 21:31

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the area/skia ✏️ Categorizes an issue or PR as relevant to Skia label Oct 10, 2026
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @MartinZikmund's task in 19s —— View job


Review summary

Verdict: ship after a small cleanup. The PR replaces fixed delays with condition waits in four runtime tests. The changes are test-only and follow the repo conventions. I did not build or run the tests. The CI numbers in the PR description are the only runtime evidence.

Issues: 0 high, 0 medium, 2 low (nits). Both are inline comments.

  • A stray UTF-8 BOM was added in Given_TextBox.skia.cs.
  • Two near-duplicate poll helpers could share one.

Cross-cutting notes

  • No skipped or ignored tests were added.
  • The wait timeouts are 10–30 s. That is generous, but a stuck test now takes that long to fail, not seconds.
  • The DoubleAnimation test is now stable in a way the old one wasn't. The animations run for 30 s, and the waits trigger on observed progress, not elapsed time.

@@ -1,4 +1,4 @@
using System;
using System;

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.

This line changed only because a UTF-8 BOM was added in front of using System;. Please drop it so the file keeps its original encoding and the diff stays focused.

@unodevops

Copy link
Copy Markdown
Contributor

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 238847 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Buttons.png-dark
    • Buttons.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • DisplayInformation.png-dark
    • DynamicFont.png-dark
    • DynamicFont.png
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
    • DropDownButtonPage.png-dark
    • ImageBrushInList.png-dark
  • skia-windows-screenshots: 2458 changed over 2486

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AndroidWindowInsets.png
    • AnimatedIconPage.png-dark
    • AnimatedIconPage.png
    • Accessibility_ScreenReader.png
    • AnimatedVisualsTestbedPage.png-dark
    • AnimatedVisualsTestbedPage.png
    • AppBarButtonTest.png-dark
    • ApplicationViewMode.png
    • ApplicationViewSizing.png-dark
    • ApplicationViewSizing.png
    • AppBarButtonTest.png
    • AppWindowFeatures.png-dark
    • Application_DispatcherShutdownMode.png
    • AppWindowClosing.png
    • AppBarButtonWithIconTest.png-dark
    • AppWindowPresenters.png
    • AppXamlDefinedResources.png-dark
    • AppWindowTitleBar Properties.png-dark
    • AppBarToggleButtonTest.png-dark
    • Arrange_Performance01.png-dark

@MartinZikmund
MartinZikmund merged commit be90df7 into master Oct 11, 2026
51 checks passed
@MartinZikmund
MartinZikmund deleted the dev/mazi/webgpu-animation-input-waits branch October 11, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/skia ✏️ Categorizes an issue or PR as relevant to Skia

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants