Skip to content

test_every_card_keeps_the_placement_rules[workspace-1000]: the full-measure card covers the whole log pane it is about #6047

Closed

Description

@leaf-agent

tests/journeys/margin/test_card_placement.py::test_every_card_keeps_the_placement_rules[workspace-1000] fails on Linux and macOS in scheduled run 43706054091 (f20c08b73):

AssertionError: no spot takes the wheel for wlog-6

First bad commit: #5846 (2d35c9e42, "Open every thread card at the full measure…"). git bisect run over this case between 6cfc59a83 (passes) and 9f3c6590b (fails) names it. The failure reproduces locally on main 9f3c6590b.

What the test sees. At a 1000px window, the card for wlog-6, a row in the log #wlog inside the workspace pane #findings-body, stands under its row. It now spans the full measure of its room, and that covers the whole visible log pane:

box left top right bottom
row wlog-6 27 291 471 318
its scroller #wlog 27 328 471 488
.lf-margin-preview 21 334 492 741

SWEEP_AIM scans the scroller's box for a point whose topmost element scrolls with it, skipping .lf-margin-preview. Only the pane's top 6px is uncovered, and the scan starts at top + 6, so it finds no point. Before #5846, the card took the width of its words, at least --thread-card-min (320px), and part of the log stayed exposed.

What needs deciding. The test stands for a reader who wheels the log while the card is open. #5846 meant for cards to open at the full measure, or at their room where that is narrower. Here the room is the workspace pane, so the card now covers the log it is about, and a reader can't reach that log with the wheel until they close the card. A repair could keep the card clear of the scroller holding its row, or the sweep could accept a covered scroller as a state the user resolves by closing the card. placement-rules.json and the sweep's rules own that choice. Making only the test aim elsewhere would hide the change in what a reader can do.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    This needs a placement decision from @max-sixty, so I've assigned it to him. The failure still reproduces on current main: no commit has landed since 9f3c6590b, the commit the reproduction above ran on. No open PR changes card placement.

    I don't see a repair that keeps both #5846's intent and what the test protects:

    Either answer is a new rule that doesn't exist yet:

    1. Keep the card clear of the scroller that holds its row. The card could narrow, or take another side, wherever covering that scroller would otherwise be the result. This gives up part of the full measure in panes that are about as narrow as the measure.
    2. Accept a covered scroller. The reader closes the card to reach the log again. The sweep would record this as a rule in placement-rules.json, so it stops reporting this case as a finding.

    Once you've picked one, the next run can write the rule and its sweep finding together, and the failing case at workspace-1000 becomes the regression test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

tend-ci-cause

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions