From 8fc222328d3c409972aecc8a66330683e00d1b35 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Sat, 10 Jul 2021 13:39:33 +0000 Subject: round-robin-bisect.sh: Update email preferences Change-Id: Ibcad05edb85d853ab70b723fb767ddb4389059ea --- round-robin-bisect.sh | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh index 21f6b419..1c65070e 100755 --- a/round-robin-bisect.sh +++ b/round-robin-bisect.sh @@ -728,24 +728,34 @@ 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 - # Don't email external developers while CI is going through old commits. - #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" ;; -esac -case "${rr[ci_project]}/${rr[ci_config]}:$current_project" in - tcwg_kernel/llvm-*:linux) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, arnd@linaro.org, clang-built-linux@googlegroups.com" ;; - tcwg_kernel/llvm-*:llvm) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, clang-built-linux@googlegroups.com" ;; +CI_MAIL_RECIPIENTS=("tcwg-validation@linaro.org") +case "$notify_author@${rr[ci_project]}/${rr[ci_config]}:$current_project" in + ""@*/*:*) ;; + *@tcwg_gnu/*-check_bootstrap*:*) ;; # We are building up list of flaky tests + *@tcwg_cross/*-check_cross:*) ;; # We are building up list of flaky tests + *@tcwg_kernel/llvm-*:linux) + CI_MAIL_RECIPIENTS+=("$notify_author") + CI_MAIL_RECIPIENTS+=("linaro-toolchain@lists.linaro.org") + CI_MAIL_RECIPIENTS+=("clang-built-linux@googlegroups.com") + CI_MAIL_RECIPIENTS+=("arnd@linaro.org") + ;; + tcwg_kernel/llvm-*:llvm) + CI_MAIL_RECIPIENTS+=("$notify_author") + CI_MAIL_RECIPIENTS+=("linaro-toolchain@lists.linaro.org") + CI_MAIL_RECIPIENTS+=("clang-built-linux@googlegroups.com") + ;; + *@*/*:*) + CI_MAIL_RECIPIENTS+=("$notify_author") + CI_MAIL_RECIPIENTS+=("linaro-toolchain@lists.linaro.org") + ;; esac if $notify_devs; then - cat > $artifacts/jenkins/mail-recipients.txt < $artifacts/jenkins/mail-recipients.txt <