Skip to content

test(repoScope): 20s timeout for the 70-mkdir session-map test (the CI load flake) - #105

Merged
abogartz merged 1 commit into
abogartz:mainfrom
WhollyMindless:chore/session-map-test-timeout
Oct 25, 2026
Merged

abogartz merged 1 commit into
abogartz:mainfrom
WhollyMindless:chore/session-map-test-timeout

Conversation

@WhollyMindless

Copy link
Copy Markdown
Contributor

What

One test-level timeout. the session map is bounded does 70 synchronous mkdirSyncs; on the windows-latest runner under Defender that measures 5.2–5.3 s — past Bun's 5 s default — so CI reports a failure and kills the dangling test process after. Your #89 review already pre-annotated this as the 4th (load-family) failure, reports-only; this is the pin you'd need to make the reports stop.

The logic is not slow, the machine is: 20 s for the one heavy test, other tests in repo-scope-session.test.ts keep the default. (Same shape as consolidate-bench.test.ts already uses with its 180_000s.)

Verification

  • bun test ./test/repo-scope-session.test.ts green on Windows (1.3.10 / 1.4.4) and Linux (1.3.10 / 1.4.4).
  • The 5.2 s shape itself only reproduces on AV-instrumented runners, so the proof is yours: the next windows-latest leg on this branch should show the test (pass) with a ~5 s runtime instead of (fail) [5200ms].

If you'd rather fix it the other direction (shrink 70 mkdirs to fewer, or pre-make dirs in a beforeAll), happy to redo — the timeout felt like the smallest honest change since the eviction bound really is 64 and the mkdirs are the point.

assisted by Qwen3-flash-next

The lone member of the Windows load family that keeps dying in CI: 70
synchronous mkdirs under Defender scanning measured 5.2-5.3s on
windows-latest - past the 5s default, so the runner kills the test while
its dangling process is still sweeping. Not a hang; the logic is fine.
Other tests in the file keep the default timeout.

Pre-annotated as the 4th failure by the abogartz#89 review; this is the pin.
@abogartz
abogartz merged commit 064257d into abogartz:main Oct 25, 2026
3 checks passed
@abogartz-opencode-self-improvement

Copy link
Copy Markdown

🎉 This PR is included in version 0.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants