You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Flaky on Windows: Cargo fixture cleanup in rust-adapter.test.ts fails with EPERM #227
Cargo feature-unified unit tests are recorded per crate instead of blocking the repository (tests/repo/rust-adapter.test.ts:440) fails now and then on Windows. It isn't the assertion that fails but the cleanup:
✖ Cargo feature-unified unit tests are recorded per crate instead of blocking the repository (60233.6101ms)
Error: EPERM, Permission denied: 'C:\Users\RUNNER~1\AppData\Local\Temp\diffci-rust-sbPbAQ'
at rmSync (node:fs:1282:18)
at TestContext.<anonymous> (D:\a\core\core\tests\repo\rust-adapter.test.ts:455:15)
This was seen on #174, in check (windows-latest, 24) (job). The Node 22 Windows job passed on the same commit. The test runs cargo test -- --list, which builds and runs test executables inside the fixture's target/. On Windows, the image (or an antivirus scan of a just-written .exe) can stay locked briefly after the process exits, so a single rmSync gets EPERM.
Fix: remove Cargo-built fixtures with rmSync(root, { recursive: true, force: true, maxRetries: 10, retryDelay: 200 }). Node retries EPERM/EBUSY/ENOTEMPTY with a linear backoff, as rimraf does. Apply the same to the other real-Cargo tests in the file, which build into their fixture too.
The same thing just happened outside the Rust tests: on #233, check (windows-latest, 24) failed in tests/repo/go-scope-local-replace.test.ts ("a change in a replaced in-repository module selects the root packages that import it") with EPERM, Permission denied: ...\Temp\diffci-go-replace-rbiv9M (job), after go had built in the fixture. #235 only covers the Rust tests. The Go and other tool-running fixtures probably want the same maxRetries/retryDelay cleanup, maybe through a shared test helper.
Activity
FredApps commentedon Nov 17, 2026
The same thing just happened outside the Rust tests: on #233,
check (windows-latest, 24)failed intests/repo/go-scope-local-replace.test.ts("a change in a replaced in-repository module selects the root packages that import it") withEPERM, Permission denied: ...\Temp\diffci-go-replace-rbiv9M(job), aftergohad built in the fixture. #235 only covers the Rust tests. The Go and other tool-running fixtures probably want the samemaxRetries/retryDelaycleanup, maybe through a shared test helper.chore: re-run CI after the Windows rust-adapter cleanup flake
fix(planner): treat a change to an extended tsconfig base as global (#…