Mesa (master): ci/lava: Point the shader cache at tmpfs.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 19 17:10:39 UTC 2021
Module: Mesa
Branch: master
Commit: 360df6fbfe175dd258852746e95333f51060f970
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=360df6fbfe175dd258852746e95333f51060f970
Author: Eric Anholt <eric at anholt.net>
Date: Fri Apr 16 14:47:14 2021 -0700
ci/lava: Point the shader cache at tmpfs.
We really don't want to be going out over NFS and back for our shader
cache references.
Reviewed-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10297>
---
.gitlab-ci/lava.yml.jinja2 | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.gitlab-ci/lava.yml.jinja2 b/.gitlab-ci/lava.yml.jinja2
index 9ccf46f8f7f..57e2ab94ba6 100644
--- a/.gitlab-ci/lava.yml.jinja2
+++ b/.gitlab-ci/lava.yml.jinja2
@@ -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}"
More information about the mesa-commit
mailing list