Repository navigation
Description
Summary
#846 split k6 soak failures into classes so the residual would be attributable. On its first real run (rev231, 2026-09-20/21) it worked — the reconciliation was exact on all five runners — but the 4 failures it found all landed in other, and other cannot be resolved into anything actionable from what the run produces.
Evidence
From the 8h soak on rev231, AETHER_METRIC line for runner k6-soak-loader-74b4x (main-worker-01):
{"counts":{"dns":0,"conn":0,"tls":0,"timeout":0,"proto":0,"http_4xx":0,"http_5xx":0,"other":4},
"total":4,"reqs":1835973,"failRate":0.0000021786812769033097}
classified=4 of http_req_failed≈4
The other four runners were 0/0. Fleet total: 4 failures in 9,179,964 requests.
The gap
e2e/soak/k6-mesh-soak.js does pass the disambiguating detail as tags:
bucket.add(1, {
endpoint: url,
code: String(res.error_code || 0),
status: String(res.status),
});with the stated intent: "The exact code/status rides along as a tag so the raw output can still resolve a class down to a specific error when one needs chasing."
But the run keeps no raw output. handleSummary reads data.metrics[metric].values.count, which is aggregated across tags, and it returns {stdout: ...} — which replaces k6's default summary. So the only artefact is the per-class count. The tags exist during the run and are discarded at the end of it.
The comment is therefore true only in a configuration we do not run: there is no --out sink, deliberately (the runner drops privileges, and this repo has lost soak summaries to filesystem writes before — see the note in handleSummary).
Why it matters
other is defined as the prompt to extend classify(): "A non-zero other is a prompt to extend this function, not a failure to explain." That is the right instinct, but acting on it requires knowing what landed there, and nothing in the output says. Reading classify(), the 4 failures had error_code == 0 and a status that was not 200, not 4xx and not 5xx — so a 3xx, or a 0-status response with no error code. Those are very different defects and the run cannot distinguish them.
The practical effect is that the residual is attributable to a class but the catch-all class is exactly the one that needs the detail. 4-in-9.18M is not itself alarming; the concern is that the next run with a non-trivial other will be equally opaque.
Suggested direction
Cheap and in keeping with the stdout-only constraint: have handleSummary emit a breakdown of other by its code/status tags. k6's data.metrics does not expose per-tag submetrics unless they are declared, so this likely means either
- declaring the interesting combinations as submetrics up front, or
- keeping a small explicit
Counterper bucket-of-interest (e.g.aether_fail_other_3xx,aether_fail_other_status0), which is the same mechanism already used for the eight classes and needs no k6 features beyond what is in use, or - printing a bounded sample of the first N
otherresponses (url, status, error_code, error) as they happen, which costs nothing in the healthy case because the healthy case is zero.
The third is probably the best value: it is a few lines, it cannot aggregate wrongly, and a bounded sample is what a human actually wants when chasing 4 events.
Acceptance criterion
Force a failure the current classify() files under other — a target returning 302 is the easy one — and show the summary naming it. If the change cannot be demonstrated to turn an other into something identifiable, it has not fixed this.
Context
Not a regression, and not a blocker: the rev231 soak still graded PASS (2,160,001 prober probes with 0 errors; k6 failure rate 4.4e-7, ~148x better than the previous best graded run). This is about the next run, not this one.
Activity
fix(soak): classify k6 failures by HTTP status, and attribute the res…