Skip to content

Diff hunk fixture cannot establish its initial sideways reading position #4919

Closed

Description

@leaf-agent

Diff hunk fixture cannot establish its initial sideways reading position. This boundary fails in scheduled run 41299273709; the current diagnostic, rather than the older brief, is the starting point:

tests/browser/widgets/test_diffs.py::test_a_diff_hunk_landing_preserves_sideways_reading_outside_its_shadow_tree
E           assert 0 == 150

The retained diagnosis recorded: Sideways hunk fixture cannot establish the initial scrollLeft=150: it reads zero before landing.

Recovery fetched main at 792abf43c9ae36b0edfefcff300dc61fed4fe5a6, checked the open PR inventory and searched issues by this test name. Closed test-name hits may describe earlier diagnostics; they do not establish a shared cause with this failure. No local reproduction has run in this recovery session. The triage worker owns current-main reproduction, causal diagnosis and repair through the repository’s normal review and landing gates. Compare intervening changes and the introducing PR’s intent before changing the interface or an assertion. A test whose setup no longer reaches its claimed boundary needs that setup repaired; do not broaden an accepted set merely to make it pass.

Full tracebacks and pictures are in the run’s pytest-results-* artifacts. Reuse an existing owner if reproduction establishes a common cause; preserve distinct mechanisms and any product decision or external-evidence blocker explicitly.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Reproduced on current main: the hunk fixture fails before navigation because the default widget width cap prevents its 1000px diff from overflowing the 500px reader. Explicitly setting max-inline-size: none on this fixture's #patch restores the sideways position and the full test passes, including hunk navigation from both 0 and 150 pixels.

    This shares the wheel fixture's cause in #4978. I supplied the verified adjacent correction to that PR's active review rather than racing its branch. That review owns incorporating the correction; #4919 stays open pending the repair. With await_ci: false, the review and landing workflows own subsequent CI and landing.

    Verified with uv run pytest tests/browser/widgets/test_diffs.py::test_a_diff_hunk_landing_preserves_sideways_reading_outside_its_shadow_tree -q -n0: 1 failed before the fixture correction, 1 passed after it. No production code changes are needed for this diagnostic.

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