From b05ff725fe494d0b21371005bac3c72b17c561f4 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Mon, 21 Jun 2021 15:01:53 +0000 Subject: round-robin-bisect.sh: Notify patch authors on regressions Change-Id: Idaab0c7bfd1c37e2d855ecfb4735352d4fab0f9d --- round-robin-bisect.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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" ;; -- cgit v1.2.3