ci/lava: Point the shader cache at tmpfs.
authorEric Anholt <eric@anholt.net>
Fri, 16 Apr 2021 21:47:14 +0000 (14:47 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 19 Apr 2021 16:46:33 +0000 (16:46 +0000)
We really don't want to be going out over NFS and back for our shader
cache references.

Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10297>

.gitlab-ci/lava.yml.jinja2

index 9ccf46f..57e2ab9 100644 (file)
@@ -74,6 +74,8 @@ actions:
           - mount -t devpts devpts /dev/pts
           - mkdir -p /dev/shm
           - mount -t tmpfs tmpfs /dev/shm
+          - mount -t tmpfs tmpfs /tmp
+
           - echo "nameserver 8.8.8.8" > /etc/resolv.conf
           - for i in 1 2 3; do sntp -sS pool.ntp.org && break || sleep 2; done
 
@@ -98,6 +100,9 @@ actions:
           - export GPU_VERSION={{ gpu_version }}
           - export DEQP_VER={{ deqp_version }}
 
+          # Store Mesa's disk cache under /tmp, rather than sending it out over NFS.
+          - export XDG_CACHE_HOME=/tmp
+
           - export PYTHONPATH=$(python3 -c "import sys;print(\":\".join(sys.path))")
           - export PIGLIT_REPLAY_EXTRA_ARGS="--keep-image"
           - export PIGLIT_REPLAY_REFERENCE_IMAGES_BASE_URL="/mesa-tracie-results/${CI_PROJECT_PATH}"