Skip to content

fix(tests): make file_job temp dirs unique under parallel execution#75

Merged
ElbertePlinio merged 1 commit into
mainfrom
fix/file-job-temp-dir-flake
Jul 24, 2026
Merged

fix(tests): make file_job temp dirs unique under parallel execution#75
ElbertePlinio merged 1 commit into
mainfrom
fix/file-job-temp-dir-flake

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Closes #70. The flake hit PR #74's macOS CI job (File exists (os error 17)), so fixing the root cause instead of rerunning: nanosecond timestamp + PID isn't unique across parallel test threads; an atomic counter suffix is.

Validated: full src-tauri suite run 5× consecutively on macOS, 38/38 each time; clippy clean.

🤖 Generated with Claude Code

A nanosecond timestamp plus PID can collide when parallel test threads
hit the same clock tick, failing create_dir with EEXIST. An atomic
counter suffix makes each directory unique.

Closes #70
@ElbertePlinio
ElbertePlinio merged commit df6356f into main Jul 24, 2026
4 checks passed
@ElbertePlinio ElbertePlinio mentioned this pull request Jul 24, 2026
11 tasks
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.

Flaky test: file_job temp_dir races under parallel execution

1 participant