-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Hi team, long time no see!
We've been exploring Partial Git Clones recently and found that Treeless git clones are super fast for us while providing a fully working Git repo.
Now I want to check if we actually gaining anything by using shared Git Mirror dir with Treeless clone or wasting more time on it due to what BuildKite agent does while using git mirror:
# Using git-mirrors experiment 🧪
--
| $ cd /git-mirrors
| # Updating existing repository mirror to find commit 25009bc1f51560bb81763bd7e24e309963647476
| $ git --git-dir /git-mirrors/git-github-myrepo-git remote set-url origin git@github.com:myrepo.git
| $ git --git-dir /git-mirrors/git-github-myrepo-git fetch origin master- mirror dir locking which forces jobs on one node into serial cloning and adds delay to job start.
From what I see in the code after trying to remove git-mirrors-host-path from our custom params is that k8s-buildkite-plugin then defaults to /git-mirrors and continues to use Git Mirror.
Thus, I propose a change when a null value on git-mirrors-host-path will disable git mirror feature, while setting a value will enable it with passed path.
The change however will be breaking since default behavior will change and some users might have relied on it, for them we will suggest explicitly passing the old default path /git-mirrors.
I can implement the change if we come to agreement!
wdyt?
Thanks!