Skip to content

Flaky TypeScript SDK test: bounded event queue overflow #260

Closed

Description

@KooshaPari

The TypeScript SDK job failed on master (run 42354044305, head f59329a) with:

not ok 19 - globalEvents fails loudly when its bounded event queue overflows
  error: 'Missing expected rejection.'  (ERR_ASSERTION)
  at sdk/typescript/test/client.test.ts:555

enqueue() in sdk/typescript/src/client.ts only buffers an event when no consumer is awaiting; if a waiter is pending the frame is handed straight to it and the buffer is skipped. So overflow needs two frames to arrive while nobody is calling next().

The test sent exactly two frames on a 10ms timer and then asserted after a fixed 30ms settle window. On a loaded runner the frames can miss that window, the queue never reaches its bound of 1, and next() resolves with the first buffered event instead of rejecting.

This is a timing assumption in the test, not a defect in the client.

Fixing it in a follow-up PR.

Activity

  1. added
    kilo-triaged
    on Nov 8, 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

    kilo-triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions