test: add weekly autocannon load test workflow (Resolves #426)#564
Conversation
|
@Yash-Karakoti is attempting to deploy a commit to the ritik4ever's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded ChangesAdd autocannon load testing dependency
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What changed
autocannonas a dev dependency in thescriptsdirectory.scripts/run-load-test.jsto perform automated performance testing (20 concurrent connections for 30 seconds)./api/streams, 20% GET/api/streams/:id, 10% POST/api/streams) and enforces performance thresholds (fails if p99 > 500ms or error rate > 1%)..github/workflows/load-test.yml) that runs the load test automatically every Sunday at midnight, as well as on-demand viaworkflow_dispatch.load-test-summary.jsonresults as a workflow artifact.Testing done
workflow_dispatch) to verify that the CI environment successfully starts the backend, seeds the database, executes the load test, and uploads the artifact.Related issues
Closes #426
Checklist
Summary by CodeRabbit