Skip to content

test: retry the credential-redaction temp dir removal on Windows - #296

Merged
xxchan merged 2 commits into
mainfrom
fix/windows-redaction-test-cleanup
Oct 9, 2026
Merged

xxchan merged 2 commits into
mainfrom
fix/windows-redaction-test-cleanup

Conversation

@xxchan

@xxchan xxchan commented Oct 9, 2026

Copy link
Copy Markdown
Member

Closes #288.

sea-trial/vendor/credential-redaction.vendor.test.ts failed on behavior (windows-latest, claude-aimock) with EBUSY: resource busy or locked, rmdir …\oar-claude-credential-test-… during CI for #280 and again for #295. The claude case points CLAUDE_CONFIG_DIR into the test's temp dir. On Windows, claude's files can still be held for a moment after dispose().

The three rm calls in the file now retry (maxRetries: 10, retryDelay: 300), as mcp-servers.vendor.test.ts and the aimock harness already do for a runtime's config dir. Test-only; no release.

🤖 Generated with Claude Code

exe.dev user and others added 2 commits October 9, 2026 22:46
The claude case's CLAUDE_CONFIG_DIR lives in the test's temp dir, and on
Windows claude's files can still be held for a moment after dispose, so rm
failed with EBUSY (#280, #295 CI). Retry as the other vendor tests that
remove a runtime's config dir already do.

Closes #288.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@xxchan
xxchan merged commit fcf03d6 into main Oct 9, 2026
17 checks passed
@xxchan
xxchan deleted the fix/windows-redaction-test-cleanup branch October 9, 2026 23:06
xxchan added a commit that referenced this pull request Oct 10, 2026
…arness (#315)

Windows CI keeps failing with `EBUSY: resource busy or locked, rmdir …`
when a vendor test removes a directory that a runtime process was using
a moment before. #296 (#288) fixed
`credential-redaction.vendor.test.ts`. #313's CI then hit the same error
in `claude-resume.vendor.test.ts` ("Claude missing resume fails during
initialize…", run 38032859591).

Rather than fixing these one by one: every remaining `rm` of such a
directory in sea-trial's vendor tests, harness (`aimock.ts`,
`aimock-acp.ts`, `support/claude-fifo.ts`) and cases now uses
`maxRetries: 10, retryDelay: 300`, as the already-fixed ones do. The
recording helpers (`sea-trial/record/*`) don't run in CI and are left
alone. Test-only; no release.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: exe.dev user <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

Windows claude-aimock flake: credential-redaction vendor test fails to remove its temp dir (EBUSY)

1 participant