Integrate gitlab-ci/yt-160-gitlab-ci-integration-often-fails-on-merge-yocto-step
requested to merge integrate/gitlab-ci/yt-160-gitlab-ci-integration-often-fails-on-merge-yocto-step/into/kirkstone into kirkstone
Commit: seco-ne/yocto/infrastructure/gitlab-ci@ff906931
YT-160: Workaround to prevent CI integration failure in 'merge-yocto' step
The GitLab CI integration job frequently fails on the 'merge-yocto' step, specifically at the "git fetch" stage. The issue occurs because Git fails to fetch the .gitlab-ci submodule due to an incorrect reference, likely caused by the shallow clone (--depth=1) configuration, which limits the commit history.
Extending the clone depth to --depth=2 helps prevent this error by providing a slightly deeper commit history, which resolves the reference issue.