Skip to content

Commit

Permalink
Enable retry on failed git operations
Browse files Browse the repository at this point in the history
This should address issues like
`fatal: unable to access 'https://github.com/llvm/llvm-project.git/': Could not resolve host: github.com`
in
http://lab.llvm.org:8011/#/builders/131/builds/7

Differential Revision: https://reviews.llvm.org/D91945
  • Loading branch information
ChristianKuehnel committed Jun 8, 2021
1 parent 9982127 commit b83568a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zorg/buildbot/process/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,14 @@ def pathRelativeTo(path, basePath):

def addGetSourcecodeSteps(self, **kwargs):
# Checkout the monorepo.
# Documentation: http://docs.buildbot.net/current/manual/configuration/buildsteps.html#git
self.addStep(steps.Git(
name='Checkout the source code',
repourl=self.repourl_prefix + "llvm-project.git",
progress=True,
workdir=util.WithProperties(self.monorepo_dir),
retryFetch=True,
clobberOnFailure=True,
**kwargs))


Expand Down Expand Up @@ -153,4 +156,6 @@ def addGetSourcecodeForProject(self, project, name=None, src_dir=None, **kwargs)
repourl=_repourl,
progress=True,
workdir=util.WithProperties(src_dir),
retryFetch=True,
clobberOnFailure=True,
**kwargs))

0 comments on commit b83568a

Please sign in to comment.