From aa39da83383805b919ece0cf2aba97403afb7a3a Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 27 Jun 2025 19:00:12 +0200 Subject: [PATCH] ci-tron: ensure the test jobs start with a clean job folder By using `GIT_STRATEGY: empty` instead of `none`. As documented in https://docs.gitlab.com/ci/runners/configure_runners/#git-strategy Unlike `none`, the `empty` Git strategy deletes and then re-creates a dedicated build directory before downloading cache or artifact files. With this strategy, the GitLab Runner hook scripts are still run (if provided) to allow for further behavior customization. Use the `empty` Git strategy when: - You do not need the repository data to be present. - You want a clean, controlled, or customized starting state every time a job runs. In CI-tron jobs we put things there at the start of the job that we want to keep through the start of the test and until the end of the job. This requires gitlab-runner >= 17.10, which is already satisfied by all ci-tron deployments. Part-of: --- .gitlab-ci/ci-tron/gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/ci-tron/gitlab-ci.yml b/.gitlab-ci/ci-tron/gitlab-ci.yml index ec036680c10..d7cf392d9a4 100644 --- a/.gitlab-ci/ci-tron/gitlab-ci.yml +++ b/.gitlab-ci/ci-tron/gitlab-ci.yml @@ -3,7 +3,7 @@ extends: - .ci-tron-b2c-job-v1 variables: - GIT_STRATEGY: none + GIT_STRATEGY: empty B2C_VERSION: v0.9.17 # Linux 6.16.3 CI_TRON_PATTERN__JOB_SUCCESS__REGEX: 'hwci: mesa: exit_code: 0\r$'