committed 10:55PM - 08 May 26 UTC
Multiple pytest-xdist workers sharing the same fsspec cache directory
caused two… distinct CI failures:
1. Windows (WinError 5): os.replace() raises PermissionError when the
destination metadata file is held open by a concurrent worker.
2. Ubuntu Python 3.14: parallel workers downloading the same zip file
simultaneously corrupt the shared cache entry, producing
BadZipFile('Bad magic number for file header'), which the REST API
then surfaces as a 404.
Add a session-scoped autouse fixture that sets WD_CACHE_DIR to a
per-worker temp directory before any Settings() is instantiated.
pydantic-settings reads this env var at construction time, so every
filesystem instance created during the session gets a private cache
subtree with no sharing between workers.