Files
ruflo/scripts
ruv 3f1747a527 fix(ci): graph schema smoke — checkpoint WAL before sql.js re-read
The smoke test asserts (a) the writer (better-sqlite3) succeeds and then
(b) re-reads the DB file via sql.js to verify the insert/migration landed.
Since #2431 put the writer in WAL mode (\`journal_mode = WAL\`), inserts
sit in the \`.db-wal\` sidecar until checkpointed; sql.js reads only the
main file and saw nothing. Symptoms: tests 2c, 3b, 5b all asserted false
even though tests 2a, 3a, 5a confirmed the writer succeeded.

Closing the writer connection (\`_resetBridgeDb\` calls
\`better-sqlite3.close()\`, which checkpoints WAL by default) before
each sql.js readback unblocks the verification. This is a smoke-script
bug surfaced by the Build V3 unblock — pre-3.14.2 the build broke before
this code ran, so the latent WAL incompatibility never tripped CI.

Local: 23/23 pass (was 18/23 with 4 WAL-related fails + 1 cascade).

Co-Authored-By: RuFlo <ruv@ruv.net>
2026-06-25 18:32:28 -04:00
..
2026-01-04 19:30:59 +00:00