Skip to contentSkip to conversation

drm/ci: use shallow clone to avoid timeouts

PATCH In review Vignesh Raman 2 participants 3 messages Feb 28, 2025 – Mar 11, 2025

Subsystems (3)
lore
Share & tools
lore

Vignesh Raman

author maintainer
#0 lore raw

PATCH v2 1/1 drm/ci: use shallow clone to avoid timeouts

The python-artifacts job has a timeout of 10 minutes, which causes build failures as it was unable to clone the repository within the specified limits. Set GIT_DEPTH to 50 to speed up cloning and avoid build failures due to timeouts when fetching the full repository.

---

v2:
- Set GIT_DEPTH to 50 to allow the check-patch job to pass

---
 drivers/gpu/drm/ci/gitlab-ci.yml | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/ci/gitlab-ci.yml +2 -0
index f4e324e156db..3ba50fcd6f15 100644
@@ -40,6 +40,8 @@ variables:
   ARTIFACTS_BASE_URL: https://${CI_PROJECT_ROOT_NAMESPACE}.${CI_PAGES_DOMAIN}/-/${CI_PROJECT_NAME}/-/jobs/${CI_JOB_ID}/artifacts
   # Python scripts for structured logger
   PYTHONPATH: "$PYTHONPATH:$CI_PROJECT_DIR/install"
+  # Set to 0 to disable shallow cloning
+  GIT_DEPTH: 50
 
 
 default:
Signature · 1 line
2.47.2
#1 lore raw

Hi Vignesh,

Quoted 10 lines · Vignesh Raman

The python-artifacts job has a timeout of 10 minutes, which causes build failures as it was unable to clone the repository within the specified limits. Set GIT_DEPTH to 50 to speed up cloning and avoid build failures due to timeouts when fetching the full repository.

---

v2:
- Set GIT_DEPTH to 50 to allow the check-patch job to pass

This sounds a bit fragile to me. Perhaps we need to make the check-patch job instead specifically detect that it is missing history and unshallow the history a bit more?

Cheers,
Daniel

author maintainer
#2 lore raw

Hi Daniel,

Quoted 11 lines · Daniel Stone

Hi Vignesh,

Quoted 8 lines · Vignesh Raman

The python-artifacts job has a timeout of 10 minutes, which causes build failures as it was unable to clone the repository within the specified limits. Set GIT_DEPTH to 50 to speed up cloning and avoid build failures due to timeouts when fetching the full repository.

---

Quoted 6 lines
Quoted 2 lines

v2:
- Set GIT_DEPTH to 50 to allow the check-patch job to pass

This sounds a bit fragile to me. Perhaps we need to make the check-patch job instead specifically detect that it is missing history and unshallow the history a bit more?

Yes, we could do that. The check-patch job timeout is 1h (from gitlab project settings) and we can unshallow git history. I will send a v3 after testing.

Regards,
Vignesh

Quoted 3 lines

Cheers,
Daniel