Skip to content

test_pointing_at_a_depth_hangs_each_depth_s_page_under_its_button[firefox_browser]: the dial's frame is missing or short of Everything after the press, intermittently on macOS #6663

Closed

Description

@leaf-agent

tests/browser/widgets/test_dial.py::test_pointing_at_a_depth_hangs_each_depth_s_page_under_its_button[firefox_browser] fails intermittently on the macOS runner. The test and the dial's hanging sheets are new in #6612, and #6618 then sped up the depth pages. The Chromium case passes.

The failures appear after the press on Everything is released, once document.getAnimations() reports nothing running. The test then reads the accent frame (.lf-dial-hang-frame) at line 191, and the frame is in one of two wrong states:

  • bounding_box() returns None (TypeError at test_dial.py:148). The frame isn't drawn, so the panel was probably closed at that moment even though data-lf-open had just passed.
  • The frame stands at the wrong column: assert 802.07 == 906.69 ± 1. It hasn't reached Everything yet.

Evidence (ci dispatches on the macOS runner, at c72a8ad03 and f1d623be2):

  • Scheduled run 44896279165: failed with the None error. This was the first scheduled run to include the test.
  • 44920350281, --workers 1 --load 4 --copies 6: 1 of 6 failed (None).
  • 44922543784, --workers 3 --load 2 --copies 18: 4 of 18 failed, 3 with None and 1 with the wrong column.

Diagnosis so far, not yet confirmed: two paths respond to the release. The press's end schedules away on the next render (lf-dial.js, onPress), and the click's #aim asks Leaf's preview to read the depth again, which replaces #declared so that away does nothing. If Firefox runs away before the new reading lands, the panel closes and then reopens. That fits the None reading. A reading taken before the frame's re-render starts its transition sees no animations yet, which fits the wrong-column reading. To tell a user-visible flicker from a test that reads too early, the next step is to record data-lf-open and the frame's inset-inline-start on each frame after mouse.up in a failing copy. Dispatch command:

gh workflow run ci --ref BRANCH -f flake="--workers 3 --load 2 --copies 18 'tests/browser/widgets/test_dial.py::test_pointing_at_a_depth_hangs_each_depth_s_page_under_its_button[firefox_browser]'"

Cause of a failure tracked in #6659.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Fix in #6666. The flicker is real: users see it too, not just the test reading too early. The click's #aim reaches Leaf's preview, which showed it at once only within WARM (400 ms) of the press hiding the last preview. A longer press sent the aim through the pointer's 200 ms dwell, so the dial's away closed the sheets first and the dwell reopened them. Holding the press 500 ms reproduces both of this issue's symptoms deterministically, in Chromium as well as Firefox. The slow macOS Firefox runs simply outlast WARM between mouse.down and the click.

    #6666 shows an aim at once where the pointer's dwell on that target has already run, and holds the test's press past WARM on the page clock. The test fails on the old code and passes with the fix. On the macOS runner, the Firefox case passed 54 of 54 copies under load (44925629554). The PR's CI and landing are with tend-land.

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