++ pwd ++ cat + remote_exec build-08.tcwglab::/home/tcwg-buildslave/workspace/tcwg_gnu_1:-p49367: ./jenkins-scripts/round-robin-notify.sh '@@rr[top_artifacts]' artifacts __TCWG_JIRA_TOKEN ijQW9spm0p7HwZnUtLFx7CCA __stage full __verbose true + set -euf -o pipefail + local host ++ echo build-08.tcwglab::/home/tcwg-buildslave/workspace/tcwg_gnu_1:-p49367: ++ cut -d: -f 1 + host=build-08.tcwglab + local port ++ echo build-08.tcwglab::/home/tcwg-buildslave/workspace/tcwg_gnu_1:-p49367: ++ cut -s -d: -f 2 + port= + local dir ++ echo build-08.tcwglab::/home/tcwg-buildslave/workspace/tcwg_gnu_1:-p49367: ++ cut -s -d: -f 3 + dir=/home/tcwg-buildslave/workspace/tcwg_gnu_1 + local opts ++ echo build-08.tcwglab::/home/tcwg-buildslave/workspace/tcwg_gnu_1:-p49367: ++ cut -s -d: -f 4 + opts=-p49367 + local env_vars ++ echo build-08.tcwglab::/home/tcwg-buildslave/workspace/tcwg_gnu_1:-p49367: ++ cut -s -d: -f 5 + env_vars= + shift + local -a cmd + cmd=() + for i in "$@" + cmd+=("$(printf '%q' "$i")") ++ printf %q ./jenkins-scripts/round-robin-notify.sh + for i in "$@" + cmd+=("$(printf '%q' "$i")") ++ printf %q '@@rr[top_artifacts]' + for i in "$@" + cmd+=("$(printf '%q' "$i")") ++ printf %q artifacts + for i in "$@" + cmd+=("$(printf '%q' "$i")") ++ printf %q __TCWG_JIRA_TOKEN + for i in "$@" + cmd+=("$(printf '%q' "$i")") ++ printf %q ijQW9spm0p7HwZnUtLFx7CCA + for i in "$@" + cmd+=("$(printf '%q' "$i")") ++ printf %q __stage + for i in "$@" + cmd+=("$(printf '%q' "$i")") ++ printf %q full + for i in "$@" + cmd+=("$(printf '%q' "$i")") ++ printf %q __verbose + for i in "$@" + cmd+=("$(printf '%q' "$i")") ++ printf %q true ++ printf %q /home/tcwg-buildslave/workspace/tcwg_gnu_1 + ssh -p49367 build-08.tcwglab 'cd /home/tcwg-buildslave/workspace/tcwg_gnu_1 && exec ./jenkins-scripts/round-robin-notify.sh @@rr\[top_artifacts\] artifacts __TCWG_JIRA_TOKEN ijQW9spm0p7HwZnUtLFx7CCA __stage full __verbose true' /home/tcwg-buildslave/workspace/tcwg_gnu_1/jenkins-scripts/round-robin-notify.sh @@rr[top_artifacts] artifacts __TCWG_JIRA_TOKEN ijQW9spm0p7HwZnUtLFx7CCA __stage full __verbose true + false + dryrun= + declare top_artifacts ci_project ci_config + declare change_kind changed_single_component last_good first_bad + declare -a changed_components + declare print_commits_f print_result_f print_config_f print_last_icommit_f + dump_model_only=false # setup_notify_environment + setup_notify_environment + echo '# setup_notify_environment' + top_artifacts=artifacts ++ get_current_manifest '{rr[ci_project]}' ++ get_manifest artifacts/manifest.sh '{rr[ci_project]}' ++ set +x + ci_project=tcwg_gnu_woa_build ++ get_current_manifest '{rr[ci_config]}' ++ get_manifest artifacts/manifest.sh '{rr[ci_config]}' ++ set +x # Debug traces : + ci_config=master-woa64 + echo '# Debug traces :' ++ get_baseline_manifest BUILD_URL ++ get_manifest base-artifacts/manifest.sh BUILD_URL false ++ set +x # Baseline : https://ci.linaro.org/job/tcwg_gnu_woa_build--master-woa64-build/302/ # Using dir : base-artifacts + echo '# Baseline : https://ci.linaro.org/job/tcwg_gnu_woa_build--master-woa64-build/302/' + echo '# Using dir : base-artifacts' ++ get_current_manifest BUILD_URL ++ get_manifest artifacts/manifest.sh BUILD_URL ++ set +x # Artifacts : https://ci.linaro.org/job/tcwg_gnu_woa_build--master-woa64-build/303/ # Using dir : artifacts + echo '# Artifacts : https://ci.linaro.org/job/tcwg_gnu_woa_build--master-woa64-build/303/' + echo '# Using dir : artifacts' + echo '' + mkdir -p artifacts/notify + '[' -f /home/tcwg-buildslave/.jipdate.yml ']' + set +x # check_source_changes + declare -Ag pw + '[' ignore = precommit ']' + check_source_changes + echo '# check_source_changes' ++ get_current_manifest '{rr[update_baseline]}' ++ get_manifest artifacts/manifest.sh '{rr[update_baseline]}' ++ set +x + '[' onsuccess '!=' init ']' + IFS=' ' + read -r -a changed_components ++ print_changed_components ++ set -euf -o pipefail ++ local c delim= +++ print_updated_components +++ set -euf -o pipefail +++ local c delim= +++ for c in ${rr[components]} +++ '[' xgit://sourceware.org/git/binutils-gdb.git#master '!=' xbaseline ']' +++ echo -ne binutils +++ delim=' ' +++ echo ++ for c in $(print_updated_components) +++ get_current_git binutils_rev +++ set -euf -o pipefail +++ assert_with_msg 'ERROR: No binutils_rev in current git' '[' -f artifacts/git/binutils_rev ']' +++ set -euf -o pipefail +x +++ cat artifacts/git/binutils_rev +++ get_baseline_git binutils_rev +++ set -euf -o pipefail +++ local base_artifacts=base-artifacts +++ assert_with_msg 'ERROR: No binutils_rev in baseline git' '[' -f base-artifacts/git/binutils_rev ']' +++ set -euf -o pipefail +x +++ cat base-artifacts/git/binutils_rev ++ '[' xcd60a3956da29350d2e79bd6458d5cd77a4a18d0 '!=' xfe0f44a0caf59db09ad4bc16a46926aba96ce60d ']' ++ echo -ne binutils ++ delim=' ' ++ echo + local c base_rev cur_rev c_commits + '[' 1 = 0 ']' + '[' 1 = 1 ']' + changed_single_component=binutils ++ get_current_git binutils_rev ++ set -euf -o pipefail ++ assert_with_msg 'ERROR: No binutils_rev in current git' '[' -f artifacts/git/binutils_rev ']' ++ set -euf -o pipefail +x ++ cat artifacts/git/binutils_rev + first_bad=cd60a3956da29350d2e79bd6458d5cd77a4a18d0 ++ get_baseline_git binutils_rev ++ set -euf -o pipefail ++ local base_artifacts=base-artifacts ++ assert_with_msg 'ERROR: No binutils_rev in baseline git' '[' -f base-artifacts/git/binutils_rev ']' ++ set -euf -o pipefail +x ++ cat base-artifacts/git/binutils_rev + last_good=fe0f44a0caf59db09ad4bc16a46926aba96ce60d + local res + res=0 + wait 43486 + git -C binutils rev-parse --verify HEAD + assert_with_msg 'Cannot parse HEAD in repo binutils' '[' 0 = 0 ']' + set -euf -o pipefail +x + single_commit_p binutils + set -euf -o pipefail + local c=binutils + local base_rev cur_rev sha1 ++ get_baseline_git binutils_rev ++ set -euf -o pipefail ++ local base_artifacts=base-artifacts ++ assert_with_msg 'ERROR: No binutils_rev in baseline git' '[' -f base-artifacts/git/binutils_rev ']' ++ set -euf -o pipefail +x ++ cat base-artifacts/git/binutils_rev + base_rev=fe0f44a0caf59db09ad4bc16a46926aba96ce60d ++ get_current_git binutils_rev ++ set -euf -o pipefail ++ assert_with_msg 'ERROR: No binutils_rev in current git' '[' -f artifacts/git/binutils_rev ']' ++ set -euf -o pipefail +x ++ cat artifacts/git/binutils_rev + cur_rev=cd60a3956da29350d2e79bd6458d5cd77a4a18d0 ++ git -C binutils rev-parse 'cd60a3956da29350d2e79bd6458d5cd77a4a18d0^@' # Debug traces : # change_kind=single_component : binutils + for sha1 in $(git -C "$c" rev-parse "$cur_rev^@") + '[' 68a2d9bf874643da970fe945a9c60c397f6882ad = fe0f44a0caf59db09ad4bc16a46926aba96ce60d ']' + return 1 + change_kind=single_component + echo '# Debug traces :' + echo '# change_kind=single_component : binutils' + for c in "${changed_components[@]}" ++ get_baseline_git binutils_rev ++ set -euf -o pipefail ++ local base_artifacts=base-artifacts ++ assert_with_msg 'ERROR: No binutils_rev in baseline git' '[' -f base-artifacts/git/binutils_rev ']' ++ set -euf -o pipefail +x ++ cat base-artifacts/git/binutils_rev + base_rev=fe0f44a0caf59db09ad4bc16a46926aba96ce60d ++ get_current_git binutils_rev ++ set -euf -o pipefail ++ assert_with_msg 'ERROR: No binutils_rev in current git' '[' -f artifacts/git/binutils_rev ']' ++ set -euf -o pipefail +x ++ cat artifacts/git/binutils_rev + cur_rev=cd60a3956da29350d2e79bd6458d5cd77a4a18d0 ++ git -C binutils rev-list --count fe0f44a0caf59db09ad4bc16a46926aba96ce60d..cd60a3956da29350d2e79bd6458d5cd77a4a18d0 # rev for binutils : fe0f44a0caf59db09ad4bc16a46926aba96ce60d..cd60a3956da29350d2e79bd6458d5cd77a4a18d0 (15 commits) # post_interesting_commits + c_commits=15 + echo '# rev for binutils : fe0f44a0caf59db09ad4bc16a46926aba96ce60d..cd60a3956da29350d2e79bd6458d5cd77a4a18d0 (15 commits)' + echo '' + setup_stages_to_run + '[' ignore = onregression ']' + '[' ignore = precommit ']' + '[' ignore = ignore ']' + post_jira_comment=false + post_jira_card=false + post_icommits=false + '[' ignore = ignore ']' + post_mail=false + generate_dashboard=false + post_dashboard=false + print_commits_f=print_commits + print_result_f=print_result + print_config_f=print_config + print_last_icommit_f=print_last_icommit + generate_extra_details_f=generate_extra_details + case "$ci_project" in + print_result_f=gnu_print_result + generate_extra_details_f=gnu_generate_extra_details + post_interesting_commits init + set -euf -o pipefail + echo '# post_interesting_commits' + local stage=init + '[' single_component '!=' single_commit ']' + return + '[' full '!=' full ']' + gnu_generate_extra_details + set -euf -o pipefail + '[' -d artifacts/sumfiles ']' + return 0 + check_if_first_report + declare -g first_icommit_to_report + first_icommit_to_report=false + '[' xsingle_component '!=' xsingle_commit ']' + return + post_interesting_commits full # post_interesting_commits + set -euf -o pipefail + echo '# post_interesting_commits' + local stage=full + '[' single_component '!=' single_commit ']' + return # print all notification files + echo '# print all notification files' + print_mail_recipients + set -euf -o pipefail + true + local -A emails + emails["tcwg-validation@linaro.org"]=bcc + local -A no_emails + case "$ci_project/$ci_config:$changed_single_component" in + no_emails["gcc-regression@gcc.gnu.org"]=cc + local c email base_rev cur_rev + for c in "${changed_components[@]}" ++ get_baseline_git binutils_rev ++ set -euf -o pipefail ++ local base_artifacts=base-artifacts ++ assert_with_msg 'ERROR: No binutils_rev in baseline git' '[' -f base-artifacts/git/binutils_rev ']' ++ set -euf -o pipefail +x ++ cat base-artifacts/git/binutils_rev + base_rev=fe0f44a0caf59db09ad4bc16a46926aba96ce60d ++ get_current_git binutils_rev ++ set -euf -o pipefail ++ assert_with_msg 'ERROR: No binutils_rev in current git' '[' -f artifacts/git/binutils_rev ']' ++ set -euf -o pipefail +x ++ cat artifacts/git/binutils_rev + cur_rev=cd60a3956da29350d2e79bd6458d5cd77a4a18d0 + read -r email ++ git -C binutils log --pretty=%ae fe0f44a0caf59db09ad4bc16a46926aba96ce60d..cd60a3956da29350d2e79bd6458d5cd77a4a18d0 + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + no_emails["$email"]=cc + read -r email + for c in "${changed_components[@]}" ++ get_baseline_git binutils_rev ++ set -euf -o pipefail ++ local base_artifacts=base-artifacts ++ assert_with_msg 'ERROR: No binutils_rev in baseline git' '[' -f base-artifacts/git/binutils_rev ']' ++ set -euf -o pipefail +x ++ cat base-artifacts/git/binutils_rev + base_rev=fe0f44a0caf59db09ad4bc16a46926aba96ce60d ++ get_current_git binutils_rev ++ set -euf -o pipefail ++ assert_with_msg 'ERROR: No binutils_rev in current git' '[' -f artifacts/git/binutils_rev ']' ++ set -euf -o pipefail +x ++ cat artifacts/git/binutils_rev + cur_rev=cd60a3956da29350d2e79bd6458d5cd77a4a18d0 + read -r email ++ git -C binutils log --pretty=%ce fe0f44a0caf59db09ad4bc16a46926aba96ce60d..cd60a3956da29350d2e79bd6458d5cd77a4a18d0 + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + no_emails["$email"]=to + read -r email + for c in "${changed_components[@]}" + '[' '' '!=' '' ']' + recipients=() + local -a recipients + for email in "${!emails[@]}" + case "${emails[$email]}" in + recipients+=("${emails[$email]}:$email") + IFS=, + echo bcc:tcwg-validation@linaro.org + true + generate_jira_dir + set -euf -o pipefail + local icommit_entry jira_key= ++ print_last_icommit --entry ++ false ++ local print_arg=--entry ++ '[' xsingle_component '!=' xsingle_commit ']' ++ return + icommit_entry= + '[' '' '!=' '' ']' + mkdir -p artifacts/notify/jira + '[' '' '!=' '' ']' + cat ++ print_jira_template_card ++ local jira_card=GNU-692 ++ case "$ci_project/$ci_config:$changed_single_component" in ++ echo GNU-692 ++ gnu_print_result --oneline ++ false ++ local print_arg=--oneline ++ '[' -d artifacts/sumfiles ']' ++ print_result --oneline ++ false ++ local print_arg=--oneline ++ case "$print_arg" in ++ '[' 0 = 0 ']' ++ echo Success ++ return 0 ++ get_current_manifest BUILD_URL ++ get_manifest artifacts/manifest.sh BUILD_URL ++ set +x + gnu_print_result --oneline + false + local print_arg=--oneline + '[' -d artifacts/sumfiles ']' + print_result --oneline + false + local print_arg=--oneline + case "$print_arg" in + '[' 0 = 0 ']' + echo Success + return 0 + print_mail_body + true + local bad_artifacts_url good_artifacts_url ++ get_current_manifest BUILD_URL ++ get_manifest artifacts/manifest.sh BUILD_URL ++ set +x + bad_artifacts_url=https://ci.linaro.org/job/tcwg_gnu_woa_build--master-woa64-build/303/artifact/artifacts ++ get_baseline_manifest BUILD_URL ++ get_manifest base-artifacts/manifest.sh BUILD_URL false ++ set +x + good_artifacts_url=https://ci.linaro.org/job/tcwg_gnu_woa_build--master-woa64-build/302/artifact/artifacts + cat ++ print_commits --short ++ sed -e 's/^/ | /' ++ false ++ local print_arg=--short ++ local components new_commits more_lines ++ local commits_or_patches ++ '[' '' '!=' '' ']' ++ commits_or_patches=commits ++ case "$change_kind:$print_arg" in ++ new_commits=0 ++ for c in "${changed_components[@]}" +++ get_baseline_git binutils_rev +++ set -euf -o pipefail +++ local base_artifacts=base-artifacts +++ assert_with_msg 'ERROR: No binutils_rev in baseline git' '[' -f base-artifacts/git/binutils_rev ']' +++ set -euf -o pipefail +x +++ cat base-artifacts/git/binutils_rev ++ base_rev=fe0f44a0caf59db09ad4bc16a46926aba96ce60d +++ get_current_git binutils_rev +++ set -euf -o pipefail +++ assert_with_msg 'ERROR: No binutils_rev in current git' '[' -f artifacts/git/binutils_rev ']' +++ set -euf -o pipefail +x +++ cat artifacts/git/binutils_rev ++ cur_rev=cd60a3956da29350d2e79bd6458d5cd77a4a18d0 +++ git -C binutils rev-list --count fe0f44a0caf59db09ad4bc16a46926aba96ce60d..cd60a3956da29350d2e79bd6458d5cd77a4a18d0 ++ c_commits=15 ++ new_commits=15 ++ echo 'binutils commits:' ++ '[' '' '!=' '' ']' ++ git -C binutils log -n 5 --oneline fe0f44a0caf59db09ad4bc16a46926aba96ce60d..cd60a3956da29350d2e79bd6458d5cd77a4a18d0 ++ '[' 15 -gt 5 ']' ++ echo '... and 10 more' ++ '[' '' '!=' '' ']' ++ gnu_print_result --short ++ false ++ local print_arg=--short ++ '[' -d artifacts/sumfiles ']' ++ print_result --short ++ false ++ local print_arg=--short ++ case "$print_arg" in ++ echo 'Results changed to' +++ cat artifacts/results ++ echo '# reset_artifacts: -10 # true: 0 # build_abe binutils: 1' ++ echo '' ++ echo From +++ cat base-artifacts/results ++ echo '# reset_artifacts: -10 # true: 0 # build_abe binutils: 1' ++ return 0 ++ print_config ++ : + '[' single_component '!=' single_commit ']' + return + print_mail_subject + true ++ gnu_print_result --oneline ++ false ++ local print_arg=--oneline ++ '[' -d artifacts/sumfiles ']' ++ print_result --oneline ++ false ++ local print_arg=--oneline ++ case "$print_arg" in ++ '[' 0 = 0 ']' ++ echo Success ++ return 0 ++ print_commits --oneline ++ false ++ local print_arg=--oneline ++ local components new_commits more_lines ++ local commits_or_patches ++ '[' '' '!=' '' ']' ++ commits_or_patches=commits ++ case "$change_kind:$print_arg" in ++ new_commits=0 ++ for c in "${changed_components[@]}" +++ get_baseline_git binutils_rev +++ set -euf -o pipefail +++ local base_artifacts=base-artifacts +++ assert_with_msg 'ERROR: No binutils_rev in baseline git' '[' -f base-artifacts/git/binutils_rev ']' +++ set -euf -o pipefail +x +++ cat base-artifacts/git/binutils_rev ++ base_rev=fe0f44a0caf59db09ad4bc16a46926aba96ce60d +++ get_current_git binutils_rev +++ set -euf -o pipefail +++ assert_with_msg 'ERROR: No binutils_rev in current git' '[' -f artifacts/git/binutils_rev ']' +++ set -euf -o pipefail +x +++ cat artifacts/git/binutils_rev ++ cur_rev=cd60a3956da29350d2e79bd6458d5cd77a4a18d0 +++ git -C binutils rev-list --count fe0f44a0caf59db09ad4bc16a46926aba96ce60d..cd60a3956da29350d2e79bd6458d5cd77a4a18d0 ++ c_commits=15 ++ new_commits=15 +++ echo binutils +++ tr ' ' , # generate dashboard # generate_dashboard_squad ... Skipping # post_dashboard_squad ... Skipping # post_to_jira Full stage ran successfully. ++ components=binutils ++ echo '15 commits in binutils' + echo '[Linaro-TCWG-CI] Success after 15 commits in binutils' + echo '# generate dashboard' + generate_dashboard_squad + local results_date + echo '# generate_dashboard_squad' + false + echo '... Skipping' + return + post_dashboard_squad + echo '# post_dashboard_squad' + false + echo '... Skipping' + return + false + post_to_jira + echo '# post_to_jira' + false + false + echo 'Full stage ran successfully.'