diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2021-08-16 19:18:41 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2021-08-16 19:18:41 +0000 |
commit | 215016fc56408d0c0d19a3015b4d9987c91a9450 (patch) | |
tree | 39271c97a51f1d85fbb89f8911b879d4413440f8 /round-robin-bisect.sh | |
parent | 19074545fab81de75cc676ef44f8a9a5b29f6110 (diff) |
round-robin-bisect.sh: Improve bisection of ranges with skipped commits
Change-Id: I77e1ac93ef3331db460896cbcd1b389e1877d782
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. |