Skip to content

Resume the preserved Versions rollback focus test repair #5191

Closed

Description

@leaf-agent

The Versions rollback case fails in scheduled run 41432142330: tests/browser/test_render_pages.py::test_a_failed_state_keeps_focus_in_the_open_versions_menu expects the Versions container focused after g Shift+V, but it is inactive while its version-row buttons are present. The failure is at line 601, before the rollback assertion.

A prior session already reproduced this boundary and preserved a tested correction on branch fix/versions-rollback-focus, commit 5ed718aa31b9c9d86db12c5e9287a809140d47cf, as recorded in #5096. That issue is a closed creation-allowance tracker, not a repair owner. The session says #5039 deliberately lands keyboard entry on the first version; its correction removes the obsolete container-focus expectation and extra ArrowDown while retaining the focused-row rollback assertion. Before: failed at line 601; after: one passed in 15.12 seconds. This report session has not rerun that evidence.

Resume the preserved branch after reconciling current main and any newer work. Verify the intended focus contract and focused test, then open its PR and complete the normal review and landing handoff. Reuse the existing tested change rather than re-deriving it. Search found no PR by the branch name or Versions rollback title at filing time.

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    The fix is in #5321. Its review passed, and a tend-land run is handling the landing.

    There were two causes. The preserved commit from fix/versions-rollback-focus fixes the first: since #5039, g Shift+V focuses the first version, so the test no longer expects the container to take focus or presses ArrowDown. Once the test got past line 601, it hit a second cause that came from #5307: the server now answers a state read with a Tail patch, so the test's route handler raised KeyError: 'browser'. A new harness helper, fetch_whole_state, asks for a whole reading. Four sibling tests in the same file had the same broken handler, and #5321 fixes them too.

    The Versions test fails on current main and passes on the branch, both locally and in #5321's CI. Two of the siblings now fail on the separate Resolved / 1 new cause tracked in #5128.

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