Skip to content

Fix Windows EBUSY flake in doctorFix integration test#115

Merged
jsilvanus merged 1 commit into
claude/remaining-track-plan-pnye8cfrom
fix/doctor-fix-test-windows-ebusy
Jun 24, 2026
Merged

Fix Windows EBUSY flake in doctorFix integration test#115
jsilvanus merged 1 commit into
claude/remaining-track-plan-pnye8cfrom
fix/doctor-fix-test-windows-ebusy

Conversation

@jsilvanus

Copy link
Copy Markdown
Owner

Summary

PR #114's Windows CI job failed with:

Error: EBUSY: resource busy or locked, rmdir 'C:\Users\RUNNER~1\AppData\Local\Temp\gitsema-doctor-fix-uXi2JN'

in tests/integration/doctorFix.integration.test.ts's afterAll. This is a transient Windows-only lock left behind by the git subprocesses spawned in beforeAll (not a SQLite-handle leak — the global tests/setup/defaultSession.ts setup already points the default DB session at an in-memory database for every test file). tests/integration/profileFirstRun.test.ts already wraps its equivalent rmSync in a try/catch for the same reason — this PR applies the identical pattern here.

  • Wrap rmSync(repoDir, ...) in afterAll with try/catch (cleanup is best-effort, not test-critical).

Test plan

  • npx vitest run tests/integration/doctorFix.integration.test.ts passes locally
  • CI green on Windows runner (this PR exists specifically to verify that)

Targets claude/remaining-track-plan-pnye8c, not main — per instruction, left open for manual approval/merge rather than auto-merged.


Generated by Claude Code

…tion test

afterAll's rmSync of the temp repo dir can hit a transient lock from the
git subprocesses spawned in beforeAll on Windows runners — same pattern
already handled in profileFirstRun.test.ts. Cleanup is best-effort, not
test-critical, so swallow the error instead of failing the suite.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XaRDTbabmfzyo6EXzB53LD
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@jsilvanus jsilvanus merged commit f2d4565 into claude/remaining-track-plan-pnye8c Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants