summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-06-21 15:01:53 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-06-21 15:01:53 +0000
commitb05ff725fe494d0b21371005bac3c72b17c561f4 (patch)
treee4db596563f99bc7b6c75e3c88b625b863d99625
parentebe8198d944368a4007095bcbb16cf505b33fa51 (diff)
downloadjenkins-scripts-b05ff725fe494d0b21371005bac3c72b17c561f4.tar.gz
round-robin-bisect.sh: Notify patch authors on regressions
Change-Id: Idaab0c7bfd1c37e2d855ecfb4735352d4fab0f9d
-rwxr-xr-xround-robin-bisect.sh6
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" ;;