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

Unified Diff: scripts/slave/compile.py

Issue 2311123002: Reland 'Add buildbot metadata to compiler_proxy log' (Closed)
Patch Set: Created 4 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 | scripts/slave/goma_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/compile.py
diff --git a/scripts/slave/compile.py b/scripts/slave/compile.py
index e68649cebd3496e16bfd6eb8c736b7cbae14b04b..9408356ba587f867a3483565f105cdfce1e0b96c 100755
--- a/scripts/slave/compile.py
+++ b/scripts/slave/compile.py
@@ -101,8 +101,13 @@ def StopGomaClientAndUploadInfo(options, env, exit_status):
chromium_utils.RunCommand(goma_ctl_cmd + ['stop'], env=env)
override_gsutil = None
if options.gsutil_py_path:
- override_gsutil = [sys.executable, options.gsutil_py_path]
- goma_utils.UploadGomaCompilerProxyInfo(override_gsutil=override_gsutil)
+ # Needs to add '--', otherwise gsutil options will be passed to gsutil.py.
+ override_gsutil = [sys.executable, options.gsutil_py_path, '--']
+ goma_utils.UploadGomaCompilerProxyInfo(override_gsutil=override_gsutil,
+ builder=options.buildbot_buildername,
+ master=options.buildbot_mastername,
+ slave=options.buildbot_slavename,
+ clobber=options.buildbot_clobber)
# Upload GomaStats to make it monitored.
if env.get('GOMA_DUMP_STATS_FILE'):
@@ -431,7 +436,8 @@ def main_ninja(options, args, env):
finally:
override_gsutil = None
if options.gsutil_py_path:
- override_gsutil = [sys.executable, options.gsutil_py_path]
+ # Needs to add '--', otherwise gsutil options will be passed to gsutil.py.
+ override_gsutil = [sys.executable, options.gsutil_py_path, '--']
goma_utils.UploadNinjaLog(
options.target_output_dir, options.compiler, command, exit_status,
« no previous file with comments | « no previous file | scripts/slave/goma_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698