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
chore: harden uv parser, cache panics, test isolation, and temp dir cleanup (#410)
## Summary
Batch of four hardening and code quality improvements identified during
coverage gap analysis.
## Changes
- **#397 — uv version parser:** Validate that version components start
with digits, rejecting garbage like `cpython-3.abc.def-linux` while
still accepting pre-release versions like `3.14.0a4`. Added tests for
both rejection and acceptance cases.
- **#402 — LocatorCache `.unwrap()` → `.expect()`:** Replaced all 11
`.unwrap()` calls on RwLock operations with `.expect("locator cache lock
poisoned")` for better panic diagnostics.
- **#403 — tempfile::TempDir RAII:** Replaced manual temp dir management
in `pet-pixi` and `pet-windows-registry` tests with `tempfile::TempDir`.
Directories are now cleaned up automatically even on test panics.
- **#401 — JSONRPC test client isolation:** Replaced `.env("PATH", "")`
with `.env_clear()` to fully isolate the test server from host
environment variables. Only `PATH` (empty) and `SYSTEMROOT` are
restored.
Fixes#397, Fixes#402, Fixes#403, Fixes#401
0 commit comments