Skip to content

Vitest-pool-workers: failed to remove cache objects #10511

@ghostrider-05

Description

@ghostrider-05

What versions & operating system are you using?

System:
OS: Windows 10 10.0.19045
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 4.02 GB / 15.81 GB
Binaries:
Node: 22.17.1 - C:\root\nvm\nodejs\node.EXE
Yarn: 1.22.4 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 10.9.2 - C:\root\nvm\nodejs\npm.CMD
npmPackages:
@cloudflare/vitest-pool-workers: ^0.8.68 => 0.8.68
@cloudflare/workers-types: ^4.20250829.0 => 4.20250829.0
wrangler: ^4.33.1 => 4.33.1

Please provide a link to a minimal reproduction

https://github.com/ghostrider-05/cf-vitest-debug-repro

Describe the Bug

When running vitest on my windows computer, I see many logs stating it failed to remove cache objects. These are repeated for many times making it impossible for me to see all test results sometimes. When running on GitHub actions (action runs on ubuntu-latest), I don't see these logs. Something to either disable or hide these logs would work for me.

Please provide any relevant error logs

vitest-pool-worker: Unable to remove temporary directory: Error: EBUSY: resource busy or locked, rmdir 'C:\Users\user\AppData\Local\Temp\miniflare-4cdfc3adc1efdd36e9c4005f21fc0e38\cache\miniflare-CacheObject'

Failed for Cache, D1, KV and R2 objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    vitestRelating to the Workers Vitest integrationwindowsIssue specific to Windows OS

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions