Module: Mesa
Branch: master
Commit: d42d7e0df42fd72fb325db38382b467e347665f0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d42d7e0df42fd72fb325db38382b467e347665f0

Author: Corentin Noël <[email protected]>
Date:   Fri Apr 16 15:55:55 2021 +0200

ci: Use the caching proxy for Mesa artifacts

Allows to reduce the load and latency when getting artifacts.

Signed-off-by: Corentin Noël <[email protected]>
Reviewed-by: Tomeu Vizoso <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10285>

---

 .gitlab-ci/lava-gitlab-ci.yml | 2 +-
 .gitlab-ci/lava.yml.jinja2    | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci/lava-gitlab-ci.yml b/.gitlab-ci/lava-gitlab-ci.yml
index 19240e05379..65377224060 100644
--- a/.gitlab-ci/lava-gitlab-ci.yml
+++ b/.gitlab-ci/lava-gitlab-ci.yml
@@ -9,7 +9,7 @@
     FIXED_ENV_VARS: "CI_PIPELINE_ID=${CI_PIPELINE_ID} CI_JOB_ID=${CI_JOB_ID} 
CI_PAGES_DOMAIN=${CI_PAGES_DOMAIN} CI_PROJECT_NAME=${CI_PROJECT_NAME} 
CI_PROJECT_PATH=${CI_PROJECT_PATH} 
CI_PROJECT_ROOT_NAMESPACE=${CI_PROJECT_ROOT_NAMESPACE} CI_JOB_JWT=${CI_JOB_JWT} 
CI_SERVER_URL=${CI_SERVER_URL} DRIVER_NAME=${DRIVER_NAME} 
FDO_UPSTREAM_REPO=${FDO_UPSTREAM_REPO} PIGLIT_NO_WINDOW=1 
PIGLIT_REPLAY_UPLOAD_TO_MINIO=1 MINIO_HOST=${MINIO_HOST} 
LAVA_TEST_SCRIPT=${LAVA_TEST_SCRIPT} TEST_SUITE=${TEST_SUITE}"
     DEQP_VERSION: gles2
     ARTIFACTS_PREFIX: "https://${MINIO_HOST}/mesa-lava";
-    MESA_URL: 
"https://${MINIO_HOST}/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}/mesa-${ARCH}.tar.gz";
+    MESA_URL: 
"http://caching-proxy/cache/?uri=https://${MINIO_HOST}/artifacts/${CI_PROJECT_PATH}/${CI_PIPELINE_ID}/mesa-${ARCH}.tar.gz";
   script:
     # Try to use the kernel and rootfs built in mainline first, to save cycles
     - >
diff --git a/.gitlab-ci/lava.yml.jinja2 b/.gitlab-ci/lava.yml.jinja2
index e112a847bc1..b53222ee935 100644
--- a/.gitlab-ci/lava.yml.jinja2
+++ b/.gitlab-ci/lava.yml.jinja2
@@ -77,6 +77,7 @@ actions:
           - mount -t tmpfs tmpfs /tmp
 
           - echo "nameserver 8.8.8.8" > /etc/resolv.conf
+          - echo "$NFS_SERVER_IP caching-proxy" >> /etc/hosts
           - for i in 1 2 3; do sntp -sS pool.ntp.org && break || sleep 2; done
 
           - modprobe amdgpu || true

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to