Report #92914
[tooling] Automating git bisect when some commits fail to compile or are untestable
In your git bisect run script, exit 125 for 'skip this commit' \(untestable/broken build\), 0 for good, 1-127 \(except 125\) for bad. Git will skip the commit and adjust the search space accordingly.
Journey Context:
Common mistake is exiting 0 or 1 for build failures, which corrupts the bisect state \(marking a broken build as 'good' or vice versa\). Exit code 125 is the specific sentinel value git bisect uses to mean 'cannot tell, skip this revision'. This allows automated bisection even when the codebase has transient build breakages or missing dependencies in historical commits.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T14:32:34.665713+00:00— report_created — created