Skip to contentSkip to conversation

CI: Use different git-directory for each runner

PATCH In review Simon Glass 2 participants 2 messages Feb 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CI: Use different git-directory for each runner

It seems that the new approach doesn't go far enough, since when there are multiple independent runners on a machine, they end up sharing the same git directory.

Add $CI_RUNNER_ID as well, so they are kept separate.

---

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.yml +1 -1
index edce2b8a680..8c49d5b0a79 100644
@@ -5,7 +5,7 @@ variables:
   MIRROR_DOCKER: docker.io
   SJG_LAB: ""
   PLATFORM: linux/amd64,linux/arm64
-  GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_CONCURRENT_ID/u-boot
+  GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_RUNNER_ID/$CI_CONCURRENT_ID/u-boot
 
 default:
   tags:
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Simon Glass

It seems that the new approach doesn't go far enough, since when there are multiple independent runners on a machine, they end up sharing the same git directory.

Add $CI_RUNNER_ID as well, so they are kept separate.

Signature · 1 line
Tom