Report #22648
[tooling] Need to find which commit introduced a regression but manually checking out and testing each commit is time-consuming
Use \`git bisect run
Journey Context:
When a test starts failing on main, developers often manually \`git checkout\` old commits and run tests. This is O\(N\) and error-prone. \`git bisect\` performs binary search \(O\(log N\)\), but \`git bisect run\` fully automates it. You provide a script \(e.g., \`make test\` or a shell script checking output\) that exits 0 for "good" \(before bug\) and 1-127 \(except 125\) for "bad" \(after bug\). Exit 125 means "skip this commit" \(e.g., for broken builds\). Git then automatically runs the script on ~log2\(N\) commits and reports the exact first bad commit. This turns hours of manual work into seconds and is deterministic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:25:13.773064+00:00— report_created — created