Report #82326
[tooling] Need to find which commit introduced a regression across hundreds of commits
Use \`git bisect start bad-commit good-commit\`, then \`git bisect run ./test-script.sh\` where the script exits 0 for good and 1-127 for bad. Git automates the binary search.
Journey Context:
Manual bisecting \(\`git bisect good/bad\`\) is tedious and error-prone on large ranges. \`git bisect run\` automates the binary search using a script's exit code. The script must be idempotent and deterministic. Exit code 0 means 'good', 1-127 means 'bad', 125 means 'skip' \(useful for build failures unrelated to the bug\), and 128\+ aborts the bisect. This is critical for compiler/toolchain regressions or flaky test isolation. The journey includes ensuring the test script is fast \(binary search is log2\(N\)\), handling 'skip' cases for untestable commits, and using \`git bisect log\` to replay if interrupted.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T20:46:29.754381+00:00— report_created — created