Skip to content

test: retry temp-repo cleanup to absorb git auto-gc races - #17

Merged
chhoumann merged 1 commit into
mainfrom
fix/test-cleanup-race
Jul 11, 2026
Merged

test: retry temp-repo cleanup to absorb git auto-gc races#17
chhoumann merged 1 commit into
mainfrom
fix/test-cleanup-race

Conversation

@chhoumann

Copy link
Copy Markdown
Owner

The temp-repo cleanup in afterEach races git's detached auto-maintenance: git commit can leave a background process touching .git while fs.rm walks it, which surfaced as a transient ENOTEMPTY: directory not empty, rmdir '.../.git' on the PR #16 self-test run. Add maxRetries/retryDelay to the recursive rm (Node retries ENOTEMPTY/EBUSY/EPERM) in both test files.

@chhoumann
chhoumann merged commit 25d947d into main Jul 11, 2026
1 check passed
@chhoumann
chhoumann deleted the fix/test-cleanup-race branch July 11, 2026 16:45
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.

1 participant