cbuildbot: Add --repo-cache option.
Give the builders an option to give us a warm repo cache to copy in if
we need to create our build root from scratch. This allows us to avoid
overloading GoB when we bring up large numbers of new builders.
BUG=chromium:609886
TEST=run_tests
Change-Id: Ib79f219554b4a8e0e256f366916c376d716025d0
Reviewed-on: https://chromium-review.googlesource.com/348011
Commit-Ready: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
diff --git a/scripts/cbuildbot.py b/scripts/cbuildbot.py
index 5baad64..a3f6267 100644
--- a/scripts/cbuildbot.py
+++ b/scripts/cbuildbot.py
@@ -520,6 +520,10 @@
'to skip verification by the bootstrap code'))
group.add_remote_option('--buildbot', dest='buildbot', action='store_true',
default=False, help='This is running on a buildbot')
+ parser.add_remote_option('--repo-cache', type='path',
+ help='Directory from which to copy a repo checkout '
+ 'if our build root is empty, to avoid '
+ 'excessive GoB load with a fresh sync.')
group.add_remote_option('--no-buildbot-tags', action='store_false',
dest='enable_buildbot_tags', default=True,
help='Suppress buildbot specific tags from log '