Fix Gitaly clone failure by making clone depth configurable
What does this merge request do and why?
Fix Gitaly clone failure caused by default clone depth being set to 1. Before Move binary compilation steps to shared script (!4316 - merged), Gitaly was cloned fully, but the shared clone_repository function added a default depth of 1. This caused compile:*:gitaly
jobs to fail because the commit was missing in the shallow clone. This change makes clone depth configurable so Gitaly can be cloned fully.
How to set up and validate locally
Ensure compile:*:gitaly
jobs succeed in the pipeline: https://gitlab.com/gitlab-org/gitlab-development-kit/-/pipelines/1615308129.
Impacted categories
The following categories relate to this merge request:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Merge request checklist
-
This change is backward compatible. If not, please include steps to communicate to our users. -
Tests added for new functionality. If not, please raise an issue to follow-up. -
Documentation added/updated, if needed. -
Announcement added, if change is notable. -
gdk doctor
test added, if needed.
Edited by Nao Hashizume