Repository navigation
fix: measure reply card growth independently of shift attribution - #4585
Merged
Merged
Conversation
The layout-shift source can be the shadow-bearing ground rather than the card, and its visual overflow can stay fixed even as the card grows upward. Sample the border box across animation frames instead, requiring a single upward step and a stationary foot. This preserves the single-growth behavior from #1587 without tying it to Chrome attribution. Closes #4402
Collaborator
Author
|
Fixed the CI lint failure in 365beb2: the frame comparison now uses Recorded the push for the queued review and landing workflows. With |
Page planning can consume the real two-second budget before the test reaches its held receipt lock, yielding a valid pointer where it expects inline JSON. Reproduced with a 2.1-second planning delay. Advance a local clock only for lock waits and assert that the wait consumes the deadline, retaining the partial delivery and pending sibling assertions.
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.
The reply-placement test required Chrome to attribute a layout shift to the card itself. On current main, the card grows upward by 80px with its foot fixed, but the recorded source is its shadow-bearing ground, whose visual-overflow rectangle stays unchanged. That leaves the filtered growth list empty despite the card growing.
Measure the card's border box across animation frames instead. Require one upward step and a stationary bottom edge, preserving #1587's intent that a sent reply grows once around its field. This checks layout at frame boundaries rather than relying on layout-shift source selection; runtime behavior is unchanged.
The reported case fails before this change and passes afterward. All nine Chromium cases of
test_send_grows_thread_around_the_wordspass, and the reported case also passes at sixfold CPU throttling. The earlier successful main run 40136868334 contains a passing result for this case; run 40466044032 contains the empty-list failure.The hook receipt-lock test also uses a controlled clock that advances only during lock waits. Page preparation could otherwise consume its two-second budget and correctly return a delivery pointer before the test reached the contention it meant to exercise. The original test reproduced the CI JSON-decoding failure with a 2.1-second planning delay; the corrected test passes with that delay and retains the partial inline delivery, pending sibling and expired-deadline assertions. Both focused hook deadline tests pass. Local hook checks used Playwright 1.64.0 to match the browser available on this runner; the branch-pinned browser was unavailable. Runtime behavior is unchanged.
Closes #4402 — automated triage