Report #74456
[tooling] Manually checking out commits to find a regression is slow and error-prone
Use \`git bisect run ./test\_script.sh\` where the script exits 0 for 'good' and 1-124 for 'bad', allowing Git to automatically binary-search through history and identify the exact commit that introduced the bug.
Journey Context:
Developers often guess at commits or linearly check history, which is O\(n\) and mentally taxing. Git bisect uses binary search \(O\(log n\)\) but manually marking each step as good/bad is still slow and you might forget the test command. \`bisect run\` automates this: you provide a script that returns exit codes \(0=good, 1-124=bad, 125=skip, 126/127=abort\). Git checks out commits automatically until it finds the culprit. This is critical for CI/CD regressions where you need to identify which merge broke main. The script can be as simple as \`\! grep BUG file.txt\` or a full \`cargo test\` run.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T07:34:26.799978+00:00— report_created — created