From 53abb35e6d2005213995271d83f936a201b5108d Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Thu, 6 May 2021 12:01:47 -0400 Subject: [PATCH] Preseed the run-tests.sh cache to make test runs faster. No issue # Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- jenkins/packer-images/jenkins-image-arvados-tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jenkins/packer-images/jenkins-image-arvados-tests.sh b/jenkins/packer-images/jenkins-image-arvados-tests.sh index abe0e18..949d4a3 100755 --- a/jenkins/packer-images/jenkins-image-arvados-tests.sh +++ b/jenkins/packer-images/jenkins-image-arvados-tests.sh @@ -27,3 +27,9 @@ sudo go run ./cmd/arvados-server install -type test # Our Jenkins jobs use this directory to store the temporary files for the tests mkdir /home/jenkins/tmp + +# Preseed the run-tests.sh cache. This is a little bit silly (a lot of this +# stuff was already done by the call to `./cmd/arvados-server install -type +# test` above, but they do not share a cache. +sudo ./build/run-tests.sh WORKSPACE=/usr/src/arvados --temp /home/jenkins/tmp --only install +sudo chown jenkins:jenkins /home/jenkins -R -- 2.30.2