diff options
-rwxr-xr-x | round-robin-bisect.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh index 96619b99..506d616a 100755 --- a/round-robin-bisect.sh +++ b/round-robin-bisect.sh @@ -401,6 +401,7 @@ fi first_bad=$(get_first_bad) reset_rev="$first_bad" notify_devs=true +notify_author="" if [ x"$first_bad" != x"" ]; then # "git bisect run" succeeded. Check whether this is an actual regression # or bisection artifact. @@ -572,6 +573,7 @@ if [ x"$first_bad" != x"" ]; then occurences="$(cat interesting-commits/$current_project | grep "^$first_bad" | sed -e "s/^$first_bad *//" | tr ' ' '\n' | sed "s#^# - #")" if [ "$(echo "$occurences" | wc -l)" -le 1 ]; then git_log_level="medium" + notify_author=$(git show --pretty="%an <%ae>" --no-patch "$first_bad") else git_log_level="short" fi @@ -725,6 +727,10 @@ fi # Set mail recipients last to preserve catch-error value from .yaml file. # Email developers. CI_MAIL_RECIPIENTS="tcwg-validation@linaro.org" +if [ x"$notify_author" != x"" ]; then + CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, $notify_author" + CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, linaro-toolchain@lists.linaro.org" +fi case "$current_project" in llvm) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, llvm@linaro.org" ;; binutils|gcc|glibc|newlib) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, tcwg-gcc@linaro.org" ;; |