Read the results

Read a verdict, an exit code and a run record, follow the Explore and trace links of a finding, and decide whether a failure is a regression or noise.

A run with -out ends with a verdict, an exit code and a directory of files. This page tells you what each of them means and what to do when the verdict is not PASS.

Before you start

Verdicts and exit codes

VerdictExitMeaning
PASS0Everything that was checked is within its limit.
FAIL1An event was lost, repeated or reordered, an error was counted, -slo-p99 was missed, or a query is above its limit.
(bad arguments)2The command was refused before it ran. No record.
INCOMPLETE3The run cannot say. The generator was not usable, the cleanup is unknown, a query could not be judged, or nothing was measured.
TECHNICAL_ERROR4The run could not be carried out: an error, or a Grafana or Prometheus query that could not be asked.
cancelled5You stopped it (Ctrl-C). A cancelled run says so whatever its verdict would be.

When several things are true, a FAIL wins over a technical error, and a technical error wins over INCOMPLETE. A suite returns the exit code of its worst case, in the order cancelled, FAIL, technical error, INCOMPLETE, PASS.

go run turns every non-zero code into 1 and prints exit status N. Build the binary to see the real code (see the quick start).

Without -out there is no record and only the codes 0, 1 and 2 exist. See Quick start.

What the terminal shows

All of this goes to stderr. Stdout holds the JSON result of a single run.

fanout-followers-2 run 1/6: usable=true
...
run record PASS: /path/to/stress-runs/20260101T120000Z-abc12345-smoke-fanout-followers-2-1a2b3c4d
  • <case> run n/N: usable=... after each run of a suite case.
  • FAIL: lost 1, duplicates 0, reordered 0, errors 0 or FAIL: p99 ... exceeds the objective ... for a single run.
  • WARNING: the generator fell ... behind its schedule; do not compare this run.
  • <case>: a timing is above its limit, repetition 1/2 while a slow timing is confirmed.
  • run record <VERDICT>: <directory> <reasons>, one line per record. The reasons are separated by ; .
  • For each finding with links: finding query NAME{series}: reason, then explore: URL and traces: URL.
  • suite ended early: ... when a case could not be carried out. The report written so far says how far it got.

The files

For a single run, -out DIR gives DIR/<run_id>/. For a suite, DIR also holds the suite’s own files.

FileContent
<run_id>/run.jsonThe record, schema robotelos.stressrun/1: verdict, reasons, warnings, metrics, queries, git, environment, target, artifacts with SHA-256. Fields are in the reference.
<run_id>/report.mdThe same for a person.
<run_id>/all.txtOne benchmark line per run, for benchstat.
<run_id>/runs/<n>.jsonThe full result of each run.
<run_id>/runs/repeat<k>.<n>.jsonThe runs made to confirm a slow timing. They are in no all.txt.
DIR/report.md (suite)One row per case: runs, usable runs, medians of p50, p99 and max over the usable runs, fault counts and a status (ok, inconclusive or FAILED).
DIR/all.txt, DIR/runs/<case>.<n>.json, DIR/environment.txt (suite)The benchmark lines, the full results, and machine, Go version, commit, transport and target.

The <run_id> is the UTC start time, the first 8 characters of the commit (or unknown), the suite and the case, and 8 random hexadecimal characters. The files are written with mode 0600. Any declared token is removed from every file, and a file whose name holds one is deleted.

report.md starts with a table of the run (commit, environment, target, seed, generator, cleanup) and then has these sections when they have something to say: Reasons, Warnings, Findings, Metrics, Oracle, Faults, Series, Fuzz, Leftovers and Artifacts. Read Reasons first. It says why the verdict is not PASS.

A suite case is ok only with at least 3 usable runs. inconclusive means fewer, usually because the generator fell behind its schedule. FAILED means an event was lost, repeated or reordered, or a connection failed. That is a finding, not a number to tune away.

Query statuses

Each query of a judged run gives one result per label set:

StatusMeaning
PASSThe value is at or below its limit.
FAILThe value is above its limit. The reason starts with regression: and shows the run value and the baseline median, minimum, maximum and runs.
NOT_APPLICABLEThe query does not apply to this suite or scenario. It does not change the verdict.
NOT_JUDGEDThere was nothing to compare with, or no answer: no baseline, a baseline of fewer than 6 runs, another load, a changed query, no data, or the query could not be asked. The record is INCOMPLETE. If the backend could not be reached or the query failed, it is TECHNICAL_ERROR.

A finding is a query result that is FAIL or NOT_JUDGED. Each gets links into the Grafana the run was judged with, over the window of the run:

  • explore opens the query exactly as it was asked, at the same time, so the instant value shown is the judged one.
  • traces is a Tempo search for the spans of the series, for a query that declares a trace in queries.json. For a timing with a baseline it searches only spans slower than the limit.

They are in run.json (links.explore, links.traces on the query result), in the Findings of report.md and on stderr. PASS and NOT_APPLICABLE results have none. Links change no verdict and no exit code, and a baseline never holds them.

You may not get a link. Explore needs exactly one Prometheus data source in the Grafana. Traces need exactly one Tempo data source, otherwise the record has a warning (no trace links: Grafana has N Tempo datasources, exactly 1 is needed). A series with a label that is not a plain name, or a query that excepts the label value, has no trace link.

When the verdict is not PASS

FAIL

  1. Read the Reasons. Do not skip to the numbers.
  2. If an event was lost, repeated or reordered, or a connection failed, treat it as a defect. Rerun once to see if it repeats, then look at the code path. Do not change the rate to make it go away.
  3. If a query is FAIL, open its Explore link and look at the window. For a store operation, open the trace link.
  4. Check that the generator was usable (below), then rerun the case with nothing else running on the machine.
  5. If the regression is intended, replace the baseline as described in Judged runs and baselines.

INCOMPLETE

Read the reasons. The usual ones:

ReasonWhat to do
the generator was not usableLower the rate (a longer -interval) or the number of followers, close other programs, or give the generator its own machine.
the cleanup was not doneThe target is not marked disposable. Mark a throwaway target in the target file. Never mark a shared one.
a query no baseline ... or not compared ...Accept a baseline for this environment, suite, case and load.
above the limit once, not confirmedA repetition could not be made, so the run is INCOMPLETE. Rerun when the target is quiet. The same text also appears on a query that passed: the value was above the limit once, but the repetitions were not. That is a PASS and needs no action.
nothing was measured or judgedThe run did no work. Check the target and the flags.

TECHNICAL_ERROR

Read the error field of run.json or the reason in the record. Typical causes: the token is wrong, the server is down, the Grafana address cannot be reached, or the Grafana holds more than one Prometheus data source. A technical error is not a finding about the server.

Noise or regression

  • Usable generator. usable is true only when max_schedule_lag_ns is at most 5 ms and nothing was lost, repeated, reordered or failed. At send intervals of 5 to 10 ms, 5 ms is half an interval or more, so “usable” is a weak claim there.
  • Rerun. Repeat a suspicious run on the same machine, with the same flags, right after the first. A real regression repeats.
  • Confirmation. A judged timing above its limit is rerun twice automatically and fails only when the median of three is above the limit. A count is never confirmed.
  • Counts before times. A count of store operations or journal events does not drift with the machine. A count FAIL is stronger evidence than a timing FAIL.
  • Compare with benchstat. With -bench, run each side at least six times and compare. A difference counts only with a p-value below 0.05.
  • One machine. A developer machine runs the generator, the server and your editor together. Treat a single number as indicative. In an earlier series of judged runs on unchanged code, some timing FAILs were not explained.

Next steps