Commit 24083fc
fix(test): repair CI regressions from state.db rewiring + daemon preset flake
edit_lines_aborts_when_txn_begin_fails and
format_files_skips_one_file_when_txn_begin_fails_without_aborting_the_batch
chmod'd index.db read-only to force a txn::begin failure, but the
2026-08-05 state.db rewiring (86f56ab) moved edit_transactions/tx_events
into a separate .calm/state.db. txn::begin's BEGIN IMMEDIATE now runs
against state.db, so the old fixture no longer triggers
TRANSACTION_INIT_FAILED -- the write proceeds and only the later reindex
against read-only index.db fails, surfacing as a soft index_stale
warning instead. Point the read-only chmod at state.db, which is what
txn::begin actually writes to now.
daemon_respects_per_connection_preset failed intermittently in CI (2 of
the last 4 runs) but never locally (4/4 clean runs). It's the only test
in the file where connection B attaches to a daemon A is concurrently
still spawning, leaving less timing headroom than other wait_for call
sites here. Widen its wait_for from 8s to 20s, same class of fix as the
already-merged watch_supervisor wait_until widening (b4c43d7).
Verified locally: calm-server --lib 341/341, calm-cli daemon_integration
10/10 x3, fmt/clippy clean on both crates.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 86f56ab commit 24083fc
2 files changed
Lines changed: 28 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
412 | 419 | | |
413 | 420 | | |
414 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9908 | 9908 | | |
9909 | 9909 | | |
9910 | 9910 | | |
9911 | | - | |
9912 | | - | |
9913 | | - | |
9914 | | - | |
| 9911 | + | |
| 9912 | + | |
| 9913 | + | |
| 9914 | + | |
| 9915 | + | |
| 9916 | + | |
| 9917 | + | |
| 9918 | + | |
9915 | 9919 | | |
9916 | 9920 | | |
9917 | 9921 | | |
9918 | 9922 | | |
9919 | | - | |
9920 | | - | |
| 9923 | + | |
| 9924 | + | |
9921 | 9925 | | |
9922 | | - | |
| 9926 | + | |
9923 | 9927 | | |
9924 | 9928 | | |
9925 | 9929 | | |
| |||
9952 | 9956 | | |
9953 | 9957 | | |
9954 | 9958 | | |
9955 | | - | |
| 9959 | + | |
9956 | 9960 | | |
9957 | 9961 | | |
9958 | 9962 | | |
| |||
9961 | 9965 | | |
9962 | 9966 | | |
9963 | 9967 | | |
9964 | | - | |
| 9968 | + | |
| 9969 | + | |
| 9970 | + | |
| 9971 | + | |
9965 | 9972 | | |
9966 | 9973 | | |
9967 | 9974 | | |
9968 | 9975 | | |
9969 | 9976 | | |
9970 | 9977 | | |
9971 | 9978 | | |
9972 | | - | |
9973 | | - | |
| 9979 | + | |
| 9980 | + | |
9974 | 9981 | | |
9975 | | - | |
| 9982 | + | |
9976 | 9983 | | |
9977 | 9984 | | |
9978 | 9985 | | |
| |||
9999 | 10006 | | |
10000 | 10007 | | |
10001 | 10008 | | |
10002 | | - | |
| 10009 | + | |
10003 | 10010 | | |
10004 | 10011 | | |
10005 | 10012 | | |
| |||
0 commit comments