Skip to contentSkip to conversation

drm/ci: remove CI_PRE_CLONE_SCRIPT

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

Subsystems (3)
lore
Share & tools
lore

Vignesh Raman

author maintainer
#0 lore raw

PATCH 1/1 drm/ci: remove CI_PRE_CLONE_SCRIPT

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.

---
 drivers/gpu/drm/ci/gitlab-ci.yml | 6 ------
 1 file changed, 6 deletions(-)
drivers/gpu/drm/ci/gitlab-ci.yml +0 -6
index f4e324e156db..0bc4ac344757 100644
@@ -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}' &&
Signature · 1 line
2.47.2
#1 lore raw
Quoted 5 lines · Vignesh Raman

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.

Quoted 26 lines
---
 drivers/gpu/drm/ci/gitlab-ci.yml | 6 ------
 1 file changed, 6 deletions(-)
drivers/gpu/drm/ci/gitlab-ci.yml +0 -6
index f4e324e156db..0bc4ac344757 100644
@@ -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}' &&
Signature · 1 line
2.47.2
Signature · 2 lines
With best wishes
Dmitry
author maintainer
#2 lore raw

Hi Dmitry,

Quoted 7 lines · Dmitry Baryshkov
Quoted 5 lines · Vignesh Raman

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.

Quoted 5 lines

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/[email protected]/T/#u

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

Thanks.

Regards,
Vignesh

Quoted 28 lines
Quoted 27 lines
---
  drivers/gpu/drm/ci/gitlab-ci.yml | 6 ------
  1 file changed, 6 deletions(-)
drivers/gpu/drm/ci/gitlab-ci.yml +0 -6
index f4e324e156db..0bc4ac344757 100644
@@ -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}' &&
Signature · 1 line
2.47.2