Skip to content

v0.9.6: backend load-test harness (warm /analyze)#7

Merged
Shaan-alpha merged 6 commits into
mainfrom
feat/v0.9.6-load-test-harness
May 28, 2026
Merged

v0.9.6: backend load-test harness (warm /analyze)#7
Shaan-alpha merged 6 commits into
mainfrom
feat/v0.9.6-load-test-harness

Conversation

@Shaan-alpha

Copy link
Copy Markdown
Owner

Summary

A reusable open-loop load-test harness for the backend warm /analyze path. The harness is the durable deliverable; the full 100 RPS validation run is an operator step (hardware-gated).

  • backend/loadtest/run.py — open-loop (fixed-rate) async dispatcher (httpx, already a dep), p50/p95/p99 + error rate + achieved RPS, pass/fail thresholds, ramp, exit 0/non-zero.
  • 6 unit tests for the pure stats helpers (backend/tests/loadtest/test_stats.py).
  • backend/loadtest/README.md runbook — local SRH (Docker) warm-cache setup, prime-then-measure, ramp, point-at-deploy, Windows/Git-Bash MSYS_NO_PATHCONV note.
  • No application-code change (relies on the existing "anonymous + unset INTERNAL_PROXY_SECRET → analyze limiter skips enforcement" behavior).

Test plan

  • Backend ruff clean; pytest 290 passed / 69 skipped (+6 stats tests)
  • Frontend lint/tsc clean; vitest 54; next build clean (version literals only)
  • Harness sanity run (backend-only): /openapi.json 10 RPS × 5 s → 0 errors, p95 6.2 ms, PASS, exit 0
  • Full 100 RPS warm-/analyze run — operator step (Docker/SRH + GITHUB_TOKEN), recorded when run

@Shaan-alpha Shaan-alpha merged commit a9c6207 into main May 28, 2026
4 checks passed
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.

1 participant