Repository navigation
tests: the sessions write bench's real-file test runs 40 half-size requests, not 150 - #3347
Merged
Merged
Conversation
…quests, not 150 "sessions writes: on real files the tier writes and reads back exactly what the bench accounts" timed out at its 20-minute limit on a loaded hosted runner. Its time goes to disk: two runs of 150 mixed requests on real files wrote 576 MiB and read back 382 MiB with O_DIRECT, behind 237 fdatasync calls, one a parked file. The test now runs 40 requests with every token size halved (pool, slot capacity, prompts, turns, replies and the conversation cap) and a 512 KiB chunk. That still spills, parks, drops, reads back and, with SKIP_COVERED, writes deltas and drops covered entries; it now also asserts the plain drops, the covered drops, and that files average over one chunk, so a restore still reads across chunks. Real files and the accounted tier must still agree on every count and on peak use. On this box: 46.6 MiB written, 21.4 MiB read, 46 fdatasync calls; the run takes 0.6 s instead of 5 s. No change to the code under test.
ashhart
force-pushed
the
lead/sessions-test-fast
branch
from
November 14, 2026 17:04
ee77357 to
dd698e4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tests: the sessions write bench's real-file test runs 40 half-size requests, not 150
The host test "sessions writes: on real files the tier writes and reads back exactly what the bench accounts" timed out
at its 20-minute limit on a loaded hosted runner and turned #3038's checks red. It passes on a quiet runner.
Where its time went: disk. The test runs the mixed load twice (without and with
SKIP_COVERED), each time on realfiles and on the accounted tier. With 150 requests the real-file runs wrote 576 MiB and read back 382 MiB, with
O_DIRECT, behind 237fdatasynccalls (one per parked file). That costs little on an idle disk, and a lot on a busyshared one.
What changes: the test only.
and the conversation cap (8,192).
What it still proves:
SKIP_COVEREDthey still write deltas and drop covered entries.a restore still reads across chunks.
-Dfixed-cpu,-j2)fdatasynccallsNo change to the code under test. The one
fdatasynca file is the tier's own durability step, so the test keeps it.Nothing I measured points to a slowness bug in the tier: the time scales with the bytes written.
Checks:
zig build -Dfixed-cpu test-sessions-writes-hostpasses (3 of 3),zig fmt --checkis clean, and lean is341, the same as main.
🤖 Generated with Claude Code