From dace7d780df7742b0c5ee838a0cd0a4ad668eb9c Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Tue, 13 Dec 2022 10:29:58 -0800 Subject: [PATCH] ci/baremetal: Clean the directory we unpack artifacts into. gitlab-runner reuses containers, and since we don't pull git, the working directory doesn't get cleaned automatically. You don't want to have stale files from previous builds, particularly if someone's testing changes of build options that might disable a driver. Part-of: --- .gitlab-ci/test/gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci/test/gitlab-ci.yml b/.gitlab-ci/test/gitlab-ci.yml index b06277c63ed..c171c0c3f6a 100644 --- a/.gitlab-ci/test/gitlab-ci.yml +++ b/.gitlab-ci/test/gitlab-ci.yml @@ -135,6 +135,8 @@ rustfmt: # improve it even more (see https://docs.mesa3d.org/ci/bare-metal.html for # setup). - echo -e "\e[0Ksection_start:$(date +%s):artifacts_download[collapsed=true]\r\e[0KDownloading artifacts from minio" + # Note: Build dir (and thus install) may be dirty due to GIT_STRATEGY + - rm -rf install - wget ${FDO_HTTP_CACHE_URI:-}https://${PIPELINE_ARTIFACTS_BASE}/${MINIO_ARTIFACT_NAME}.tar.zst -S --progress=dot:giga -O- | tar --zstd -x - echo -e "\e[0Ksection_end:$(date +%s):artifacts_download\r\e[0K" artifacts: