paperclip/server
Priya Raman b773f0f2e2
test(plugin-worker): remove wall-clock race from duplex buffered-replay tests
The two buffered-replay tests used a fixed 60 ms sleep as a barrier before
they attached the data listener. The barrier raced the subprocess start and
the stdio latency. Under load the three data frames did not always buffer
within 60 ms, so the synchronous drain saw a partial buffer and the
synchronous assertion failed.

Replace the fixed sleep with a deterministic barrier. Each test now scripts
an exit after the three data frames. The host reads the worker stdout line
by line, so it buffers every data frame before it reads the exit. The exit
settles the wait, so `await session.wait()` proves the host holds all
pre-bind frames before any listener attaches. The test then attaches the
listener and the drain delivers every buffered chunk. Both tests keep the
non-batch setImmediate buffer-then-drain path and lose no coverage.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-03 23:59:39 +00:00
..
scripts fix(server): stamp built commit into service.version (#11748) 2026-08-19 21:20:40 -07:00
src test(plugin-worker): remove wall-clock race from duplex buffered-replay tests 2026-09-03 23:59:39 +00:00
CHANGELOG.md fix: bound workspace Git scans (#11572) 2026-08-17 22:11:30 -05:00
package.json chore(deps): bump dompurify from 3.4.13 to 3.4.14 (#12266) 2026-09-03 16:43:44 -07:00
tsconfig.json Fix root TypeScript solution config 2026-03-09 14:09:30 -05:00
vitest.config.ts feat(runner): add hidden server PRP coordinator (#12176) 2026-08-25 14:17:14 -05:00