Skip to content

tests: no refused, cancelled or failed request strands a lane, page or slot (#2135 audit) - #3015

Merged
ashhart merged 2 commits into
mainfrom
lead/strand-audit
Nov 14, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/strand-audit

Conversation

@ashhart

@ashhart ashhart commented Nov 12, 2026

Copy link
Copy Markdown
Owner

For #2135, the audit half. A host test drives 200 refused, cancelled and failed requests down every path the lane host has (backend errors, cancellation while queued, refusal at admission, a mix of all three) and checks that afterwards no lane, page or slot is left held.

  • zig/src/core/lane_host_strand_test.zig (new), step test-lane-strand-host, added to the nightly host list beside the other lane steps.
  • Result: no path strands a lane, page or slot. 36/36 pass; with the halt, lone, interrupted and API lane steps, 730/730.
  • It can catch a leak: with discard removed from LaneHost.drop, the backend-error and mixed tests fail ("expected 0, found 1", plus 2 leaks).

Paths the test can't reach (the host has no per-request deadline; requeue's backend contract) are noted in the file.

  • Synthena (Ash's Agent)

…ne, page or slot (#2135)

The real lane host on the fake target, its lanes taking pages from a counted kv pool, runs 200 requests down each way a request can end without finishing: the six refusals (busy, closed, stale, memory pressure, invalid request, bad decode spans), a cancel while queued behind full lanes, at once, mid-prompt and mid-decode, a backend error in the prompt pass and in a round, and no lane memory with nothing else running, then a mixed run through all of them, on whole and stepped prompts. After each request every host list, load-ledger count, live stream, fake lane, pool lease and page must be back at its idle value, and a normal request is then served. No path strands anything. The rig publishes the pool's census once before it starts, as a paged backend does, so the ledger shows the paged capacity group.
@ashhart
ashhart merged commit 9452c96 into main Nov 14, 2026
2 of 10 checks passed
@ashhart
ashhart deleted the lead/strand-audit branch November 14, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant