codemap
codemap copied to clipboard
test: four intermittent CI failures (watch timing, ast-grep probe under load, Windows PID claim)
Three tests failed intermittently during the 2026-11-04 fix batch (#276 to #280). Each passed on rerun and none was related to the change under test. Since we only merge on fully green CI, each flake costs a rerun.
| test | where | symptom | seen |
|---|---|---|---|
TestCheckoutStormIsBatchedThroughTheEventLoop |
watch/ | event batching timing, macOS and ubuntu runners | several runs (#277 branch, earlier PRs) |
TestScanForDepsFailsClosedOnFailedScanner (scanner/integration_more_test.go:297) |
scanner/ | "ast-grep not found" under load; likely the 2 s --version probe timing out |
3 local full runs on 3 branches; 20/20 and 10/10 when run alone |
TestClaimDaemonPIDAdmitsExactlyOneConcurrentClaimant |
watch/state.go | "watch daemon transition already in progress", windows-latest | 2 CI runs (#277, #280) |
TestActivityAndHubTieOrderingIsDeterministic/hubs_and_their_importers |
mcp/surface_hygiene_test.go:362 | output differs between calls only by a "Coverage: partial — ast-grep exited unsuccessfully" line, macOS 1.26 | 1 CI run (#264) |
The second and fourth look like the same root cause: ast-grep occasionally fails or times out on a loaded runner, and the test (or the code) treats that as a scanner failure. Expected: tests don't depend on wall-clock budgets (inject the probe timeout and fake the binary), and the claim test serializes on the lock rather than racing a deadline.