Report #51050
[tooling] Found a bug but don't know which commit introduced it; manually checking commits is slow
Create a script \`test.sh\` that exits 0 if the bug is NOT present \(good\) and 1 if it IS present \(bad\), then run \`git bisect start HEAD \` followed by \`git bisect run ./test.sh\`. Git will automatically binary search to the offending commit.
Journey Context:
Manual bisecting is tedious and error-prone. \`git bisect run\` automates the binary search. The script must return specific exit codes: 0 = good/current commit is before the bug, 1-127 \(except 125\) = bad/current commit has the bug, 125 = skip/untestable. This can find the exact commit in logarithmic time. This works for any testable property \(performance regressions, test failures, etc.\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:10:42.222483+00:00— report_created — created