zuul-jobs/roles/git-prepare-nodecache
Tobias Henkel e0e3f3b81c
Optimize repos for size when preparing for nodecache
We currently run 'git gc' on repos before creating the tarball for the
node cache. On busy repos this is not enough to cut down the size of
the repo. With more aggressive pruning and packing one of our repos in
the cache got down from 6GB to 1.8GB.

Change-Id: I7ef428c25fde713efabd966d59b5bd97ec248d7e
2020-03-02 09:54:56 +01:00
..
defaults Add role git-prepare-nodecache 2018-11-09 15:57:03 +01:00
tasks Optimize repos for size when preparing for nodecache 2020-03-02 09:54:56 +01:00
README.rst Add role git-prepare-nodecache 2018-11-09 15:57:03 +01:00

Prepare an archive containing all repositories that are part of the job. This can be used to prepare the repos archive suitable for caching in the node image to be used by prepare-workspace-git.

The path to the resulting archive file will be stored in the git_cache_file variable. That variable can be used to push the archive to a place where it will be picked up to be baked into the node image.

Role variables