Skip to content

test_a_card_s_turn_glided_into_sight_stays_there_as_the_transcript_above_grows: Firefox turn ends under New reply under load #7142

Done

Description

@leaf-agent

tests/browser/margin/test_card_reply.py::test_a_card_s_turn_glided_into_sight_stays_there_as_the_transcript_above_grows[firefox_browser] fails under load. The user's turn ends about 36 px below New reply's top, which is roughly New reply's own height:

AssertionError: {'x': 1111, 'y': 775.933349609375, 'width': 314, 'height': 64}
assert (775.933349609375 + 64) <= (809 + 1)

It first failed on main in run 45554671416 at 5fc5f86. It passed in the five push runs before that one. The commits in that range didn't introduce it, because it reproduces before them:

commit leaf-dev suite flake --copies N --workers 4 --load 2
a1ac633 (before the failing range) 3 of 18 failed, each with assert (781 + 64) <= (809 + 1)
ceec054 (current main) 1 of 12 failed the same way, and 2 of 12 errored at teardown

The teardown errors are Firefox's This site appears to use a scroll-linked positioning effect warning, which clean_browser (tests/render_harness.py) rejects. #6860 found the same warning when a page goes away while a glide passes the reply's CodeMirror editor.

Diagnosis so far, from reading the code, not yet confirmed by a probe: the turn's resting spot is about New reply's height too low. That fits the glide in #fitAnswer (browser/runtime/records/thread/thread-card.js) reading its target while .lf-awaited has no box yet (below falls to 0). It also fits the test's scroll_settled returning before the glide has landed. The teardown warning suggests the glide is sometimes still running when the test ends. The next step is to log the target that glideBy's callback returns on each frame, together with .lf-awaited's box, in a failing copy. That will show whether this is a product misplacement, which would show the user their turn hidden under New reply, or a read the test makes too early.

Cause of a failure tracked in #7136.

Activity

  1. added
    tend-ci-cause
    on Nov 25, 2026
  2. leaf-agent commented on Nov 25, 2026

    @leaf-agent
    CollaboratorAuthor

    Fixed on main by #7132 (21748e6073ca987641f6cfe17053e5a4d8ea7c71). Closing.

    I ran leaf-dev suite flake --workers 4 --load 2 on the Firefox node at each commit after ceec054, the last one this issue measured:

    commit result
    ceec0540498740abe789b8ae8bc227fe0f080d46 19 of 24 failed, each with assert (781 + 64) <= (809 + 1)
    b668fed8d (#7137, just before #7132) 9 of 12 failed the same way, and 2 of 12 errored
    21748e6073ca987641f6cfe17053e5a4d8ea7c71 (#7132) 12 of 12 passed
    d5e74632a (current main) 48 of 48 passed

    Before #7132, Firefox left the card transcript's bottom padding out of its scroll range because the transcript has sticky items. .lf-awaited carried a bottom offset to make up for that padding, and the offset stood New reply 8px below the card's edge in Firefox. #7132 replaced the padding with an ::after row and dropped the offset. That fits the glide in #fitAnswer measuring against New reply's box, but I haven't traced the 36px end to end. I treated the bisection as the evidence: the failure stops at that commit and doesn't come back in 60 copies.

    If it fails again, it will come back to triage through its CI report. Logging glideBy's target together with .lf-awaited's box on each frame, as this issue proposed, is still the probe to run on a failing copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions