Repository navigation
fix(test): loosen DataGrid_ScrollPerfRelative ratio threshold (#209) - #620
Merged
Alexandre Zollinger Chohfi (azchohfi) merged 2 commits intoJun 22, 2026
Merged
Alexandre Zollinger Chohfi (azchohfi) merged 2 commits into
Alexandre Zollinger Chohfi (azchohfi) merged 2 commits into
Conversation
The selftest asserted the DataGrid/VirtualList scroll-render ratio stayed under 1.4x. A 1000-iteration CI stress run flaked twice right at the boundary (measured ~1.46x and ~1.52x) on shared runners under variable load. This is threshold calibration, not a product regression. Bump the bound to 2.0x, which still catches structural 2x+ regressions while absorbing CI jitter at the single-digit-ms range the test operates in. Co-authored-by: Copilot <[email protected]>
Alexandre Zollinger Chohfi (azchohfi)
requested a review
from Chris Anderson (codemonkeychris)
as a code owner
June 20, 2026 00:08
Follow-up to PR review feedback on the DataGrid_ScrollPerfRelative threshold change: - Print the ratio at full precision (F3) in the assertion message so failure logs show the true measured bound instead of a rounded value. The old F1 rounding is exactly what made #209's logs read '1.5x' when the real bound was 1.4. - Make the 2x boundary semantics explicit in the comment. Check() passes when its bool is true, so 'ratio < 2.0' already fails (catches) any ratio >= 2.0 — i.e. it catches 2x+. Kept the exclusive '<' (using '<=' would instead let an exactly-2.0x regression pass) and reworded the comment to state the exclusive bound unambiguously. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR calibrates the DataGrid_ScrollPerfRelative selftest to reduce CI flakiness by loosening the allowed DataGrid-to-VirtualList scroll median-time ratio and improving the diagnostic log precision.
Changes:
- Loosened the ratio threshold from
< 1.4to< 2.0forScrollPerf_Ratio. - Expanded the in-test comment to document CI jitter rationale and reference issue #209.
- Increased printed ratio precision in the failure message from
F1toF3to avoid misleading rounded logs.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Alexandre Zollinger Chohfi (azchohfi)
deleted the
azchohfi-fix-datagrid-scroll-perf-flake
branch
June 22, 2026 17:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the flaky
DataGrid_ScrollPerfRelativeselftest by loosening its scroll-render ratio threshold.The fixture asserts the DataGrid scroll-to-position render rate stays within a ratio of VirtualList. The active bound was
ratio < 1.4(the failure message rounds the displayed ratio to "1.5x"). A 1000-iteration CI stress run (Stress #25562201970) flaked twice right at the boundary -- measured ~1.46x and ~1.52x -- on shards 1 and 18.Why this is calibration, not a product bug
The test operates in the single-digit-millisecond range, where shared CI runners under variable load introduce significant measurement jitter. ARM64 dev boxes land at ~1.3-1.4x and x64 CI closer to ~1.1-1.2x in steady state, so a 1.4x bound left effectively zero headroom for transient scheduling noise.
Change
ratio < 1.4toratio < 2.0intests/Reactor.AppTests.Host/SelfTest/Fixtures/DataGridScrollFixtures.cs.The 2.0x band still catches the structural regressions the fixture is designed to detect (FlexRow wrapping, redundant Yoga passes) which manifest as 2x+ slowdowns, while absorbing CI variance.
Verification
tests/Reactor.AppTests.Host(-r win-x64) -- compiles cleanly.Closes #209.
Co-authored-by: Copilot [email protected]