3 ms·
GitLab's runner agent software doesn't support a local git cache. GitLab.com Saas agents have no sticky-ness, so basically always clone.
by Dayshine 4y ago
GitLab's runner agent software doesn't support a local git cache.
GitLab.com Saas agents have no sticky-ness, so basically always clone.
- capableweb 4y agoYeah, that does sound wasteful, just like what parent said. They should add some sort of cache support if that's the case.
- dnsmichi 4y agoThanks for the suggestion of adding a Git cache for a GitLab Runner. A similar mechanism already exists that allows control of the Git strategy with fetch on a local working copy which is faster, and clone if not yet existing. All benefits and limitations are documented [0]. To help prevent unneeded traffic when a new pipeline job is executed, GitLab Runner uses a shallow Git clone by default on GitLab.com SaaS that only pulls a limited set of Git commits from the current head instead of a full clone. [1] There is a feature proposal [2] to add support for partial clone and sparse-checkout strategies that have been added in more recent Git versions. Recommend commenting/subscribing. Please note that for GitLab.com SaaS Shared Runners, the traffic limits do not apply with mostly internal cloud traffic. [3] [0] https://docs.gitlab.com/ee/ci/runners/configure_runners.html#git-strategy https://docs.gitlab.com/ee/ci/runners/configure_runners.html... [1] https://docs.gitlab.com/ee/ci/large_repositories/#shallow-cloning https://docs.gitlab.com/ee/ci/large_repositories/#shallow-cl... [2] https://gitlab.com/gitlab-org/gitlab-runner/-/issues/26631 https://gitlab.com/gitlab-org/gitlab-runner/-/issues/26631 [3] https://about.gitlab.com/pricing/#what-counts-towards-my-transfer-limit https://about.gitlab.com/pricing/#what-counts-towards-my-tra...