Skip to content

events: live tests for the shared feed (fan-out, reconnect, idle) against the pinned server #964

Open

Description

@Blind-Striker

The shared event feed (#902, ADR-0041) has thorough component tests, but its core mechanics run only against ScriptedEventServer: SharedEventFeedTests (15), EventsClientReconnectTests (20) and EventsClientIdleWindowTests (8). The live suite against the pinned server subscribes to events in about ten classes, but only as a side path of other operations. No live test proves the feed's own behaviour against a real opencode server.

Live tests to add, using the pinned-server fixture:

  • Fan-out: two concurrent SubscribeAsync enumerations on one client both receive the same server events from a real turn, and the server sees one event-stream connection.
  • Reconnect: the fixture's server is stopped and started again. WatchConnectionAsync reports Reconnecting, then Connected, and the new server.connected admission marker arrives. Events produced after the restart are delivered, and the subscriptions stay alive.
  • Idle window: a real server that stays quiet past the idle window triggers a reconnect, without ending the subscription.
  • Selection: a Types filter selects locally against real traffic.

Done when these run in the live lane on all three operating systems, and each one goes red against a mutant of the behaviour it covers.

Activity

  1. added this to the Next milestone on Nov 17, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions