Repository navigation
[test-quarantine] Stabilize and Unquarantine VirtualizationTest.AnchorMode_WindowScroll_HomeKeyJumpsToTop - #68338
Conversation
ae5eee3 to
240d514
Compare
|
Thanks for your PR, @surya3655. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
240d514 to
019ae64
Compare
There was a problem hiding this comment.
Pull request overview
This PR stabilizes the Components E2E test VirtualizationTest.AnchorMode_WindowScroll_HomeKeyJumpsToTop by making the “scroll to mid-list” setup more resilient to timing/layout variance (notably in CI/VM environments), then removes the quarantine attribute so the test runs normally again.
Changes:
- Moves
window.scrollTo(0, 5000)into theBrowser.True(...)retry delegate inWindowScrollMidListAndWaitForRender, so the scroll action + validation are retried together within the existing timeout. - Keeps the existing scroll-position threshold check (
scrollY > 4000) and timeout unchanged. - Removes
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/68225")]fromAnchorMode_WindowScroll_HomeKeyJumpsToTop.
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Do I understand it right that before the fix it failed for you locally? If it didn't even once in 100 runs then 100 passing runs is not a proof that the fix it real. |
ilonatommy
left a comment
There was a problem hiding this comment.
The change doesn't look harmful, in the worst case it will ge re-quarantined and we will have to take a 2nd look. I posted one concern about testing methodology above.
Thanks!
|
@ilonatommy You're correct. I was not able to reproduce the failure locally before the fix, as the issue only occurred in the Linux CI environment. My intention was to verify that the proposed change did not introduce any regressions and that the test remained stable during repeated executions on Windows. I'll update the test output and comments to clarify that the 100 successful runs validate the stability and safety of the change rather than proving that the root cause was fixed. |
|
/ba-g Failures not connected, looks like infra issues. |
Stabilize and Unquarantine VirtualizationTest.AnchorMode_WindowScroll_HomeKeyJumpsToTop
Description
This PR addresses flakiness in
VirtualizationTest.AnchorMode_WindowScroll_HomeKeyJumpsToTop.The test was previously quarantined due to intermittent failures in CI. Based on the stack trace, the failure occurs inside
WindowScrollMidListAndWaitForRender(...), before the Home key assertion is reached.The helper previously called
window.scrollTo(0, 5000)once and then usedBrowser.True(...)only to retry checking whetherwindow.scrollY > 4000. In CI/VM environments, Virtualize/layout can adjust or delay the window scroll after the initial scroll request, so the single scroll attempt may not leave the page at the expected mid-list position.To make the test more resilient, the scroll request has been moved inside the retryable assertion delegate. This allows the test framework to retry both the scroll action and the scroll-position validation within the existing timeout, instead of retrying only the assertion.
Validation / Investigation
As part of the investigation:
WindowScrollMidListAndWaitForRender(...), before the Home key assertion.not the Home key behavior.
Changes
window.scrollTo(0, 5000)inside theBrowser.True(...)retry loop.window.scrollY > 4000.[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/68225")].Test Output
After implementing the fix, I tested it with 100 iterations on Windows, and all test runs passed successfully. I also confirmed that the fix does not introduce any regressions or breaking changes on Windows.
Fixes #68225