Repository navigation
test: wait for the code block's own sideways scroll in the code-copy journey - #6755
Merged
Merged
Conversation
…code-copy journey After a horizontal swipe on #plain and an ArrowRight on #colored, the test waited with scroll_settled(page), which watches the document's vertical scroll. The document never moves in either gesture, so the wait returned while the block's native scroll was still moving: a probe showed #plain's scrollLeft still climbing from 295 to 472 over about 25 frames after it returned. Both waits now watch the block that scrolled, on the x axis. Refs #6754
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.
test_code_copy_keeps_source_and_stays_beside_scrolling_and_revised_blockswaited for two sideways scrolls withscroll_settled(page), which watches the document's vertical scroll. The document doesn't move in either gesture, so the wait returned at once while the code block's own scroll was still running. After the touch swipe on#plain, a probe placed right after the wait readscrollLeftstill rising from 295 to 472 over about 25 frames. Both waits now watch the block that scrolled (#plain,#colored) on the x axis, as other horizontal settles in the suite already do.This removes a real ordering gap in the step that failed on the Nov 22 macOS nightly. Whether it caused that failure is unproven. The failing read had the suffix 67 px past the block's edge, and the fling never got near that far: on Linux it stopped around 470 px of a 2933 px range. Locally, setting
scrollLeftafter the old wait also cancelled the fling, so the old failure doesn't reproduce here.arrivals.jsdoes note that in Chromium an instant write doesn't stop a scroll the browser drives (stopWhereItStands), so the race can play out differently on macOS. The test had already passed 18/18 alone on the macOS runner, so a dispatch can't tell the base from this branch. Under the repository's rule for failures no dispatch reproduces, the failing scheduled run is the evidence from before the fix and the next nightly after it merges is the evidence from after.Verified: the test passes locally, and
leaf-dev suite flake --copies 6 --load 2 --cpu-throttle 8passed 6/6 on this branch.The issue's other failure, the 1 px move in
test_an_idle_open_panel_thread_shows_appended_replies[tall], is untouched here. It passed 20/20 under load on Linux (throttle 8 and 20) and stays open on #6754.Refs #6754 — automated triage