Skip to content

test_a_thread_walk_starts_one_page_trip_and_reveals_its_nested_passage fails on main since #5285 #5476

Closed

Description

@leaf-agent

Since #5285 ("Move every Leaf scroll onto one glide"), a thread walk jumps the page before its smooth navigation step begins.

Failing on main (b5f5c5d43, reproduced locally with uv run pytest --run-main):

  • tests/browser/navigation/test_threads.py::test_a_thread_walk_starts_one_page_trip_and_reveals_its_nested_passage
    AssertionError: the thread walk jumped the page before its smooth navigation step began: {'firstPage': 1221, 'rail': 3978, 'local': 456, 'localXFits': True} assert 1221 < 100
    

Introducing change: #5285 (b9203f0). Bisect over the 94392ce..bb35e35 range ran test_a_thread_walk_starts_one_page_trip_and_reveals_its_nested_passage at each step; the test passes on b9203f0d6^ and fails on b9203f0d6.

CI evidence: first failing push run 41782631970, and every push run since through 41954384375. Each run's pytest-results-* artifact has the tracebacks and screenshots.

No cause has been diagnosed past the bisect. Read #5285's description for what it meant to change, then decide per .claude/skills/running-tend/SKILL.md, Reading a red suite, whether each test expects behaviour #5285 replaced (update the test) or caught a regression (fix the code).

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    This is a test repair rather than a code regression. #5518 has the fix, its CI is green, and the tend-land run that will merge it is already going.

    #5285 replaced the browser's smooth scroll with Leaf's 140 ms ease-out glide, and even a prompt first frame of that glide moves about a third of the trip. The firstPage < 100 threshold was built on native smooth scroll's slow start, so it couldn't tell the glide's first frame from the nearest-edge jump it was written to catch. That jump happens in the press's own task, so the test now reads the scroll positions there: the nested scrollers have moved and the page has not. It also checks that the page's scroll positions only ever increase on the way to the centre. Locally the old test fails on current main, the new one passes three times in a row, and putting back the page's nearest-edge reveal makes it fail with the page at 830 px.

    The PR description also notes, without changing it, that the glide's clock starts at the press. Here the next frame came 70–90 ms after the press, so the first frame that moved the page showed it about 90% of the way 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