Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Unified Diff: scripts/slave/recipe_modules/goma/resources/ensure_goma.py

Issue 1835943004: ensure_goma: use git retry for clone and fetch (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/goma/resources/ensure_goma.py
diff --git a/scripts/slave/recipe_modules/goma/resources/ensure_goma.py b/scripts/slave/recipe_modules/goma/resources/ensure_goma.py
index 94fc5051a16469cf0c93aac8a084c1c29249b1c1..056384ab141d89818b174da1ab47a4ca90e5c909 100755
--- a/scripts/slave/recipe_modules/goma/resources/ensure_goma.py
+++ b/scripts/slave/recipe_modules/goma/resources/ensure_goma.py
@@ -48,10 +48,10 @@ def main(argv):
print '[%s]: repo mismatch. initial clone' % (
datetime.datetime.utcnow() - start)
shutil.rmtree(client_dir)
- subprocess.check_call(['git', 'clone', config['repo'], client_dir])
+ subprocess.check_call(['git', 'retry', 'clone', config['repo'], client_dir])
print '[%s]: fetch' % (datetime.datetime.utcnow() - start)
- subprocess.check_call(['git', 'fetch'], cwd=client_dir)
+ subprocess.check_call(['git', 'retry', 'fetch'], cwd=client_dir)
rev = config['revision']
if args.canary:
rev = 'refs/remotes/origin/HEAD'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698