test(sqlite): one sandbox connection, no more Database busy flakes (#79) #95
No reviewers
Labels
No labels
bug
docs
duplicate
enhancement
help wanted
invalid
nice-to-have
pre-1.0
question
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/lamplighter!95
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/79-sqlite-busy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
PR #95 (fix/79-sqlite-busy,
449439a) sets the SQLite test pool to one sandbox connection, which stops the random "Database busy" failures: F1 proved fixed (12 of 12 full SQLite runs, C37), CI green on Postgres and SQLite, precommit passes with 1312 tests. Calling ready again because the last Prover got stuck without a verdict.Fixes #94
Red, then green
No test: It's a test-config change; the proof is the flake script F1 (fails on main, passes on the branch), already recorded as fixed.
Checks
449439a, the full SQLite test suite passes in all 12 of 12 back-to-back runs, with no Database busy errors (it failed about half the runs at428c773). (Nye):/home/peak/work/lamplighter-v1-4/nye-checks/l95/sqlite_flake12.sh, exit 0449439agave no "Database busy", but one run had 2 unexplained non-busy failures (log not kept). Untested: 2-core CI timing. (Upper Wolfjaw):bash -c 'cd /home/peak/scratch/p95/wt && source ~/.rmenv; export PATH=$HOME/.local/bin:$PATH; eval "$(mise activate bash --shims)"; unset FORGEJO_TOKEN; export LAMPLIGHTER_DB=sqlite MIX_BUILD_ROOT=_build_sqlite MIX_ENV=test MIX_TEST_PARTITION=_p95v; for i in 1 2 3; do mix test 2>&1 </dev/null | grep -E "^Result: [0-9]+ passed" || exit 1; done', exit 0bash -c 'cd /tmp/pv95 && source ~/.rmenv; export PATH=$HOME/.local/bin:$PATH; eval "$(mise activate bash --shims)"; unset FORGEJO_TOKEN; export LAMPLIGHTER_DB=sqlite MIX_ENV=test MIX_TEST_PARTITION=_pv9; mix test 2>&1 </dev/null | grep -E "^Result: [0-9]+ passed"', exit 0Shipping it
Prover
Passed (Sonnet): Only config/test.exs changes (SQLite pool_size 5→1), so it can't deploy and a revert undoes it; two full SQLite runs in my own worktree gave 1312 passed, no Database busy. Untested: 2-core CI timing and the builder's one unexplained non-busy failure run.
Every command above was run by Fortysix's Basecamp itself, on the branch named.