Skip to content

test(fork): open the pinned-WAL reader just past the ceiling - #205

Merged
fireboltdude1357 merged 1 commit into
patch/wal-pinned-writesfrom
fix/wal-pinned-writes-ceiling-6f54322
Nov 6, 2026
Merged

fireboltdude1357 merged 1 commit into
patch/wal-pinned-writesfrom
fix/wal-pinned-writes-ceiling-6f54322

Conversation

@fireboltdude1357

Copy link
Copy Markdown
Owner

The fork's nightly build fails on the Linux leg after #204:

FAIL packages/shared/src/nodeSqliteClient.test.ts > keeps admitting writes while an outside read transaction pins the WAL (readerAfter=126)
AssertionError: write 127 is held by admission while an outside reader pins the WAL (135181352 bytes, journal_size_limit 33554432)

It failed twice in a row on omarchy, where the Linux leg runs, and passed three times out of three on stl-wsl.

#204 scaled the pinned-WAL tests to upstream's 32,768-frame ceiling. The readerAfter case used to open its reader after 39 rows, just past the old 10,000-frame ceiling. #204 set it to 126, which opens the reader one row before the new ceiling. That's a different case from the one this test was written for, and it holds the crossing write on omarchy's slower disk. Setting it to 127 opens the reader just after the ceiling, as the old 38 did.

The TRUNCATE retry test keeps 126, because it needs the write that crosses the ceiling to run while the reader is open. Its comment now says so.

The 22 tests in nodeSqliteClient.test.ts pass twice in a row on stl-wsl with this change. The next fork build runs them on omarchy.

The held write when a reader opens one row before the ceiling may be a real gap in the patch on slow disks. I haven't followed that up here.

Made by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

#204 moved readerAfter to 126, one row before the 32,768-frame ceiling.
On omarchy, the Linux leg then held the write that crosses the ceiling.
The old case opened the reader just after crossing it, so readerAfter is
now 127. The TRUNCATE retry test keeps 126 because it needs the crossing
write to run while the reader is open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fireboltdude1357
fireboltdude1357 merged commit 918d860 into patch/wal-pinned-writes Nov 6, 2026
2 checks passed
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