[PATCH v2 1/2] drm/ci: python-artifacts: use shallow clone

Vignesh Raman posted 2 patches 9 months, 1 week ago
There is a newer version of this series
[PATCH v2 1/2] drm/ci: python-artifacts: use shallow clone
Posted by Vignesh Raman 9 months, 1 week ago
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 10 to speed up cloning and avoid
build failures due to timeouts when fetching the full repository.

Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com>
---

v2:
  - Set GIT_DEPTH only for python-artifacts job.

---
 drivers/gpu/drm/ci/gitlab-ci.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/ci/gitlab-ci.yml b/drivers/gpu/drm/ci/gitlab-ci.yml
index 65adcd97e06b..193f67121328 100644
--- a/drivers/gpu/drm/ci/gitlab-ci.yml
+++ b/drivers/gpu/drm/ci/gitlab-ci.yml
@@ -230,6 +230,11 @@ stages:
       - _build/meson-logs/strace
 
 
+python-artifacts:
+  variables:
+    GIT_DEPTH: 10
+
+
 # Git archive
 make git archive:
   extends:
-- 
2.47.2
Re: [PATCH v2 1/2] drm/ci: python-artifacts: use shallow clone
Posted by Helen Koike 9 months, 1 week ago

On 05/05/2025 11:11, Vignesh Raman wrote:
> 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 10 to speed up cloning and avoid
> build failures due to timeouts when fetching the full repository.
> 
> Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com>

Acked-by: Helen Koike <helen.fornazier@gmail.com>

> ---
> 
> v2:
>    - Set GIT_DEPTH only for python-artifacts job.
> 
> ---
>   drivers/gpu/drm/ci/gitlab-ci.yml | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/gpu/drm/ci/gitlab-ci.yml b/drivers/gpu/drm/ci/gitlab-ci.yml
> index 65adcd97e06b..193f67121328 100644
> --- a/drivers/gpu/drm/ci/gitlab-ci.yml
> +++ b/drivers/gpu/drm/ci/gitlab-ci.yml
> @@ -230,6 +230,11 @@ stages:
>         - _build/meson-logs/strace
>   
>   
> +python-artifacts:
> +  variables:
> +    GIT_DEPTH: 10
> +
> +
>   # Git archive
>   make git archive:
>     extends: