summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2020-07-20 10:46:51 -0700
committerMarge Bot <eric+marge@anholt.net>2020-07-21 11:04:14 +0000
commit8b3452a556640ab2319248c304822a9f5e2e7394 (patch)
treea8fd1c430200e1533fce73eda638105857fafa14 /.gitlab-ci
parentb2cd6a0b156a617007536b6f655b38c670acd31f (diff)
ci: Set XDG_CACHE_HOME to tmpfs for bare-metal runners to avoid NFS.
We don't want these files shared between builds (it'll get blown away by the next rsync), and NFS will just increase our latency for hitting the cache. Drops a630 gles31 run from 11-17 minutes to 5.5. Maximum cache size on a run I've seen is 153M, which it seems we can easily spare. Fixes: f97acb4bb4b1 ("freedreno/ir3: disk-cache support") Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5998>
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/bare-metal/init.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci/bare-metal/init.sh b/.gitlab-ci/bare-metal/init.sh
index 00bee38a616..b7d38d175c3 100755
--- a/.gitlab-ci/bare-metal/init.sh
+++ b/.gitlab-ci/bare-metal/init.sh
@@ -7,9 +7,13 @@ mount -t sysfs none /sys
mount -t devtmpfs none /dev || echo possibly already mounted
mkdir -p /dev/pts
mount -t devpts devpts /dev/pts
+mount -t tmpfs tmpfs /tmp
. /set-job-env-vars.sh
+# Store Mesa's disk cache under /tmp, rather than sending it out over NFS.
+export XDG_CACHE_HOME=/tmp
+
echo "nameserver 8.8.8.8" > /etc/resolv.conf
if sh $BARE_METAL_TEST_SCRIPT; then