diff options
Diffstat (limited to 'tcwg_kernel-bisect.sh')
-rwxr-xr-x | tcwg_kernel-bisect.sh | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/tcwg_kernel-bisect.sh b/tcwg_kernel-bisect.sh index df37dcc9..9bfe6eaf 100755 --- a/tcwg_kernel-bisect.sh +++ b/tcwg_kernel-bisect.sh @@ -13,8 +13,6 @@ fresh_dir $artifacts "$artifacts/manifests/*" "$artifacts/jenkins/*" convert_args_to_variables "$@" shift "$SHIFT_CONVERTED_ARGS" -bad_rev="${bad_rev:-default}" -baseline_rev="${baseline_rev:-baseline}" BUILD_URL="${BUILD_URL:-$(pwd)}" reproduce_bisect="${reproduce_bisect:-false}" @@ -22,7 +20,7 @@ reproduce_bisect="${reproduce_bisect:-false}" convert_args_to_variables ^^ $reproduce_bisect %% $artifacts/manifests/build-parameters.sh "$@" $reproduce_bisect || manifest_pop -obligatory_variables current_project toolchain +obligatory_variables bad_rev baseline_rev current_project toolchain linux_config="${linux_config:-defconfig}" target="${target:-native}" @@ -34,13 +32,6 @@ if $verbose; then set -x; fi trap "eval \"echo ERROR at \${FUNCNAME[0]}:\${BASH_LINENO[0]}\" > $artifacts/failures" EXIT -if [ x"$bad_rev" = x"default" ]; then - echo "ERROR: Need explicit --bad_rev" - exit 1 -else - bad_rev=$(git -C $current_project rev-parse "$bad_rev") -fi - # Build baseline that we are going to re-use to speed-up bisection. # (This also confirms that infrastructure is OK.) echo "Testing baseline_rev $baseline_rev (should be success)" @@ -49,7 +40,7 @@ $scripts/tcwg_kernel-build.sh \ %% $artifacts/manifests/build-baseline.sh \ @@ $artifacts/manifests/build-parameters.sh \ --mode "baseline" \ - --current_rev "$baseline_rev" \ + --current_branch "$baseline_rev" \ --reset_baseline true \ --top_artifacts "$artifacts/build-baseline" \ --verbose "$verbose" @@ -58,8 +49,6 @@ assert ! [ -f $artifacts/failures ] cd $current_project -# Remember $good_rev from the baseline build above. -baseline_rev=$(git rev-parse HEAD) ln -f -s "build-baseline" "$artifacts/build-$baseline_rev" ln -f -s "build-baseline.sh" "$artifacts/manifests/build-$baseline_rev.sh" echo "$baseline_rev" >> $artifacts/good_revs @@ -142,7 +131,7 @@ EOF clone_or_update_repo . refs/remotes/mainline/master "$url" mainline_master="${mainline_master-$(git merge-base $bad_rev HEAD)}" cat <<EOF | manifest_out -declare -g mainline_master=$mainline_rev +declare -g mainline_master=$mainline_master EOF try_revs+=($mainline_master) @@ -177,7 +166,7 @@ if [ x"$res" = x"0" ]; then # Build job had a spurious failure. Re-try. cat > $artifacts/trigger-2-build-master <<EOF current_project=$current_project -current_rev=$bad_rev +current_branch=$bad_rev EOF rm -f $artifacts/jenkins/mail-recipients.txt trap "" EXIT @@ -360,7 +349,7 @@ EOF # regressions (worse than $bad_rev). cat > $artifacts/trigger-1-reset-baseline <<EOF current_project=$current_project -current_rev=$first_bad +current_branch=$first_bad reset_baseline=true EOF |