mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1] drm/ci: remove CI_PRE_CLONE_SCRIPT
@ 2025-02-27  4:36 Vignesh Raman
  2025-02-27  5:51 ` Dmitry Baryshkov
  0 siblings, 1 reply; 3+ messages in thread
From: Vignesh Raman @ 2025-02-27  4:36 UTC (permalink / raw)
  To: dri-devel
  Cc: daniels, helen.fornazier, airlied, simona.vetter, robdclark,
	dmitry.baryshkov, maarten.lankhorst, mripard, tzimmermann,
	guilherme.gallo, sergi.blanch.torne, valentine.burley,
	linux-kernel

If we are not caching the git archive, do not
set CI_PRE_CLONE_SCRIPT. Setting it makes CI
try to download the cache first, and if it is
missing, it tries to clone the repo within a
time limit, which can cause build failures.

Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com>
---
 drivers/gpu/drm/ci/gitlab-ci.yml | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/gpu/drm/ci/gitlab-ci.yml b/drivers/gpu/drm/ci/gitlab-ci.yml
index f4e324e156db..0bc4ac344757 100644
--- a/drivers/gpu/drm/ci/gitlab-ci.yml
+++ b/drivers/gpu/drm/ci/gitlab-ci.yml
@@ -13,12 +13,6 @@ variables:
   FDO_UPSTREAM_REPO: helen.fornazier/linux   # The repo where the git-archive daily runs
   MESA_TEMPLATES_COMMIT: &ci-templates-commit d5aa3941aa03c2f716595116354fb81eb8012acb
   DRM_CI_PROJECT_URL: https://gitlab.freedesktop.org/${DRM_CI_PROJECT_PATH}
-  CI_PRE_CLONE_SCRIPT: |-
-          set -o xtrace
-          curl -L --retry 4 -f --retry-all-errors --retry-delay 60 -s ${DRM_CI_PROJECT_URL}/-/raw/${DRM_CI_COMMIT_SHA}/.gitlab-ci/download-git-cache.sh -o download-git-cache.sh
-          bash download-git-cache.sh
-          rm download-git-cache.sh
-          set +o xtrace
   S3_JWT_FILE: /s3_jwt
   S3_JWT_FILE_SCRIPT: |-
       echo -n '${S3_JWT}' > '${S3_JWT_FILE}' &&
-- 
2.47.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] drm/ci: remove CI_PRE_CLONE_SCRIPT
  2025-02-27  4:36 [PATCH v1] drm/ci: remove CI_PRE_CLONE_SCRIPT Vignesh Raman
@ 2025-02-27  5:51 ` Dmitry Baryshkov
  2025-02-28  3:18   ` Vignesh Raman
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Baryshkov @ 2025-02-27  5:51 UTC (permalink / raw)
  To: Vignesh Raman
  Cc: dri-devel, daniels, helen.fornazier, airlied, simona.vetter,
	robdclark, maarten.lankhorst, mripard, tzimmermann,
	guilherme.gallo, sergi.blanch.torne, valentine.burley,
	linux-kernel

On Thu, Feb 27, 2025 at 10:06:24AM +0530, Vignesh Raman wrote:
> If we are not caching the git archive, do not
> set CI_PRE_CLONE_SCRIPT. Setting it makes CI
> try to download the cache first, and if it is
> missing, it tries to clone the repo within a
> time limit, which can cause build failures.

Please wrap the commit message according to the guidelines. 47 chars in
a line is way too short.

BTW: this didn't help with the python-artifacts issue. It still times
out.

> 
> Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com>
> ---
>  drivers/gpu/drm/ci/gitlab-ci.yml | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/ci/gitlab-ci.yml b/drivers/gpu/drm/ci/gitlab-ci.yml
> index f4e324e156db..0bc4ac344757 100644
> --- a/drivers/gpu/drm/ci/gitlab-ci.yml
> +++ b/drivers/gpu/drm/ci/gitlab-ci.yml
> @@ -13,12 +13,6 @@ variables:
>    FDO_UPSTREAM_REPO: helen.fornazier/linux   # The repo where the git-archive daily runs
>    MESA_TEMPLATES_COMMIT: &ci-templates-commit d5aa3941aa03c2f716595116354fb81eb8012acb
>    DRM_CI_PROJECT_URL: https://gitlab.freedesktop.org/${DRM_CI_PROJECT_PATH}
> -  CI_PRE_CLONE_SCRIPT: |-
> -          set -o xtrace
> -          curl -L --retry 4 -f --retry-all-errors --retry-delay 60 -s ${DRM_CI_PROJECT_URL}/-/raw/${DRM_CI_COMMIT_SHA}/.gitlab-ci/download-git-cache.sh -o download-git-cache.sh
> -          bash download-git-cache.sh
> -          rm download-git-cache.sh
> -          set +o xtrace
>    S3_JWT_FILE: /s3_jwt
>    S3_JWT_FILE_SCRIPT: |-
>        echo -n '${S3_JWT}' > '${S3_JWT_FILE}' &&
> -- 
> 2.47.2
> 

-- 
With best wishes
Dmitry

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] drm/ci: remove CI_PRE_CLONE_SCRIPT
  2025-02-27  5:51 ` Dmitry Baryshkov
@ 2025-02-28  3:18   ` Vignesh Raman
  0 siblings, 0 replies; 3+ messages in thread
From: Vignesh Raman @ 2025-02-28  3:18 UTC (permalink / raw)
  To: Dmitry Baryshkov
  Cc: dri-devel, daniels, helen.fornazier, airlied, simona.vetter,
	robdclark, maarten.lankhorst, mripard, tzimmermann,
	guilherme.gallo, sergi.blanch.torne, valentine.burley,
	linux-kernel

Hi Dmitry,

On 27/02/25 11:21, Dmitry Baryshkov wrote:
> On Thu, Feb 27, 2025 at 10:06:24AM +0530, Vignesh Raman wrote:
>> If we are not caching the git archive, do not
>> set CI_PRE_CLONE_SCRIPT. Setting it makes CI
>> try to download the cache first, and if it is
>> missing, it tries to clone the repo within a
>> time limit, which can cause build failures.
> 
> Please wrap the commit message according to the guidelines. 47 chars in
> a line is way too short.
> 
> BTW: this didn't help with the python-artifacts issue. It still times
> out.

The issue was with shallow cloning, and I have posted another patch.
https://lore.kernel.org/dri-devel/20250228031501.483475-1-vignesh.raman@collabora.com/T/#u

The commit message is wrapped according to the guidelines in this patch.

Thanks.

Regards,
Vignesh

> 
>>
>> Signed-off-by: Vignesh Raman <vignesh.raman@collabora.com>
>> ---
>>   drivers/gpu/drm/ci/gitlab-ci.yml | 6 ------
>>   1 file changed, 6 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/ci/gitlab-ci.yml b/drivers/gpu/drm/ci/gitlab-ci.yml
>> index f4e324e156db..0bc4ac344757 100644
>> --- a/drivers/gpu/drm/ci/gitlab-ci.yml
>> +++ b/drivers/gpu/drm/ci/gitlab-ci.yml
>> @@ -13,12 +13,6 @@ variables:
>>     FDO_UPSTREAM_REPO: helen.fornazier/linux   # The repo where the git-archive daily runs
>>     MESA_TEMPLATES_COMMIT: &ci-templates-commit d5aa3941aa03c2f716595116354fb81eb8012acb
>>     DRM_CI_PROJECT_URL: https://gitlab.freedesktop.org/${DRM_CI_PROJECT_PATH}
>> -  CI_PRE_CLONE_SCRIPT: |-
>> -          set -o xtrace
>> -          curl -L --retry 4 -f --retry-all-errors --retry-delay 60 -s ${DRM_CI_PROJECT_URL}/-/raw/${DRM_CI_COMMIT_SHA}/.gitlab-ci/download-git-cache.sh -o download-git-cache.sh
>> -          bash download-git-cache.sh
>> -          rm download-git-cache.sh
>> -          set +o xtrace
>>     S3_JWT_FILE: /s3_jwt
>>     S3_JWT_FILE_SCRIPT: |-
>>         echo -n '${S3_JWT}' > '${S3_JWT_FILE}' &&
>> -- 
>> 2.47.2
>>
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-28  3:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-27  4:36 [PATCH v1] drm/ci: remove CI_PRE_CLONE_SCRIPT Vignesh Raman
2025-02-27  5:51 ` Dmitry Baryshkov
2025-02-28  3:18   ` Vignesh Raman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®