Skip to content

[codex] Add k6 SSE stream soak test - #820

Open
MyouzzZ wants to merge 1 commit into
harystyleseze:mainfrom
MyouzzZ:codex/k6-agent-stream-soak-804
Open

[codex] Add k6 SSE stream soak test#820
MyouzzZ wants to merge 1 commit into
harystyleseze:mainfrom
MyouzzZ:codex/k6-agent-stream-soak-804

Conversation

@MyouzzZ

@MyouzzZ MyouzzZ commented Jun 30, 2026

Copy link
Copy Markdown

Summary

  • Adds load/agent-stream.js, a k6 k6/x/sse soak test for many concurrent /agent/stream clients.
  • Sends pause/resume broadcasts during the soak and gates delivery, clean disconnects, broadcast latency, and connection errors with thresholds.
  • Exposes an agent_sse_clients Prometheus gauge so the test can verify SSE connections return to baseline.
  • Serializes SSE payloads defensively so circular payloads cannot crash broadcastSSE.
  • Documents pnpm load:stream and the tunable environment variables.

Closes #804

Validation

  • node --check load/agent-stream.js
  • node -e "JSON.parse(require('fs').readFileSync('package.json','utf8')); console.log('package json ok')"
  • Targeted TypeScript check no longer reports agent/server.ts; it is still blocked by existing errors in shared/bill-audit.ts, shared/rate-limit.ts, and shared/redis.ts.
  • Live k6 soak was not run locally because k6 is not installed in this environment.

@MyouzzZ
MyouzzZ requested a review from harystyleseze as a code owner June 30, 2026 02:34
@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

@MyouzzZ is attempting to deploy a commit to the Harrison Eze's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

k6 concurrency/soak test for GET /agent/stream SSE connections

1 participant