summaryrefslogtreecommitdiff
path: root/tcwg_kernel-bisect.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg_kernel-bisect.sh')
-rwxr-xr-xtcwg_kernel-bisect.sh38
1 files changed, 20 insertions, 18 deletions
diff --git a/tcwg_kernel-bisect.sh b/tcwg_kernel-bisect.sh
index e4d11e2b..45a6aaf0 100755
--- a/tcwg_kernel-bisect.sh
+++ b/tcwg_kernel-bisect.sh
@@ -16,8 +16,7 @@ fresh_dir $artifacts "$artifacts/manifests/*" "$artifacts/jenkins/*"
convert_args_to_variables "$@"
shift "$SHIFT_CONVERTED_ARGS"
-obligatory_variables bad_rev baseline_rev build_script \
- rr[ci_project] rr[ci_config]
+obligatory_variables bad_rev baseline_rev build_script rr[ci_project]
BUILD_URL="${BUILD_URL:-$(pwd)}"
reproduce_bisect="${reproduce_bisect:-false}"
@@ -26,7 +25,9 @@ reproduce_bisect="${reproduce_bisect:-false}"
convert_args_to_variables ^^ $reproduce_bisect %% $artifacts/manifests/build-parameters.sh "$@"
$reproduce_bisect || manifest_pop
-obligatory_variables current_project
+obligatory_variables rr[current_project] rr[ci_config]
+
+current_project=${rr[current_project]}
if [ x"${rr[ci_project]}" = x"tcwg_kernel" ]; then
obligatory_variables toolchain
@@ -65,10 +66,10 @@ $build_script \
^^ $reproduce_bisect \
%% $rel_artifacts/manifests/build-baseline.sh \
@@ $rel_artifacts/manifests/build-parameters.sh \
- --mode "baseline" \
- --current_branch "$baseline_rev" \
- --reset_baseline true \
- --top_artifacts "$rel_artifacts/build-baseline" \
+ ==rr[mode] "baseline" \
+ ==rr[current_branch] "$baseline_rev" \
+ ==rr[reset_baseline] true \
+ ==rr[top_artifacts] "$rel_artifacts/build-baseline" \
--verbose "$verbose"
assert ! [ -f $artifacts/failures ]
@@ -122,8 +123,8 @@ $build_script \
^^ $reproduce_bisect \
%% $rel_artifacts/manifests/build-\$rev.sh \
@@ $rel_artifacts/manifests/build-parameters.sh \
- --mode bisect \
- --top_artifacts $rel_artifacts/build-\$rev \
+ ==rr[mode] bisect \
+ ==rr[top_artifacts] $rel_artifacts/build-\$rev \
--verbose "$verbose" &
res=0 && wait \$! || res=\$?
@@ -251,7 +252,7 @@ if [ -f $artifacts/first-bad ]; then
ln -f -s "build-$last_good.sh" "$artifacts/manifests/build-last_good.sh"
cat >> $artifacts/jenkins/mail-body.txt <<EOF
-Successfully identified regression in CI configuration ${rr[ci_config]} for $current_project between bad_rev $bad_rev and baseline_rev $baseline_rev .
+Successfully identified regression in $current_project for CI configuration ${rr[ci_config]}.
Culprit:
<cut>
@@ -265,23 +266,23 @@ else
bad_name="bad"
bad_sha1="$bad_rev"
cat >> $artifacts/jenkins/mail-body.txt <<EOF
-Could not identify regression in CI configuration ${rr[ci_config]} for $current_project between bad_rev $bad_rev and baseline_rev $baseline_rev down to a single commit. See 'Bisect log' in the links below for bisection details.
+Could not identify regression in $current_project for CI configuration ${rr[ci_config]}. See 'Bisect log' in the links below for bisection details.
EOF
fi
cat >> $artifacts/jenkins/mail-body.txt <<EOF
-Results regressed from (for $good_name == $good_sha1)
+Configuration details:
+$(cat $artifacts/manifests/build-baseline.sh | grep '_url]\|_branch]' | grep -v '="no_')
-<cut>
+Results regressed from (for $good_name == $good_sha1)
$(cat $artifacts/build-$good_sha1/results)
-</cut>
to (for $bad_name == $bad_sha1)
-
-<cut>
$(cat $artifacts/build-$bad_sha1/results)
-</cut>
+
+First few errors in logs of $bad_name:
+$(grep ": error:" $artifacts/build-$bad_sha1/console.log | head)
Artifacts of $good_name build: ${BUILD_URL}artifact/$rel_artifacts/build-$good_sha1/
Artifacts of $bad_name build: ${BUILD_URL}artifact/$rel_artifacts/build-$bad_sha1/
@@ -336,8 +337,9 @@ fi
# Set mail recipients last to preserve catch-error value from .yaml file.
# Email developers.
CI_MAIL_RECIPIENTS="tcwg-validation@linaro.org"
-if [ x"$ci_project" = x"tcwg_kernel" ]; then
+if [ x"${rr[ci_project]}" = x"tcwg_kernel" ]; then
case "$toolchain:$current_project" in
+ gnu:linux) ;;
gnu:*) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, christophe.lyon@linaro.org, maxim.kuvyrkov@linaro.org" ;;
llvm:linux) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, arnd@linaro.org, mark.brown@linaro.org, ndesaulniers@google.com, trong@google.com" ;;
llvm:llvm) CI_MAIL_RECIPIENTS="$CI_MAIL_RECIPIENTS, adhemerval.zanella@linaro.org, maxim.kuvyrkov@linaro.org, ndesaulniers@google.com, trong@google.com, yvan.roux@linaro.org" ;;