summaryrefslogtreecommitdiff
path: root/round-robin-bisect.sh
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2020-04-20 10:21:50 +0100
committerDavid Spickett <david.spickett@linaro.org>2020-04-20 10:21:50 +0100
commit5bc4a8aa4bb4ec6ffc77d0acce0e3370582760d6 (patch)
tree3becf875ffdf702f71f1802a17a29aa41ab9cfec /round-robin-bisect.sh
parent66cb02dc914208465edfd56285d46a6354194088 (diff)
round-robin.sh: Handle Os vs Os LTO result IDs
Regular benchmark jobs have one result ID per commit. Os vs Os LTO does two runs per commit, so print both. Change-Id: I1abd335b11e59fbd523ca0117015fa5bdcff6a05
Diffstat (limited to 'round-robin-bisect.sh')
-rwxr-xr-xround-robin-bisect.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh
index 0e2a2fb3..2e3cc090 100755
--- a/round-robin-bisect.sh
+++ b/round-robin-bisect.sh
@@ -540,13 +540,25 @@ good_build_artifacts="Artifacts of $good_name build: ${BUILD_URL}artifact/$rel_a
bad_build_artifacts="Artifacts of $bad_name build: ${BUILD_URL}artifact/$rel_artifacts/build-$bad_sha1/"
# Benchmark builds have a results ID that is used to download the results
-if [[ ${rr[ci_project]} == "tcwg_bmk"* ]]; then
+if test -f "$artifacts/build-$good_sha1/results_id"; then
cat >> $artifacts/jenkins/mail-body.txt <<EOF
$good_build_artifacts
Results ID of $good_name: $(cat $artifacts/build-$good_sha1/results_id)
$bad_build_artifacts
Results ID of $bad_name: $(cat $artifacts/build-$bad_sha1/results_id)
EOF
+# Os vs Os LTO builds have two result IDs per job
+elif test -f "$artifacts/build-$good_sha1/results_id-1"; then
+ cat >> $artifacts/jenkins/mail-body.txt <<EOF
+$good_build_artifacts
+Results IDs of $good_name:
+$(cat $artifacts/build-$good_sha1/results_id-1)
+$(cat $artifacts/build-$good_sha1/results_id-2)
+$bad_build_artifacts
+Results ID of $bad_name:
+$(cat $artifacts/build-$bad_sha1/results_id-1)
+$(cat $artifacts/build-$bad_sha1/results_id-2)
+EOF
else
cat >> $artifacts/jenkins/mail-body.txt <<EOF
$good_build_artifacts