Preseed the run-tests.sh cache to make test runs faster.
authorWard Vandewege <ward@curii.com>
Thu, 6 May 2021 16:01:47 +0000 (12:01 -0400)
committerWard Vandewege <ward@curii.com>
Thu, 6 May 2021 16:01:47 +0000 (12:01 -0400)
No issue #

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>

jenkins/packer-images/jenkins-image-arvados-tests.sh

index abe0e18a885761ff2a1f22e05cc8233e93f9ad92..949d4a3055235d2cc301465ffcbb36baadf84d3b 100755 (executable)
@@ -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