Skip to content
Latchkey

Load test results not saved or parsed for the CI gate in CI

A load-test job can pass without actually gating anything if results are never written or the parsing step cannot read them. The run "succeeds" only because no threshold was evaluated, which defeats the purpose of the test in CI.

What this error means

The gate step reports a missing JTL/JSON file, an empty summary, or the job goes green despite obvious failures because nothing parsed the output.

Load test
# JMeter
jmeter.util.JMeterError: Results file results.jtl not found for report generation
# k6
open summary.json: no such file or directory

Common causes

No output file was written

The run did not pass -l results.jtl (JMeter) or export a summary (k6), so the parsing step has nothing to read.

The gate uses thresholds, not post-hoc parsing

Relying on a separate parse step is fragile; the reliable gate is the tool's own non-zero exit on a failed threshold.

How to fix it

Write results and let the tool gate on exit code

  1. Save output explicitly (JTL for JMeter, summary export for k6).
  2. Prefer the tool's built-in threshold/assertion exit code as the gate.
  3. Only parse the file for reporting, not as the pass/fail source of truth.
Terminal
# k6 gates on thresholds (exit 99) AND saves a summary
k6 run --summary-export=summary.json script.js

Generate a report from a saved JTL

For JMeter, save the JTL then build the HTML report from it as an artifact.

Terminal
jmeter -n -t plan.jmx -l results.jtl -e -o report/

How to prevent it

  • Always write results to a file, and upload it as an artifact.
  • Gate on the tool's own threshold exit code, not a fragile parse step.
  • Fail the job if the expected results file is missing.

Frequently asked questions

What causes "Results missing / gate cannot parse"?
The run did not pass -l results.jtl (JMeter) or export a summary (k6), so the parsing step has nothing to read.
How do I fix Results missing / gate cannot parse?
Write results and let the tool gate on exit code

Related guides

References

Latchkey auto-heals failures like this one - detected, fixed, and retried without you. Start free → 30-day trial · No credit card