agent icon indicating copy to clipboard operation
agent copied to clipboard

git-mirrors improvements

Open keithduncan opened this issue 4 years ago • 0 comments

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

keithduncan avatar Aug 30 '21 05:08 keithduncan