Skip to content

test_page_fixture_renders: ResizeObserver loop error on pr-walkthrough and notification-playground #5464

Closed

Description

@leaf-agent

tests/journeys/test_render_gate.py::test_page_fixture_renders[pr-walkthrough] and [notification-playground] error at teardown in scheduled run 41816958231 (checkout 8b759a5663b5) on Linux and macOS (also [thread-panel-gallery] there), and both reproduce locally on main e0c0f9c5f (Linux, --run-nightly):

failed on teardown with "AssertionError: http://127.0.0.1:44805/versions/v1.html: window error: ResizeObserver loop completed with undelivered notifications. (recurred on the confirming render attempt)

None of these pages hit this in scheduled run 41622727492 (checkout 19757c94c59b), so the change lies in 19757c94c59b..8b759a5663b5. The same window error fails teardown in push run 41976158322 for tests/browser/test_render_controls.py::test_sample_host_view_changes_leave_its_scroll_and_keyboard_position. Some observer now changes the size of what it observes within its own callback. Which observer, and whether it is the page's or Leaf's, is not yet established.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #5500 has the fix for the three test_page_fixture_renders pages. The cause is Leaf's margin layout, not the pages' own observers. Bisecting the notification-playground case lands on 7f857fd0f (#5252). That change moved the margin layout's size watch on the body and the column from row registration into the layout pass, which delays the watch's first deliveries until the page is already settling. The layout pass they then run resizes boxes that observer loop has already delivered. On pr-walkthrough, the last delivery before the error is that watch's first notification for the column. With the watch started again by the first registered row, still reading the column only once, pr-walkthrough, notification-playground and thread-panel-gallery all pass. On main (f8808301f) all three fail.

    test_sample_host_view_changes_leave_its_scroll_and_keyboard_position has a separate cause. It passes at 7f857fd0f, bisects to 61afa3016 (#5361), and still fails with #5500. #5486 already tracks it with that bisect.

    #5500's review and CI are still pending, and its landing proceeds from there.

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