summaryrefslogtreecommitdiff
path: root/round-robin-bisect.sh
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2020-04-16 16:23:19 +0100
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-04-17 15:45:09 +0000
commit66cb02dc914208465edfd56285d46a6354194088 (patch)
tree348585e65a1d8d2297db271a15717895440dacae /round-robin-bisect.sh
parenta0e4a3728526c912c94729b874fcdd4ae9753c84 (diff)
round-robin-bisect.sh: Improve output
* Show builds in last good/first bad order. To match before/after order you usually want. * Move configuration to after artifacts links. * Show the results ID of each in the notification text to save a step going to Jenkins. (benchmark jobs only) Change-Id: I2a004948a8fdb71a71291c011f963dd138cb7675
Diffstat (limited to 'round-robin-bisect.sh')
-rwxr-xr-xround-robin-bisect.sh29
1 files changed, 24 insertions, 5 deletions
diff --git a/round-robin-bisect.sh b/round-robin-bisect.sh
index fd57eb49..0e2a2fb3 100755
--- a/round-robin-bisect.sh
+++ b/round-robin-bisect.sh
@@ -528,19 +528,38 @@ EOF
fi
cat >> $artifacts/jenkins/mail-body.txt <<EOF
-Configuration details:
-$(cat $artifacts/manifests/build-baseline.sh | grep '_url]\|_branch]' | grep -v '="no_')
-
Results regressed to (for $bad_name == $bad_sha1)
$(cat $artifacts/build-$bad_sha1/results)
from (for $good_name == $good_sha1)
$(cat $artifacts/build-$good_sha1/results)
-Artifacts of $bad_name build: ${BUILD_URL}artifact/$rel_artifacts/build-$bad_sha1/
-Artifacts of $good_name build: ${BUILD_URL}artifact/$rel_artifacts/build-$good_sha1/
+EOF
+
+good_build_artifacts="Artifacts of $good_name build: ${BUILD_URL}artifact/$rel_artifacts/build-$good_sha1/"
+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
+ 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
+else
+ cat >> $artifacts/jenkins/mail-body.txt <<EOF
+$good_build_artifacts
+$bad_build_artifacts
+EOF
+fi
+
+cat >> $artifacts/jenkins/mail-body.txt <<EOF
Build top page/logs: ${BUILD_URL}
+Configuration details:
+$(cat $artifacts/manifests/build-baseline.sh | grep '_url]\|_branch]' | grep -v '="no_')
+
Reproduce builds:
<cut>
mkdir investigate-$current_project-$bad_sha1