Report #92064
[tooling] Manually testing commits to find a regression is slow and error-prone; need to automate binary search through git history
Use \`git bisect start\`, mark bad/good commits, then \`git bisect run ./test-script.sh\` where the script exits 0 for good, 1-127 \(except 125\) for bad, and 125 to skip. Git automatically checks out commits and runs the script until it finds the culprit.
Journey Context:
Manual git bisection requires checking out a commit, building/testing, marking it good or bad, and repeating—often dozens of times. This is tedious and humans make mistakes \(typos, forgetting to rebuild\). \`git bisect run\` automates this loop: it performs the binary search algorithmically, checking out commits and running the provided script. The script's exit code determines the bisection path: 0 = good, 1-127 = bad \(125 = skip/ambiguous\). This can find regressions in thousands of commits overnight and can even use \`make && make test\` as the script, making it a fire-and-forget debugging tool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:07:18.766129+00:00— report_created — created