drm/ci: use shallow clone to avoid timeouts
Subsystems (3)
Vignesh Raman
maintainerPATCH 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
@@ -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
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_DEPTHto 50 to speed up cloning and avoid build failures due to timeouts when fetching the full repository.Signed-off-by Vignesh Raman <[email protected]>---
v2:
- SetGIT_DEPTHto 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
Vignesh Raman
maintainerHi 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_DEPTHto 50 to speed up cloning and avoid build failures due to timeouts when fetching the full repository.Signed-off-by Vignesh Raman <[email protected]>---
Quoted 6 lines
Quoted 2 lines
v2:
- SetGIT_DEPTHto 50 to allow the check-patch job to passThis 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