summaryrefslogtreecommitdiff
path: root/tcwg_bmk-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg_bmk-build.sh')
-rwxr-xr-xtcwg_bmk-build.sh40
1 files changed, 36 insertions, 4 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh
index 3969798e..82b00fce 100755
--- a/tcwg_bmk-build.sh
+++ b/tcwg_bmk-build.sh
@@ -488,13 +488,45 @@ EOF
cp $run_step_artifacts/jira-body.txt $run_step_artifacts/mail-body.txt
- local bmk_suite=""
- local compiler="" libc="" linker="" version="" target="" bmk_flags="" hw=""
+ local bmk_suite="" publish_save_temps=false
case "${benchmarks[*]}" in
coremark) bmk_suite="EEMBC CoreMark" ;;
- spec2k6|4*) bmk_suite="SPEC CPU2006" ;;
- spec2017|5*|6*) bmk_suite="SPEC CPU2017" ;;
+ spec2k6|4*)
+ bmk_suite="SPEC CPU2006"
+ publish_save_temps=true
+ ;;
+ spec2017|5*|6*)
+ bmk_suite="SPEC CPU2017"
+ publish_save_temps=true
+ ;;
esac
+
+ cat >> $run_step_artifacts/mail-body.txt <<EOF
+
+Below reproducer instructions can be used to re-build both "first_bad" and "last_good" cross-toolchains used in this bisection. Naturally, the scripts will fail when triggerring benchmarking jobs if you don't have access to Linaro TCWG CI.
+EOF
+
+ # Copy save-temps tarballs to artifacts, so that they are accessible.
+ # We can publish pre-processed source only for benchmarks derived from
+ # open-source projects.
+ if $publish_save_temps; then
+ local s_t
+ while read s_t; do
+ rsync -a "$s_t/" $run_step_artifacts/top-artifacts/save-temps/
+ done < <(find results-1 -type d -name "save.*.temps")
+ fi
+
+ if [ -d $run_step_artifacts/save-temps/ ]; then
+ cat >> $run_step_artifacts/mail-body.txt <<EOF
+
+For your convenience, we have uploaded tarballs with pre-processed source and assembly files at
+First_bad save-temps: \$FIRST_BAD_ARTIFACTS/save-temps/
+Last_good save-temps: \$LAST_GOOD_ARTIFACTS/save-temps/
+Baseline save-temps: \$BASELINE_ARTIFACTS/save-temps/
+EOF
+ fi
+
+ local compiler="" libc="" linker="" version="" target="" bmk_flags="" hw=""
case "${rr[toolchain]}" in
gnu)
compiler="GCC"