Repository navigation
chore(soak): move the sortie harness to 9fcbb81 (in-flight accounting, not-run stages, results stream) - #1385
Conversation
…, not-run stages, results stream) The pins move from sortie 94cf103 to 9fcbb81afaeab77f6f16bacd3ed43d94a65d9fd8: chart 0.1.0-9fcbb81... at sha256:10f6c84b..., the driver image at sha256:0a04580a..., the engine at sha256:99d5058c.... Each was resolved from the registry and verified with the repository's pinned cosign (v3.1.2) against sortie's publish workflow, bound to that commit: the chart, and the index and both per-arch manifests of each image. The gate (sortie-gate.sh): - benchmark.http_inflight_lost is in the zero-failure set and is worded apart from resets and from the mesh's failures. sortie now waits for the requests in flight at the end of a run and counts the ones that never got an outcome. - An execution marked not_run fails by name and is counted in the verdict; the sortie pod's log is read for SKIP lines and a "K not run" summary as a second witness. A stage refused at the execution cap says so instead of listing the refusing engines as lost backends. - The count is judged as a range against the plan: each backend's http_2xx within 99 and 101 percent of its share times the configured duration. It was a rate over the backend's own elapsed time, which can read a hair under the duration, and which a backend that stopped early at its share passed. - Latency is read from each backend's statistics in the report; one WINDOW line says when the run was. A report without started_at is refused as old. - --stream grades the results stream when there is no report: lines that do not parse are skipped and counted, a label listed twice fails. The plan (sortie-plan.sh) no longer templates the WAIT idle strategy (sortie's default since 7f338df) and no longer carries the two latency thresholds that could not fail (the report has the statistics since 1b3d404); --no-latency is gone with them. It gains the http_inflight_lost threshold and, with statsd, backend: name, and the values file names each engine by its node (0fc5746), so the live series are the same on every run. run.sh turns the results stream on, in a file of the run's own (sortie appends and never truncates). sortie-save.sh saves it whether or not there is a report, writes times.tsv, and moves SORTIE_OVERDUE to five minutes: sortie gives up on a silent backend itself since 76f699b. Tests: the fixtures are in the 9fcbb81 report shape; four are trimmed from kind runs of this harness (a clean run, its results stream with the last line cut short, a capped staircase with stages not run, and the pod's log of it). Each new gate condition has a fixture that must fail, failing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
There was a problem hiding this comment.
🟡 Changes recommended
The saver can accept failed log downloads and hang indefinitely during reader-pod cleanup.
2 open findings
What changed in this PR
Updates Aether’s soak harness to sortie 9fcbb81, adopting improved request accounting and recoverable results.
Changes:
- Updates chart and image pins, with stable node-named metrics.
- Adds results-stream saving and execution timestamps.
- Refreshes fixtures and documentation for in-flight losses, unrun stages, and count-based grading.
| File | Description |
|---|---|
| e2e/soak/testdata/sortie/stream-resets.json | Updates reset fixture schema. |
| e2e/soak/testdata/sortie/pool-overflow.json | Updates overflow fixture schema. |
| e2e/soak/testdata/sortie/one-node.json | Updates single-node failure fixture. |
| e2e/soak/testdata/sortie/old-94cf103.json | Adds legacy-format rejection fixture. |
| e2e/soak/testdata/sortie/no-backend.json | Adds execution timestamps. |
| e2e/soak/testdata/sortie/missing-target.json | Updates missing-target fixture. |
| e2e/soak/testdata/sortie/lost-partial.json | Updates partial-result fixture. |
| e2e/soak/testdata/sortie/lost-backend.json | Updates lost-backend fixture. |
| e2e/soak/testdata/sortie/kind-results-stream.jsonl | Adds truncated real-stream fixture. |
| e2e/soak/testdata/sortie/kind-not-run.shares.tsv | Adds expected stage shares. |
| e2e/soak/testdata/sortie/kind-not-run.log | Adds real skipped-stage log. |
| e2e/soak/testdata/sortie/kind-not-run.json | Adds real cap-refusal report. |
| e2e/soak/testdata/sortie/kind-not-run.engines.tsv | Maps refusal-fixture engines. |
| e2e/soak/testdata/sortie/kind-clean.shares.tsv | Adds clean-run target shares. |
| e2e/soak/testdata/sortie/kind-clean.json | Adds real successful-run report. |
| e2e/soak/testdata/sortie/kind-clean.engines.tsv | Maps clean-fixture engines. |
| e2e/soak/testdata/sortie/inflight-lost.json | Adds in-flight-loss fixture. |
| e2e/soak/testdata/sortie/frozen.json | Updates frozen-node fixture. |
| e2e/soak/testdata/sortie/driver-saturated.json | Updates saturation fixture. |
| e2e/soak/testdata/sortie/clean.json | Updates clean baseline schema. |
| e2e/soak/testdata/sortie/cancelled.json | Adds cancellation timestamps. |
| e2e/soak/sortie-values.yaml | Updates images and backend naming. |
| e2e/soak/sortie-teardown.sh | Documents retained stream files. |
| e2e/soak/sortie-save.sh | Saves streams and exports timestamps. |
| e2e/soak/sortie-plan.sh | Updates thresholds and engine defaults. |
| e2e/soak/run.sh | Updates chart pin and enables streaming. |
| e2e/soak/README.md | Documents grading and recovery behavior. |
| e2e/soak/BUILD.bazel | Includes saver in harness test data. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
…whole download Two review findings on sortie-save.sh, both in the code that now reads two files off the report PVC. The reader pod was deleted with `--wait=true` and no timeout, before and after each read. The reader lands on the PV's node; if that node does not answer, the delete is never confirmed and the saver hangs before it has read or said anything. The delete is now bounded (60 s, then a forced delete for 30 s, then a look whether the name is free), and a reader that cannot be removed fails that read with the reason. read_pvc_file returned success when the pod had succeeded, whether or not `kubectl logs` had delivered all of its output. A download that broke off looked like a shorter results stream and replaced the copy saved before. It now needs both, a partial download is discarded, and an earlier results.jsonl is kept and said to be kept. A reader that failed also has its own words (`cat: can't open ...`) in the reason, which used to be empty. Also: a sortie pod that is gone (evicted with its node) is said, instead of a shell error about the missing log. harness_test.sh runs the saver against a fake kubectl (SORTIE_SAVE_KUBECTL): both files, a stream with a broken last line and no report, a download that breaks off, a reader that cannot be deleted, a sortie pod that is gone. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
The test list in the README, the BUILD comment and the test's own header still described the saver's coverage as its offline --times only. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
There was a problem hiding this comment.
🔵 Needs a closer look
The final reader-cleanup and download-integrity changes have only fake-kubectl validation, leaving real-cluster recovery behavior for human review.
0 open findings
2 resolved since last review
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
There was a problem hiding this comment.
🟢 Approval recommended
No blocking issues remain in the reviewed changes, and both previously reported saver defects are addressed.
0 open findings
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
…eading The gate's header, the README and the proposal cited "8,099 of 8,100 on one node of the third talos run" as a worker ending a run one request short. That request was a stream reset, counted as such in the same report; it was not a short send. The evidence for a range rather than an equality is sortie's README (999 of 1,000 on a busy machine) and the second talos run's 40,497 to 40,500 of 40,500 with every failure class at zero. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
There was a problem hiding this comment.
🟢 Approval recommended
No blocking issues remain, and the prior reader-cleanup and partial-download concerns are addressed.
0 open findings
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
There was a problem hiding this comment.
🔵 Needs a closer look
The latest reader recovery changes have only fake-kubectl coverage and warrant human review of real-cluster behavior.
0 open findings
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.


Written by an agent (Claude Code). Moves the soak's sortie harness (
e2e/soak/, proposal 042) from sortie94cf103to sortie main9fcbb81afaeab77f6f16bacd3ed43d94a65d9fd8, and makes the gate, the saver and the kickoff use what that release added. Nothing here touchescharts/, Go code or a workflow, and nothing was written to talos-main: the talos run is the owner's, after this merges.The pins
oci://quay.io/sortie/chart-sortie0.1.0-9fcbb81afaeab77f6f16bacd3ed43d94a65d9fd8@sha256:10f6c84b9f5dc1a93dd9dd6ad1ab6196130a6f7cbc69dff82258b25700606913quay.io/sortie/sortie(the driver)sha256:0a04580af9cc857cf70313c0522fed457ba657e75af5f198aaa467ebdd69c0f9(index);linux/amd64sha256:a3e69339…,linux/arm64sha256:b355ad3e…quay.io/sortie/enginesha256:99d5058c565764bd952f2c081b5ea6ee7978a6a3f610f431f63a958acf7fb478(index);linux/amd64sha256:c0940568…,linux/arm64sha256:b546ce29…Resolved from the registry anonymously (
helm pullby version for the chart; the chart's ownvalues.yamlfor the two image digests; the registry's manifest API for the per-arch manifests). The three digests the sortie session reported match. Verified with the repository's pinned cosign (v3.1.2,@rules_img_signer_cosign//cosign), keyless, against^https://github\.com/bpalermo/sortie/\.github/workflows/publish\.yml@refs/heads/main$and the GitHub Actions issuer, bound to the commit with--certificate-github-workflow-sha 9fcbb81…: 7 of 7 artifacts. Negative control: the same chart digest bound to the old commit (94cf103…) is refused (expected GithubWorkflowSHA to be "94cf…", got "9fcb…").run.sh's pre-flight repeats the check on every run for what the release renders; on kind it readverified=cosign-v3.1.2.What changed
Gate (
sortie-gate.sh)benchmark.http_inflight_lostmust be 0. sortie now waits, at the end of a run, for requests still in flight (up to the 30 s request timeout) and counts what is still open in this counter and in no other. It is in the plan's thresholds and in the gate's zero-failure set, and it is worded on its own, likepool_overflow:in flight at the end: N request(s) with no outcome [node=N], never underfailuresand never as a reset."not_run": trueisFAIL … -- NOT RUN: sortie never attempted it, so it has no counters and its zeros mean nothing (…), and the verdict line counts it (not_run=K). With--dir(or--log) the gate also reads the sortie pod's log: aSKIPline, or a summaryN/M executions passed, K not runwith K > 0, fails the gate (FAIL sortie.log -- sortie itself reports executions NOT RUN) even when the report in hand shows nothing of it. A stage refused at the execution cap readsREFUSED AT THE EXECUTION CAP, nothing of this stage ran: …instead of listing the refusing engines as lost backends.http_2xxmust be within 99 % and 101 % ofshare × the configured duration. Before, the gate judged a rate over the backend's own elapsed time. That time is fixed when the run stops and can read a hair under the duration (899,999 ms of 900,000 in the third talos run's report), which only flatters a rate; and a backend that stopped at 96 % of the run at exactly its share had a perfect rate and passed. Tolerance: 1 % either side (--floor-pct, default 99), which is 81 requests of a 9 rps target's 8,100 in 15 minutes and 2,754 of 275,400 in 8h30m. Why a range and not an equality: a worker woken late ends a run one request short (sortie's README: 999 of 1,000 in about one short run in four on a busy machine), and the second talos run read 40,497–40,500 of 40,500 per target with every failure class at zero, by that or by requests in flight that 94cf103 did not count. The elapsed-time check keeps its own tolerance, 5 % either side.results[].statistics["benchmark_http_client.latency_2xx"]): the worst node's p50, p99 and now max, printed, not judged.WINDOW, one line: when the run was dispatched and ended (sortie's clock) and when the engines' workers started (their clocks), to set beside roll times.--per-nodelines carry each engine's own start.--stream FILEgrades the results stream when there is no report (below).started_at(sortie older than 9fcbb81) is refused, exit 2, like one withoutresults: itshttp_inflight_lostwas never counted and would read as zero.Thresholds removed because they were always true.
latency_2xx.p50 < 60sandlatency_2xx.p99 < 60s, and with themsortie-plan.sh --no-latencyand the gate code that parsed theiractual. They could not fail on a mesh that answers at all; they existed only to carry the two numbers into a report that held no statistic. Not replaced with a threshold that can fail: the only talos latency there is (p99 115–207 ms per target, 94cf103) is not yet a number to draw a line under, and the proposal already decided latency is a soft signal until talos says otherwise. That is listed as an open question. Every threshold left in the plan can fail (the test counts them: eight).Saver and kickoff (
sortie-save.sh,run.sh)run.shturns the results stream on (report.stream=<run tag>.jsonl): sortie appends one JSON line per execution as it finishes, on the same PVC as the report. The saver copies it toresults.jsonl, whether or not there is a report, and when there is no report says how to grade it.label, prints how many, and the execution that line was about is thenmissing from the report: a FAIL.times.tsvin the run directory: label,started_at,ended_at, elapsed, backend, the backend's ownstarted_at, verdict.sortie-save.sh --times FILEprints the same offline.SORTIE_SAVEDnow carriesnot_run=,window=andstream_executions=.run.sh's abort for a sortie pod that ended at once now says how to read why (a cap refusal fails in seconds with 9fcbb81).SORTIE_SAVE_KUBECTL): both files, a stream with a broken last line and no report, a download that breaks off, a reader that cannot be deleted, a sortie pod that is gone. These two changes were made after the kind runs below and have run against the fake only.Removed, because the new sortie does it
nighthawk_template.sequencer_idle_strategy: WAITin every plan. The plan templates nothing now;--idle-strategy/SOAK_SORTIE_IDLE_STRATEGYremain for an experiment7f338df(WAIT is the default)--no-latency(above)1b3d404(latency statistics in the JSON report)engines.tsvas the only map to a node and a new set of series per install: the plan now saysstats.backend: nameand the values fileengine.backendNameFrom: node, so the series carry the node's name0fc5746(stable statsd names)SORTIE_OVERDUEat two minutes as the only notice of a silent node. It moves to five minutes and means sortie itself is stuck76f699b(a deadline on a silent backend)Kept on purpose:
max_pending_requests(the engine's default is still 0 and sortie still passes the field only when the plan sets it:options_impl.handcompile.goat 9fcbb81; nothing better to default to). No CPU limit and the 150m request were never workarounds for sortie.engine.maxConcurrentExecutions: 16equals the chart's default (it did at 94cf103 too) and stays becausesortie-plan.shrefuses a longer targets file against that number.Measured, and where
Hermetic (
//e2e/soak:harness_test, 243 assertions, with the Bazel-pinned jq and by hand with the system one). Each new gate condition seen red on a fixture that must fail:http_inflight_lost> 0inflight-lost.json(canned from the schema; the counter wherereport.goputs it)FAIL svc-1 … -- in flight at the end: 2 request(s) with no outcome [main-worker-02=2] (http_inflight_lost: …), exit 1not_runkind-not-run.json+kind-not-run.log(real: a capped staircase on kind)FAIL tcp-a/stage-2 -- NOT RUN: sortie never attempted it …×2,FAIL sortie.log -- … 4 SKIP line(s), summary "FAIL 0/5 executions passed, 10 not run",VERDICT FAIL … not_run=10, exit 1K not runin the log beside a report that passesclean.json+kind-not-run.logPASSlines, thenFAIL sortie.log …,VERDICT FAIL targets=3 passed=3 failed=0 not_run=10, exit 1kind-results-stream.jsonl(real bytes; third line cut at 700 bytes)FAIL uds-echo -- missing from the report,NOTE 1 line(s) … skipped,VERDICT FAIL … report_pass=absent source=stream skipped_lines=1, exit 1FAIL svc-1 -- listed 2 times …×3, exit 1clean.jsonwith one backend at 144 s / 1,296FAIL svc-1 … http_2xx below 99% of the planned 1350 on [main-worker-01=1296]while its line readsrate=9/9rpsclean.jsonwith 1,400http_2xx above 101% of the planned 1350clean.jsonwith 149,999 ms and 1,349old-94cf103.jsonOLD-FORMAT sortie report … no started_at, exit 2Mutation check (a copy of
e2e/soak, one guarded line disabled per run): 26 of 26 mutations killed: the inflight class and its wording, thenot_runbranch and its count, the log witness, the stream's tolerant parse, the duplicate-label check, each bound of the count range and an equality in its place, the old-report refusal, the cap wording, statistics as the latency source,--dirwithout a report, and in the plan and values the inflight threshold,backend: name, the idle default, a carrier coming back,backendNameFrom; and in the saver the bounded reader delete, the whole-download rule, the stream saved without a report, the missing-pod notice and--timesskipping a broken line.The existing fixtures were moved to the 9fcbb81 shape field by field (their latency moved from the carrier thresholds'
actualintostatistics);kind-clean.jsonis a real report, three of its eight targets, untouched.kind (pinned kind v0.33.0, one control plane and two workers, aether from this tree as
e2e/uds.sh upinstalls it, a private kubeconfig; every run throughrun.sh e2e --verifywith the committed values and a stand-in targets file of the same shape):http_inflight_lostincluded),VERDICT PASS targets=8 passed=8 failed=0 not_run=0 backends=2 lost_backends=0; latency read fromstatistics(p50 1.8–2.5 ms, p99 2.2–3.0 ms);SORTIE_SAVED … not_run=0 window=… stream_executions=8; the stream's eight lines are the report's eight executions, object for object; the Job ran--results-stream /var/run/sortie/<run tag>.jsonl; the engines ran--backend-namefromspec.nodeNameand the statsd datagrams on the wire were namedsortie.mesh.tcp_d.sortie_worker.cluster.0.…(16 prefixes: 8 targets × 2 nodes).kind-clean.jsonandkind-results-stream.jsonlare cut from this run--rolls(agent at T+3m, proxy at T+8m)ROLLED; 79,200 of 79,200; every class 0;VERDICT PASS; watchdogverdict=PASS new_restarts=0. Engine CPU from the cgroup while it ran: 0.09–0.11 core,nr_throttled0, 301 MiB, withWAITnowhere in the planrefused a start because the engine is at its cap of 4 concurrent executions …; gate: 8 ×REFUSED AT THE EXECUTION CAP,VERDICT FAILnot_run: 5 refused, 10 with"not_run": true; logFAIL 0/5 executions passed, 10 not run; savernot_run=10.kind-not-run.*is cut from this rundocker pause) from T+45 s of a 120 s plan, never thawed until the Job had endedLOST BACKEND … [returned nothing]on all eight targets, the other node reported whole and judged (413 2xx + 667 5xx = the 1,080 planned: the targets were on the frozen node). With 94cf103 this run had no end and no reportSORTIE_OVERDUEat five minutes; the pod's log was lost with the evicted pod; on the thaw sortie still wrote the report and the stream, which the saver saved. It also marked the healthy node's engine lost on four of eight targets although its complete results were waiting (reported below as a sortie finding)Run directories:
~/aether-soak-logs/1007-sortie-9fcbb81-kind/. The cluster is deleted; it ran on a kubeconfig of its own, and the workstation's current-context istalos-main, as it was.Read from the sortie source at
9fcbb81, not run: that the engine'smax_pending_requestsdefault is unchanged (the reason the client queue stays); the "reported an execution far longer than planned" failure of a backend that thaws late; the 30 s in-flight wait itself and a non-zerohttp_inflight_lost(no run here left a request open across the end of a run for more than 30 s, so that fixture is canned from the schema); everything about TCP. Also not run against 9fcbb81: a 15-minute run, the deliberate-failure and deleted-engine runs of the 94cf103 evidence, and a collector with talos-main's statsd receiver settings, so the series' names in Prometheus and their sum against the report are unverified.For the talos run (not done here)
Everything on talos-main so far was measured with 94cf103. The next short e2e is the first run there of the in-flight wait and
http_inflight_lost, the count range, the node-named statsd series arriving in the realotel-scraperand Prometheus, the results stream onopenebs-hostpath, and the engine's CPU now thatWAITis sortie's default. The command is in the README ("The first short e2e on talos-main"), with what to read from it.Follow-up, not built
The custom TCP/UDP dialers stay (decision). sortie
83d7d47makes a raw-TCP scenario againstmixed-svc's TCP port straightforward to write: reconnect with backoff survives a roll,tcp.max_messages_per_connectionkeeps connection setup in the run, andtcp_reconnects,tcp_connect_failures,tcp_unavailable,tcp_inflight_lost,tcp_echo_mismatchwithbenchmark_tcp.connect_latencyare the gate's material. Two things stand in the way of folding it into this run:expect_echoneeds a byte-exact echo from the target, and a scenario cannot mix schemes, so it would be a second scenario, which sortie runs after the first, not beside it. Still missing in sortie for the dialers' job: an upstream idle-timeout option, remote versus local close, UDP socket rotation, per-target overrides in a mixed-scheme scenario.Checks
bazel test //e2e/soak:harness_test;scripts/check-shell-lint.sh;bazel build --config=lint --@aspect_rules_lint//lint:fail_on_violation //...;make format-check;scripts/check-registry-config.sh: all pass.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr