Flaky runtime test: Given_AnimatedVisualPlayer.When_PlaybackRate_Zero_Keeps_Progress_Stable on Android
Current behavior
The Given_AnimatedVisualPlayer.When_PlaybackRate_Zero_Keeps_Progress_Stable runtime test fails intermittently on the Android Skia Runtime Tests 1 CI leg. Across the last 60 CI builds, it failed on 4 unrelated PRs (#24634, #24654, #24704, #24785). Every failure has the same shape: the progress drifts by about 0.022–0.025 after PlaybackRate = 0, just above the test's 0.02 tolerance:
Assert.AreEqual failed. Expected a difference no greater than <0.02> between expected value <0.2075> and actual value <0.2298>.
A zero playback rate should freeze the current progress.Expected behavior
The test passes consistently.
How to reproduce it (as minimally and precisely as possible)
Run the Android Skia runtime tests on CI. The failure is timing-dependent and has not been reproduced on Skia Desktop.
Workaround ️
Re-run the CI leg.
Renderer
- Skia
Affected platforms ️
Android
Anything else we need to know?
This is a race in the test, not a product bug. Setting PlaybackRate advances the playhead to the compositor's current timestamp and then freezes it (KeyFrameEvaluator.PlaybackRate). The test reads Progress from the property set immediately after the setter, and that value was last written on the previous tick. On a slow Android frame, the frozen value therefore lands one frame (about 0.023 of an 800 ms animation) past the snapshot.
Source: unoplatform/uno