Flaky tests in tests/mcp_smoke.rs (dashboard_returns_structured_payload, refresh_runs_and_bumps_scan_version) #56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally filed by @coilysiren on 2026-05-08T17:16:23Z - https://github.com/coilysiren/repo-recall/issues/66
Observed
While running
make ciduring the LUCA tracer work (luca#27), two tests intests/mcp_smoke.rsfailed on the first run and passed on the second with no code change between them:test dashboard_returns_structured_payload ... FAILEDtest refresh_runs_and_bumps_scan_version ... FAILEDRe-running immediately:
So the suite is non-deterministic on at least these two tests.
Why this matters
mcp_smoke.rsspawns the binary as a child process and talks JSON-RPC over stdio. Each test gets its own cache + state + tantivy directory under$TMPDIRto avoid redb's exclusive file lock collision (per the existing comment intests/mcp_smoke.rs). Flake suggests the existing isolation is not quite enough. Candidates:scan_version > 0before exercisingrecall_refresh(called out in AGENTS.md) may have a timing window the test does not always satisfy.Done when
cargo test --test mcp_smokeruns cleanly 10 times in a row on the same machine without intervention.$TMPDIR + nanos + PID + atomic counterpattern handles redb.Notes
Filed per Kai's standing rule: every flaky-test sighting in
coilysiren/*repos becomes a GitHub issue, no exceptions.