Skip to content

test_on_a_phone_turning_on_s_tabs_moves_nothing fails on every main push run; its onset can't be bisected locally #5653

Closed

Description

@leaf-agent

tests/browser/test_render_floating_panel.py::test_on_a_phone_turning_on_s_tabs_moves_nothing fails on every ci push run on main since 42029761182 at 6cd5093f3, through 42320062138. Before that, CI failed it once. The test asserts that turning On me's tabs moves no tab. The first tab's box moves by a fraction of a pixel and changes width:

assert stood in (None, now), (tab, stood, now)      # test_render_floating_panel.py:1150
('On me', [[24.28076171875, 746.8229370117188, 44.3603515625], …], [[24, 746.65625, 44.921875], …])

It also errors at teardown with shift watch missed a change to #text in sp….

The introducing change is not established. CI brackets the onset to b3c9842e8..6cd5093f3 (nine commits, including #5441, #5468, #5425, #5479 and #5454). Run locally, the test also fails at b3c9842e8, where CI passed it, so a local bisect can't place it. The first tab's x moves between 24 and 24.28 and its y by 0.17 px, which looks like sub-pixel text layout that differs between this runner and CI. It still fails locally on main 903e1d106. What's left is to find which change first made the tab move on CI's runner, perhaps by reading each run's pytest-results-* artifact and screenshots across that range, or by bisecting under CI's environment. Then decide whether the sub-pixel move is a real motion or whether the test needs a tolerance.

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    This failure is the test reading a press, not a tab moving. #5675 fixes it.

    Since #5340, a pressed .lf-btn is scaled by Web Awesome's press feedback (scale(.9875)). After a touch tap, Chromium keeps the button :active for about 100 ms on a timer. The failing first-tab reading is exactly that scale: width 44.92 → 44.36, with x and y moving by half the difference. panel_settled returns inside that window, and the speedups in b3c9842e8..6cd5093f3 made it return sooner, so whether a read catches the press depends on timing. That's why the onset couldn't be bisected. The teardown shift watch missed a change error has the same cause: the press lets go with no event for the watch to hear.

    The PR makes the test read once the press has let go, and has shift_watch.js announce a released node's :active change. Locally the test now passes (it failed every run before), and a new shift-watch test fails without the watch change. CI on the PR is still running.

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