Enforcing Performance Budgets with k6 Thresholds in CI/CD Pipelines
Learn how to codify performance budgets as k6 thresholds, wire them into CI/CD for automated regression gates, and handle flakiness and statistical pitfalls.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to codify performance budgets as k6 thresholds, wire them into CI/CD for automated regression gates, and handle flakiness and statistical pitfalls.
Use ramping-vus stages and http_req_duration / http_req_failed thresholds to make k6 load tests repeatable and CI-gateable without manual inspection.
Learn how to compose realistic, multi-protocol load profiles in a single k6 script using scenarios and executors. Includes a worked example with HTTP, WebSocket, and gRPC flows, plus trade-offs like arrival-rate overshoot and graceful-stop cutoffs.
Learn how k6’s http.batch lets a single virtual user send multiple HTTP requests in parallel, with a worked example, trade‑offs, and verification steps.
Learn how to use k6 Thresholds to define automated pass/fail criteria for your performance tests, ensuring your SLAs are met before code reaches production.
Learn when to use Virtual Users versus Arrival Rate executors in k6 to avoid coordinated omission and ensure stable throughput during performance benchmarks.
Learn how to use k6 thresholds to turn HTTP latency measurements into clear pass/fail signals for your load tests and CI pipelines.
Preventing Accidental Public Access in k6 Cloud Tests When running k6 load tests that target the cloud service, there's a risk of unintentionally exposing test scripts and results publicly. The k6 cloud command makes tests visible by default unless explicitly configured otherwise. Two documented approaches exist for preventing this exposure: using the K6_CLO
Goal Determine whether k6 should extend its HTTP module with built‑in token refresh logic to automatically handle expired bearer tokens or API keys during a load test. Constraints The current core runtime leaves authentication entirely to the test script; adding automatic refresh would introduce runtime dependencies, version‑sensitive behavior, and potential