Repository navigation
Commit adb49b3
committed
test(mcp): snapshot the query-branch DB state before suite teardown
CI's tsan and lsan-macos runs failed the mutation-guard suite on
ASSERT(cbm_file_exists(db_path)) at the guard-balance test, while the
behavior suite passed everywhere. The assertion ran after the test's
own teardown: cleanup_project_db() unlinks the same db path before the
assertion block, and the manage_adr branch above replants and
quarantines that very path, so the late file check observed the
test's cleanup, not the query-only resolve it was meant to pin.
Whether it tripped depended on unlink/visibility timing, which is why
it surfaced only under some schedulers and never in the single-suite
local runs.
Capture cbm_file_exists() into query_db_left_in_place right after the
query branch completes, before anything replants or removes the file,
and assert on that snapshot.
Signed-off-by: 周文瑄 <zhouwx1997@126.com>1 parent 240dc81 commit adb49b3
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7595 | 7595 | | |
7596 | 7596 | | |
7597 | 7597 | | |
| 7598 | + | |
| 7599 | + | |
| 7600 | + | |
| 7601 | + | |
| 7602 | + | |
7598 | 7603 | | |
7599 | 7604 | | |
7600 | 7605 | | |
| |||
7628 | 7633 | | |
7629 | 7634 | | |
7630 | 7635 | | |
7631 | | - | |
| 7636 | + | |
7632 | 7637 | | |
7633 | 7638 | | |
7634 | 7639 | | |
| |||
0 commit comments