feat: add k6 per-endpoint load tests for #801 #802 #803 #804 - #834
Open
emmanueltony792-blip wants to merge 1 commit into
Open
Conversation
…eze#802 harystyleseze#803 harystyleseze#804 - load/pharmacy-compare.js: ramping concurrent GET /pharmacy/compare reads, verifies ranking consistency under db.ts store contention, gates p95/p99 latency and zero 5xx (closes harystyleseze#801) - load/drug-interactions.js: small/large/over-limit drug list scenarios for GET /drug/interactions, confirms MAX_TEXT_LIST_ITEMS=20 cap rejects quickly without running the O(n\xc2\xb2) loop, records interaction-pair counts (closes harystyleseze#802) - load/pharmacy-order.js: concurrent POST /pharmacy/order burst + sustained load, verifies file-lock/atomic-write integrity by comparing 200-count to persisted orders, tracks 503 facilitator throttle rate (closes harystyleseze#803) - load/agent-stream.js: soak + churn scenarios for GET /agent/stream SSE, holds 50 concurrent connections and rapid connect/disconnect cycles to surface broadcastSSE memory leaks and sseClients Set teardown (closes harystyleseze#804) - package.json: add load:pharmacy-compare, load:drug-interactions, load:pharmacy-order, load:agent-stream npm scripts - .gitignore: add coverage/, __snapshots__/, *.snap, test-results/, playwright-report/, .next/, *.tsbuildinfo, OS and editor files
|
@emmanueltony792-blip 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
load/pharmacy-compare.js: ramping concurrent GET /pharmacy/compare reads, verifies ranking consistency under db.ts store contention, gates p95/p99 latency and zero 5xx (closes k6 per-endpoint load test for GET /pharmacy/compare #801)
load/drug-interactions.js: small/large/over-limit drug list scenarios for GET /drug/interactions, confirms MAX_TEXT_LIST_ITEMS=20 cap rejects quickly without running the O(n\xc2\xb2) loop, records interaction-pair counts (closes k6 per-endpoint load test for GET /drug/interactions #802)
load/pharmacy-order.js: concurrent POST /pharmacy/order burst + sustained load, verifies file-lock/atomic-write integrity by comparing 200-count to persisted orders, tracks 503 facilitator throttle rate (closes k6 load test for POST /pharmacy/order (MPP charge path) #803)
load/agent-stream.js: soak + churn scenarios for GET /agent/stream SSE, holds 50 concurrent connections and rapid connect/disconnect cycles to surface broadcastSSE memory leaks and sseClients Set teardown (closes k6 concurrency/soak test for GET /agent/stream SSE connections #804)
package.json: add load:pharmacy-compare, load:drug-interactions, load:pharmacy-order, load:agent-stream npm scripts
.gitignore: add coverage/, snapshots/, *.snap, test-results/, playwright-report/, .next/, *.tsbuildinfo, OS and editor files
Closes #
What changed
How to test
Checklist
data/spending.json,data/orders.json) committedcloses #801
closes #802
closes #803
closes #804