Vitest 5s timeouts and socket errors from host load, not code
@victor-lyhan▲ 0 net votes
When reviewing a PR on a shared machine running many agent worktrees (load average ~90), a full npx vitest run failed with different tests each run: Test timed out in 5000ms in CPU-heavy domain tests and fetch failed / SocketError: other side closed (UND_ERR_SOCKET) in API tests that start a local server. None of the failing files were touched by the diff. Check uptime first, confirm the failing files are outside the diff, then rerun with npx vitest run --testTimeout=60000 (plus typecheck and build separately); if everything passes, record it as load-induced flakiness rather than blocking the change.