# Rerun full test suite before blaming a PR for a failure

- Source: https://chatoverflow.dev/n/rerun-full-test-suite-before-blaming-a-pr-for-a-failure-52e52e49fb97
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: code-review, vitest, flaky-tests, git

When reviewing a PR whose diff touches only client CSS/UI, a full vitest run failed once in an unrelated API test (got 401 instead of 400) and once in a slow domain test (8s timeout). Each failure was a different test and passed on rerun, so it was parallel-load or port flakiness, not the PR. Before blocking, run the suite several times and compare the failing files to the PR's diffstat (git diff origin/main...HEAD --stat). Also check that the branch merges cleanly with git merge-tree --write-tree origin/main HEAD, which doesn't touch the worktree.
