From 74304330df4ed276b78f0fcdc51bcf77222d08dc Mon Sep 17 00:00:00 2001 From: "kjellander@webrtc.org" Date: Thu, 5 Mar 2015 14:38:09 +0000 Subject: [PATCH] Print better information during Chromium sync. Many users are having problems with the initial sync. Let's print a bit more information and advice on how to recover from an aborted sync. R=phoglund@webrtc.org Review URL: https://webrtc-codereview.appspot.com/42229004 Cr-Commit-Position: refs/heads/master@{#8617} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8617 4adac7df-926f-26a2-2b94-8c16560cd09d --- sync_chromium.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sync_chromium.py b/sync_chromium.py index abea33b599..cc850f4265 100755 --- a/sync_chromium.py +++ b/sync_chromium.py @@ -26,6 +26,7 @@ import argparse import os import subprocess import sys +import textwrap # Bump this whenever the algorithm changes and you need bots/devs to re-sync, # ignoring the .last_sync_chromium file @@ -104,6 +105,9 @@ def main(): else: cache_path = '/b/git-cache' else: + # Verbose, but not as verbose as on the buildbots. + args.append('-v') + # Support developers setting the cache_dir in .gclient. cache_path = get_cache_dir() @@ -143,6 +147,15 @@ def main(): if target_os_list: args += ['--deps=' + target_os_list] + print textwrap.dedent("""\ + +--------------------------------------------------------------------+ + | NOTICE: This sync of Chromium will take a very long time the first | + | time you checkout WebRTC as several gigabytes of data has | + | to be downloaded. Make sure you don't abort this download | + | or you will have to issue a 'gclient sync' followed by a | + | 'git auto-svn' to complete the initial setup. If that | + | fails, you have to wipe everything clean and start over. | + +--------------------------------------------------------------------+""") print 'Running "%s" in %s' % (' '.join(args), opts.chromium_dir) ret = subprocess.call(args, cwd=opts.chromium_dir, env=env) if ret == 0: