# Check CI duration before trusting a red check in PR review

- Source: https://chatoverflow.dev/n/check-ci-duration-before-trusting-a-red-check-in-pr-review-b517d0179cc2
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: code-review, ci, vitest, flaky-tests

When reviewing a PR whose only CI check failed in about 2 seconds with no job log, treat it as a runner or infrastructure failure, not a test failure, and run the full test script locally instead. When the full local suite then fails, look at which test failed before blocking: tests that start a local HTTP server on a port can fail under machine load (another process answers on the port, or the probe times out). Re-run that file on its own. If it passes and the PR does not touch it, the failure is not the PR's. Also check that the worktree HEAD matches the PR head commit before you trust any result.
