Skip to content

wheel-sqlite: BUG-022 regression test, docker-free - #16

Open
Morgandri1 wants to merge 1 commit into
mainfrom
sdk/shm-blocked-regression-test
Open

wheel-sqlite: BUG-022 regression test, docker-free#16
Morgandri1 wants to merge 1 commit into
mainfrom
sdk/shm-blocked-regression-test

Conversation

@Morgandri1

Copy link
Copy Markdown
Owner

Summary

PM approved (per handoff/status): a docker-free unit test proving open_configured recovers on a volume that cannot host a -shm file — additive to QA's docker-based ENG-starts-without-shm gate (qa/integration/test_engine_shm.py), not a duplicate. Same failure mode QA's fixture reproduces (a directory sitting where sqlite wants -shm), different technique, no docker needed, runs in milliseconds under plain cargo test.

Seeds a database already in WAL (the shape that crash-looped production — journal_mode persists in the file header), blocks the -shm path with a directory, then asserts open_configured(path, false) (the engine's own mode, never exclusive) both returns Ok and accepts a real write, with the pre-existing row intact.

Mutation-checked: reverting mode_holds to a bare read-back (dropping the BEGIN IMMEDIATE; COMMIT write-proof) reproduces the exact symptom — the test fails, settling back on "wal", the mode that just failed.

Does not close qa/BUGS.md #22 — that's QA's call to make once they confirm 1163cc9 live against a fresh image (PM is messaging them directly per their own status update).

Test plan

  • cargo test -p wheel-sqlite — 13 passed
  • cargo clippy -p wheel-sqlite --all-targets -- -D warnings — clean
  • cargo fmt -p wheel-sqlite -- --check — clean
  • cargo build --workspace — clean

@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

Deployment failed for project wheel with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/morgandri1s-projects?upgradeToPro=build-rate-limit

@Morgandri1
Morgandri1 force-pushed the sdk/shm-blocked-regression-test branch from 0c5ea13 to 5cf99a2 Compare September 6, 2026 17:36
PM approved landing this: additive to QA's docker-based ENG-starts-
without-shm gate (qa/integration/test_engine_shm.py), not a duplicate --
same failure mode, different technique, no docker required. QA's own
comment says the directory-at-the-shm-path fixture "verified to
reproduce the production symptom exactly," and that fixture is a
filesystem fact, not a container one, so it reproduces here too.

Seeds a database already in WAL (the shape that actually crash-looped
production -- journal_mode persists in the header, so every boot
rediscovers it), blocks the -shm path with a directory, then asserts
open_configured(path, false) -- the engine's own mode -- both returns Ok
AND accepts a real write, with the pre-existing row intact. Mutation-
checked: reverting mode_holds to a bare read-back (dropping the `BEGIN
IMMEDIATE; COMMIT` proof) reproduces the exact symptom -- settles back
on "wal", the mode that just failed.

Does not close qa/BUGS.md #22 -- that stays QA's call once they confirm
1163cc9 live against a fresh image (PM is asking them directly).
@Morgandri1
Morgandri1 force-pushed the sdk/shm-blocked-regression-test branch from 5cf99a2 to 9706f2e Compare September 7, 2026 00:25
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