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

Unified Diff: bin/cbuildbot.py

Issue 3419024: Switch off repo sync --jobs, and turn on repo --trace. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 3 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: bin/cbuildbot.py
diff --git a/bin/cbuildbot.py b/bin/cbuildbot.py
index cd9a3a5bebfefde70c2ba5afb9ab67da897c35a1..14e22d1042f9b40cda78111e6db0fbb96037ba2b 100755
--- a/bin/cbuildbot.py
+++ b/bin/cbuildbot.py
@@ -47,13 +47,12 @@ def RepoSync(buildroot, rw_checkout=False, retries=_DEFAULT_RETRIES):
retries -- Number of retries to try before failing on the sync.
"""
- # Get the number of processors to use with repo sync.
- num_procs = int(RunCommand('grep -c processor /proc/cpuinfo'.split(),
- print_cmd=False, redirect_stdout=True))
-
while retries > 0:
try:
- RunCommand(['repo', 'sync', '--jobs=%d' % (num_procs)], cwd=buildroot)
+ # The --trace option ensures that repo shows the output from git. This
+ # is needed so that the buildbot can kill us if git is not making
+ # progress.
+ RunCommand(['repo', '--trace', 'sync'], cwd=buildroot)
if rw_checkout:
# Always re-run in case of new git repos or repo sync
# failed in a previous run because of a forced Stop Build.
« 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