diff options
Diffstat (limited to 'round-robin-bisect.sh')
-rwxr-xr-x | round-robin-bisect.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh index a9d8abb4..ed2482f3 100755 --- a/round-robin-bisect.sh +++ b/round-robin-bisect.sh @@ -599,7 +599,13 @@ ${current_project}_git=$bad_url#$last_good EOF sed -i -e "s/\$/-advance-baseline/" $artifacts/jenkins/build-name else - reset_rev=$(print_tested_revs bad | tail -n1) + # Reset baseline to the earliest bad revision with a true regression. + # For this we look through tested-bad revisions in reverse order. + for reset_rev in $(print_tested_revs bad | tac); do + if [ -f $artifacts/build-$reset_rev/trigger-build-$current_project ]; then + break + fi + done sed -i -e "s/\$/-reset-baseline/" $artifacts/jenkins/build-name fi # Don't send any emails. |