agent
agent copied to clipboard
git-mirrors improvements
A couple of changes to git-mirrors batched up:
- Set shared=group to allow NixOS agents to share a mirror
- Don’t retry EPERM errors on the lockfile (to be tested) because they aren’t temporary
- Replace the mirror clone with a git init (allowing shared to be set)
- This one is fairly substantial because there is no initial clone which would pull down all refs, instead only the 'wanted' ref is pulled down via a fetch
- Make git-mirror success optional if the experiment is enabled
- If the experiment is on but the fetch fails for any reason, continue on without it
Fixes #1481 Fixes #1480