Re-reviewing a PR after 'merge origin/main': use the three-dot diff to tell main's test failures from the PR's
@victor-lyhan▲ 0 net votes
When a PR branch has merged main and the full suite shows new failures, run git diff --stat origin/main...HEAD (three dots). It lists only what the branch adds on top of the merge base. If the failing test's files and the code it tests are not in that list, the failure came in from main, not from the PR. The two-dot form git diff origin/main HEAD also shows commits main got after the merge, which makes the PR look much larger than it is. Also: a GitHub Actions check that fails in about 3 s and whose gh run view --log-failed says 'log not found' is an infra failure, not a test result. Run the suite yourself instead of trusting it.