CI fails with `ERRO[0602] thresholds on metrics 'http_req_duration' have been crossed` and exit code 99.

BeginnerTroubleshootingk6 Load Testing
Answer

Likely causes → The release candidate is slower than the latency threshold, or the test environment was degraded (noisy neighbour, cold caches, undersized staging), or the load generator itself was saturated.

Diagnose → Read the end-of-test summary (p(95), p(99), http_req_waiting vs http_req_connecting), compare with the previous successful run, and check server-side latency and CPU throttling during the test window.

Fix → If server-side latency regressed, block the release and profile the change. If the environment was at fault, fix it and re-run, rather than loosening the threshold.

Prevent → Trend k6 results per build (JSON output or Prometheus remote write) and keep test environments sized consistently.

All SRE & Reliability questions Roadmap: SRE & incident response

More on k6 Load Testing