Skip to content

Six outbox and render-gate tests fail on main since #5307 sent a click only the records it changed #5477

Closed

Description

@leaf-agent

Since #5307 ("Send a click only the records it changed"), six outbox and render-gate tests fail on main. Their shared symptoms are a KeyError: 'taken' reading the posted event, a route interceptor recursing through Route.fetch/Route.abort at teardown, a wait for a console message that never comes, and a first event that gets no server answer.

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

  • tests/browser/test_render_gate.py::test_a_reload_mid_flight_never_wedges_round_trip
    AssertionError: the first event reached no server answer assert False + where False = wait(120) + where wait = <threading.Event at 0x7fe1c43b4290: unset>.wait
    
  • tests/browser/test_render_outbox.py::test_a_failed_background_presentation_keeps_the_new_undo_authority
    playwright._impl._errors.TimeoutError: Timeout 120000ms exceeded while waiting for event "console" =========================== logs =========================== waiting for event "console" ============================================================
    
  • tests/browser/test_render_outbox.py::test_an_accepted_event_is_not_retried_when_its_state_cannot_render
    playwright._impl._errors.TimeoutError: Timeout 120000ms exceeded while waiting for event "console" =========================== logs =========================== waiting for event "console" ============================================================
    
  • tests/browser/test_render_outbox.py::test_an_undo_reveals_the_prior_winner_before_its_send_finishes (1 of 2 cases fail locally)
    KeyError: 'taken'
    
  • tests/browser/test_render_read_state.py::test_automatic_read_refusal_keeps_message_unread
    KeyError: 'taken'
    
  • tests/browser/test_render_outbox.py::test_refusal_does_not_overlay_an_accepted_attempt_already_in_the_log
    playwright._impl._errors.TimeoutError: Timeout 120000ms exceeded while waiting for event "console" =========================== logs =========================== waiting for event "console" ============================================================
    

Introducing change: #5307 (5423c81). Bisect over the bb35e35..52c7000 range ran test_a_reload_mid_flight_never_wedges_round_trip at each step; the group passes on 5423c8110^ and fails on 5423c8110.

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

test_a_presence_read_crossing_freshness_returns_to_the_current_lease first failed in the same run and also passes on 5423c8110^ and fails on 5423c8110, but it passes on current main, so it is left out of the list above.

No cause has been diagnosed past the bisect. Read #5307'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 #5307 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

    #5520 updates the tests and changes no product code. Each test still expected the answer shape #5307 replaced. A tab that names its held reading now receives a patch rather than the whole state, so five tests that read reading or taken off an event or state answer raised KeyError inside their route handler. The handler then never fulfilled the request, which shows up as the KeyError: 'taken' and as the console waits that time out. These tests now fetch the whole answer through the harness's fetch_whole_state. The reload test patched PageEndpoint._json, which event answers no longer pass through, so it never saw the first event's answer. It now patches _json_body.

    Locally, with --run-main, all six fail on be273426d and pass on the branch. The PR's CI and review are still pending, and it lands through the usual review once its checks go green.

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