From 820d0320dde7627940e30c4633652cbe76f5527c Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Wed, 1 May 2019 16:56:42 -0700 Subject: [PATCH] autopackage: move tarball build to nightly testing There's not a lot of value in building from the tarballs on every patch. The git status --porcelain check is still good on every patch though. So return early if it's not the nightly test - this may cut up 90 seconds on some tests. Signed-off-by: Jim Harris Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452810 (master) (cherry picked from commit 4de00fed67765f74a6e638b78d9ad765e82211c5) Change-Id: I351a43b802061fe7d7bc4556b3b003a9ec73833f Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457191 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk --- autopackage.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/autopackage.sh b/autopackage.sh index 1d4a3c4f3..7851fb852 100755 --- a/autopackage.sh +++ b/autopackage.sh @@ -10,8 +10,7 @@ out=$PWD MAKEFLAGS=${MAKEFLAGS:--j16} cd $rootdir -timing_enter autopackage - +timing_enter porcelain_check $MAKE clean if [ `git status --porcelain --ignore-submodules | wc -l` -ne 0 ]; then @@ -19,6 +18,14 @@ if [ `git status --porcelain --ignore-submodules | wc -l` -ne 0 ]; then git status --porcelain --ignore-submodules exit 1 fi +timing_exit porcelain_check + +if [ $RUN_NIGHTLY -eq 0 ]; then + timing_finish + exit 0 +fi + +timing_enter autopackage spdk_pv=spdk-$(date +%Y_%m_%d) spdk_tarball=${spdk_pv}.tar