Skip to content

Drawing and early-thread tests wait for the missing On me control #4229

Closed

Description

@leaf-agent

Scheduled CI run 40311120380 on f919fdebec5313bfbc0e67a4d989fa76c3652bf8 records this failure on macOS.

  • tests.browser.test_render_drawing::test_draw_mode_leaves_chrome_controls_usable
  • tests.journeys.test_render_early_threads::test_an_early_anchored_send_merges_history_and_keeps_its_seen_revision[True]

The diagnostic below establishes the failing boundary; it does not yet establish whether the repair belongs in the product or the test.

Deciding CI diagnostics

macOS, tests.browser.test_render_drawing::test_draw_mode_leaves_chrome_controls_usable:

playwright._impl._errors.TimeoutError: Locator.click: Timeout 120000ms exceeded.
Call log:
  - waiting for locator(".lf-fp-on-user")

This report session read the CI log and JUnit results, without a local reproduction. Reproduce on current main, read earlier CI results and the introducing PR, and preserve its intent and the user behavior when choosing a repair. Do not clear an intermittent failure on a passing rerun alone.

Cause of a failure tracked in #4225.

Activity

  1. added
    tend-ci-cause
    on Oct 26, 2026
  2. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    The macOS failure remains unaccounted for; #4169 is already present in the failing run, so its repair cannot be used to close this report. Both affected cases pass on current main on Linux, including with 6× and 20× CPU throttling.

    The saved macOS tracebacks narrow the boundary: both tests successfully press Exit Draw mode, then reach open_threads → threads_tab → the click on .lf-fp-on-user, which never appears. The early-thread test has already passed its revision and pending-comment assertions. The same scheduled run passes both cases in its Linux job. I compared the run's dev/leaf_dev/browser.py with current main; the driver is unchanged.

    Reproduction evidence

    At main commit 96df4aa241edca448770f384652b367695c249f6, this focused selection passed at normal speed (14.49 seconds) , with --cpu-throttle 6 (37.75 seconds), and with --cpu-throttle 20 (137.75 seconds):

    uv run pytest tests/browser/test_render_drawing.py::test_draw_mode_leaves_chrome_controls_usable 'tests/journeys/test_render_early_threads.py::test_an_early_anchored_send_merges_history_and_keeps_its_seen_revision[True]' -q -n0

    The original run's macOS JUnit artifact confirms the missing-mark timeout for both cases. The preceding scheduled run's available Linux JUnit results also pass both cases; that does not establish macOS recovery.

    I have no reproduced failure against which to validate a repair, and have left the issue open. @max-sixty, the remaining boundary needs a macOS reproduction or a failing-frame capture of the panel's exit, mode and view state; adding a delay or replacing the pointer route with a keyboard shortcut would not establish the cause.

  3. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    Push run 40434026742 adds a Linux failure at the same post-drawing open_threads boundary, but one operation earlier than the recorded macOS timeouts. test_draw_mode_leaves_chrome_controls_usable successfully clicks Exit Draw mode and confirms that data-lf-draw-mode is absent, then threads_tab times out clicking .lf-fp-exit at dev/leaf_dev/browser.py:221. Its call log contains only waiting for locator(".lf-fp-exit").

    The helper at this run's head and the original scheduled run's head is identical: it checks exit_control.count() before clicking that locator, then clicks .lf-fp-on-user. Thus this diagnostic records the exit being present for the count but unavailable for the click, whereas the macOS cases reached the following On me click. This adds evidence about the panel transition boundary; it does not establish a shared underlying cause or a repair. The failure is now observable on Linux as well.

  4. leaf-agent commented on Oct 27, 2026

    @leaf-agent
    CollaboratorAuthor

    Scheduled run 40492069054, on 7cbf67854494bde6f7245fff62a3b1861d1cd661, adds this evidence.

    The macOS tests/browser/test_render_floating_panel.py::test_whatever_the_field_holds_the_row_keeps_its_line[False] times out in open_threads → threads_tab clicking .lf-fp-on-user, with Locator.click: Timeout 120000ms exceeded and only waiting for locator(".lf-fp-on-user") in the call log. This extends the helper-boundary evidence beyond the drawing and early-thread cases; the diagnostic alone does not establish a shared transition cause.

  5. leaf-agent commented on Oct 28, 2026

    @leaf-agent
    CollaboratorAuthor

    #4408 contains the repair for the panel transition race: the Threads pointer helper now waits for rendering before selecting controls, so it cannot mistake the retained Exit button for its subsequent On me action. Its controlled-clock reproduction and focused verification are recorded in the PR.

    The test job passed at ca4650867fb0c8339afe663ae069cf05fa5396d5, but Tend's PR burst limit rejected the review before it started. I restarted that failed review run. The review and landing workflow owns the remaining verification and merge; this issue stays open until the repair lands.

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