summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--round-robin.sh20
1 files changed, 19 insertions, 1 deletions
diff --git a/round-robin.sh b/round-robin.sh
index 379b4971..8d903903 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -387,7 +387,8 @@ update_baseline ()
# For every regression we want to keep artifacts for the first-bad
# build, so discard one less than needed.
- if [ x"$prev_head" != x"" ]; then
+ if [ x"$prev_head" != x"" -a -f base-artifacts/reset-baseline ] \
+ && ! ${rr[reset_baseline]}; then
git -C base-artifacts reset --hard $prev_head
fi
@@ -396,6 +397,23 @@ update_baseline ()
# in base-artifacts.git repo (though they will be uploaded to jenkins).
rsync -a --del --exclude /.git ${rr[top_artifacts]}/ base-artifacts/
+ local rev_count
+ if [ x"$amend" = x"" ]; then
+ rev_count=$(git -C base-artifacts rev-list --count HEAD)
+ else
+ rev_count="0"
+ fi
+
+ local msg_title="$rev_count"
+
+ if ${rr[reset_baseline]}; then
+ # Create a marker for builds that reset baselines (these are builds
+ # for bisected regressions).
+ touch base-artifacts/reset-baseline
+ msg_title="$msg_title: first-bad"
+ else
+ msg_title="$msg_title: last-good"
+ fi
local single_component
single_component=$(print_single_updated_component)