Flaky server test, pre-existing and outside this change (the change is client-only) #23

Open
opened 2026-11-16 00:07:51 -05:00 by cmoriarty · 0 comments
Owner

What happens: Flaky server test, pre-existing and outside this change (the change is client-only): 'bot pacing > applies each bot move only after its injected delay, consulting the delay once per move' asserts the injected delay is consulted exactly twice (toEqual([500, 100])) but under load a third/fourth auto-move is scheduled in the same window and the assertion fails. Failed on one run, passed on the immediate re-run.

Where: packages/server/src/session.test.ts:687

How it was seen:

  • 2026-11-16 code review: npm test failed it once (delays [500, 100, 150, 200]); npx vitest run packages/server/src/session.test.ts passed on the next run.

Found by Braid's run run_01M7GQNTCZC95SGDAPW021Y8FD, outside the work it was doing.

**What happens:** Flaky server test, pre-existing and outside this change (the change is client-only): 'bot pacing > applies each bot move only after its injected delay, consulting the delay once per move' asserts the injected delay is consulted exactly twice (toEqual([500, 100])) but under load a third/fourth auto-move is scheduled in the same window and the assertion fails. Failed on one run, passed on the immediate re-run. **Where:** packages/server/src/session.test.ts:687 **How it was seen:** - 2026-11-16 code review: `npm test` failed it once (delays [500, 100, 150, 200]); `npx vitest run packages/server/src/session.test.ts` passed on the next run. Found by Braid's run `run_01M7GQNTCZC95SGDAPW021Y8FD`, outside the work it was doing.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/scratch-vllm-fp8#23
No description provided.