Skip to content

remove references to unused git LFS files and disable LFS for `www-gitlab-com` repo

Chad Woolley requested to merge clean-up-gitattributes into master

Why is this change being made?

.gitattributes currently contains entries which do not point to existing files in LFS, and the files which are currently under LFS control are no longer used or referred to in the source.

Let's delete them all, and disable LFS for the repo.

This would also serve to speed up the build, because we disable LFS and/or turn off GIT_LFS_SKIP_SMUDGE globally for all builds.

This would save several seconds at the beginning of every CI/CD job, if they skip the LFS processing step in the runner.

Here's the files which are currently actually under LFS (but unreferenced anywhere):

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

But what if people need to commit large files?

The current push rules for the repo limit file sizes to 10 meg. If people need to upload files larger than that, we should host them elsewhere, so they do not impact the repo size and build speed.

Tasks

  • Remove commented references to unused files
  • Remove LFS references from .gitattributes
  • Turn off LFS by ensuring GIT_LFS_SKIP_SMUDGE is disabled for globally for all jobs in .gitlab-ci.yml

See Also

See also this issue which limits the allowed size of uploaded files to 2 MB: #7833 (closed)

Related Issues/MRs

Closes: #7802 (closed)

Relates: #7833 (closed) #6689 (closed) and !49086 (closed)

Edited by Chad Woolley

Merge request reports