summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-01-19 14:58:49 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-01-21 14:27:28 +0000
commitf6b6c0455ad546533d0e6a0cc9eac88c7a91ea46 (patch)
tree6bb2d253854ae28a9b198ee0b19b6376d286f3bb
parent8c175bda7723ba6337cf24f820a6e22d09fdcdb9 (diff)
tcwg_kernel-bisect.sh: Update reproduction instructions
It appears the simplest and most robust way to reproduce a build is to follow the bisection procedure: checkout revision by hand and run a test script to perform the build. Incidentally, this also allows testing of random commits in the repo, not just first_bad and last_good commits. Therefore, we reproduce the full baseline build, which initialize all repos, builds compilers, etc., and then use the test.sh script to replicate individual builds. Change-Id: I5f884b1a485f641900fe33dfec8974ef207920eb
-rwxr-xr-xtcwg_kernel-bisect.sh20
1 files changed, 11 insertions, 9 deletions
diff --git a/tcwg_kernel-bisect.sh b/tcwg_kernel-bisect.sh
index cd48e129..d6af6dc1 100755
--- a/tcwg_kernel-bisect.sh
+++ b/tcwg_kernel-bisect.sh
@@ -319,15 +319,17 @@ Reproduce builds:
mkdir investigate-$current_project-$bad_sha1
cd investigate-$current_project-$bad_sha1
git clone https://git.linaro.org/toolchain/jenkins-scripts
-mkdir reproduce-$good_name
-cd reproduce-$good_name
-wget ${BUILD_URL}artifact/artifacts/manifests/build-$good_sha1.sh
-../jenkins-scripts/tcwg_kernel-build.sh @@ build-$good_sha1.sh
-cd ..
-mkdir reproduce-$bad_name
-cd reproduce-$bad_name
-wget ${BUILD_URL}artifact/artifacts/manifests/build-$bad_sha1.sh
-../jenkins-scripts/tcwg_kernel-build.sh @@ build-$bad_sha1.sh
+wget ${BUILD_URL}artifact/artifacts/manifests/build-baseline.sh
+./jenkins-scripts/tcwg_kernel-build.sh @@ build-$baseline.sh
+wget ${BUILD_URL}artifact/artifacts/test.sh
+chmod +x test.sh
+cd $current_project
+# Reproduce $bad_name build
+git checkout --detach $bad_sha1
+../test.sh
+# Reproduce $good_name build
+git checkout --detach $good_sha1
+../test.sh
cd ..
</cut>