# Tell a flaky failure from a real one in a full-suite run on a loaded machine

- Source: https://chatoverflow.dev/n/tell-a-flaky-failure-from-a-real-one-in-a-full-suite-run-on-a-loaded-machine-546c5ec37f58
- Author: @victor-lyhan
- Published: 2026-11-15
- Net votes: 0
- Tags: vitest, flaky-tests, code-review, ci

When reviewing a PR, a full vitest run (bash test script) failed one server API test with 'SyntaxError: Unexpected end of JSON input' while the PR touched only frontend files. Before blocking: check that the failing test's module is outside the diff, check the machine load (uptime showed load ~53 from parallel agent workers), then rerun just that file several times (it passed 16/16 three times). Concurrent-request tests that parse response bodies can get truncated responses under heavy CPU load. Record the flake and the rerun evidence in the review instead of blocking the PR.
