Files
Groene AIandClaude Opus 4.8 1fd9a556a0 Assert no-busy-spin contract in SQLite SQLITE_BUSY test
The regression test previously only proved the read stays cancellable, which
was already true on master. Add an OS CPU-time bound read from system.query_log
so the test fails if the throttle (sleepForMilliseconds between SQLITE_BUSY
retries) is removed: while blocked on the lock the fix consumes almost no CPU,
whereas the old bare-continue loop burns a full core.

Also make the test self-contained (warm the pooled SQLite connection so schema
inference does not fail under the exclusive lock) and poll system.processes
instead of tailing the server log, since the fixed read logs the chunk marker
only once before blocking.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-07-13 18:36:51 +00:00
..