Skip to content

Add GIT_LFS_SKIP_SMUDGE: "1" to all `www-gitlab-com` jobs which don't need LFS support

What does this MR do?

Add GIT_LFS_SKIP_SMUDGE: "1" to all www-gitlab-com jobs which don't need LFS support to reduce the repo cloning time.

NOTE: See the epic for more context on the effort to reduce repo cloning time.

Details

There are currently only three files under LFS:

$ git lfs ls-files
08efd4a6f4 * source/handbook/marketing/product-marketing/demo/ct-files/AutoDevOps-v13.html
e4c3769ca8 * source/handbook/marketing/product-marketing/demo/ct-files/gke-setup.html
6e2f3a6b6a * source/handbook/marketing/product-marketing/demo/ct-files/mr-approval.html

...and these files are only used in the HANDBOOK_ENGINEERING_MARKETING partial of PartialBuild ($CI_NODE_INDEX = 5).

See https://gitlab.com/gitlab-com/www-gitlab-com/-/jobs/501247974 for an example.

So, we should be able to globally set GIT_LFS_SKIP_SMUDGE: "1", and only do a git lfs pull when needed. Ideally, this would only be for the single HANDBOOK_ENGINEERING_MARKETING, but since the runner does the git lfs pull before the job starts in the docker instance, we have to enable GIT_LFS_SKIP_SMUDGE: "1" for all the parallel jobs in build_base.

Related issues

Closes #7037 (closed)

/label ~"group::static site editor" ~backstage

Edited by Chad Woolley

Merge request reports

Loading