Skip to content

ci-fix: trace gallery clips timeline internals and changes while idle #2128

Closed

Description

@leaf-agent

The complete Python test job in main run 37863827619 failed two trace gallery gates, and both still fail when selected on current main under Python 3.12:

  • tests/test_render_gate.py::test_page_fixture_renders[playwright-trace-gallery] reports Vis Timeline panels, grid lines and tick labels extending 2–63 pixels past clipping ancestors at 1200×900, with further reports at other widths. A browser probe identified the reported nodes as vis-panel, vis-grid and vis-text descendants of the embedded timeline. The viewport screenshot shows the visible controls inside the rail, so the next step is to distinguish intentionally virtualized geometry from any inaccessible label or control before changing the widget or the render check.
  • tests/test_render_gate.py::test_a_still_page_comes_back_from_every_journey_as_it_was[playwright-trace-gallery] sees a viewer-move class write and two margin layout frames on an untouched page. After a narrow-to-wide resize journey, the moment buttons return about 2–3 pixels to the right of their earlier positions at the same width. This is a separate stillness and position problem; the test is not merely reporting the timeline's clipped internal boxes.

#2100 introduced the timeline and image inspection integration. #2126 addresses the same run's two margin refresh failures and does not settle these gallery gates. A safe repair needs a browser reading of which timeline labels remain reachable and which callback keeps the viewer and margin active after presentation.

Activity

  1. leaf-agent commented on Oct 9, 2026

    @leaf-agent
    CollaboratorAuthor

    I reproduced both gallery failures on current main with the two selected test_render_gate.py cases. The first still reports clipped Vis Timeline internals; the second still reports an idle viewer-move write, two margin layout frames, and moment buttons returning 2 px to the right after a narrow-to-wide resize. #2126 changes the viewer resize path for the related margin failures, so a parallel fix there would overlap work already under review. I did not open a gallery fix: the render check needs a reading that separates Vis's intentionally clipped geometry from a lost label or control, and the moment-position shift remains independently unexplained. The selected test command is uv run pytest 'tests/test_render_gate.py::test_page_fixture_renders[playwright-trace-gallery]' 'tests/test_render_gate.py::test_a_still_page_comes_back_from_every_journey_as_it_was[playwright-trace-gallery]' -q.

  2. leaf-agent commented on Oct 9, 2026

    @leaf-agent
    CollaboratorAuthor

    The same two gallery checks fail in main run 37868899110 and in the focused run on current main (2 failed in 36.73s). The diagnostics still show clipped Vis Timeline internals, an idle viewer-move write with two margin frames, and moment buttons returning 2–3 px to the right after a narrow-to-wide resize. #2126 remains open for the related Viewer resize path; the clipping and moment-position causes remain unsettled here.

  3. leaf-agent commented on Oct 9, 2026

    @leaf-agent
    CollaboratorAuthor

    After #2126 merged, the selected trace gallery render gate now passes on current main (00e093c6); the earlier clipped-internals finding did not recur in this focused run. The stillness journey still fails on that head: at rest it records a viewer-move class write and two margin layout frames, and after its narrow-to-wide resize the three moment buttons return 2 px to the right. I ran uv run pytest -q -n0 'tests/test_render_gate.py::test_page_fixture_renders[playwright-trace-gallery]' 'tests/test_render_gate.py::test_a_still_page_comes_back_from_every_journey_as_it_was[playwright-trace-gallery]' in a worktree at that commit: one passed, one failed. The remaining work here is the idle write and non-idempotent resize position.

  4. leaf-agent commented on Oct 9, 2026

    @leaf-agent
    CollaboratorAuthor

    Resolved on main by #2126, #2153, and #2154. The clipping gate passed after #2126; the timeline resize and idle Viewer findings were fixed by #2153 and #2154. On combined main 5b85007, both selected trace-gallery gates pass (2 passed).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions