GitlabCI should fetch less from git

Created on 14 September 2023, 10 months ago
Updated 15 September 2023, 10 months ago

Problem/Motivation

No reason to fetch a whole drupal history, it will help
- to transfer less data from Gitlab
- speeds-up each CI job (fetching 50 commits takes ~10seconds comparing to 1minute for a whole repo)

Steps to reproduce

See https://git.drupalcode.org/project/drupal/-/jobs/82685

Getting source from Git repository 01:05

Proposed resolution

- add GIT_DEPTH=5to fetch only limited amount of of commits from MR branch
- fix 📔 Spell-checking job - it should fetch only branch to compare with

The commit branch name. Available in branch pipelines, including pipelines for the default branch. Not available in merge request pipelines or tag pipelines.

Remaining tasks

- review/comit

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.1

Component
Other 

Last updated about 13 hours ago

Created by

🇫🇷France andypost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024