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

Unified Diff: scripts/slave/compile.py

Issue 2307743002: Reland "Avoid to use environment." (Closed)
Patch Set: rebase 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 30bea0b3dcd24d2534f7dab5925a0987aa052736..e68649cebd3496e16bfd6eb8c736b7cbae14b04b 100755
--- a/scripts/slave/compile.py
+++ b/scripts/slave/compile.py
@@ -87,7 +87,11 @@ def StopGomaClientAndUploadInfo(options, env, exit_status):
if options.goma_jsonstatus:
chromium_utils.RunCommand(
goma_ctl_cmd + ['jsonstatus', options.goma_jsonstatus], env=env)
- goma_utils.SendGomaTsMon(options.goma_jsonstatus, exit_status)
+ goma_utils.SendGomaTsMon(options.goma_jsonstatus, exit_status,
+ builder=options.buildbot_buildername,
+ master=options.buildbot_mastername,
+ slave=options.buildbot_slavename,
+ clobber=options.buildbot_clobber)
# If goma compiler_proxy crashes, there could be crash dump.
if options.build_data_dir:
@@ -506,6 +510,15 @@ def get_parsed_options():
option_parser.add_option('--cloudtail-pid-file', default=None,
help='Specify a file to store pid of cloudtail')
+ # Arguments to pass buildbot properties.
+ option_parser.add_option('--buildbot-buildername', default='unknown',
+ help='buildbot buildername')
+ option_parser.add_option('--buildbot-mastername', default='unknown',
+ help='buildbot mastername')
+ option_parser.add_option('--buildbot-slavename', default='unknown',
+ help='buildbot slavename')
+ option_parser.add_option('--buildbot-clobber', help='buildbot clobber')
Nico 2016/12/07 19:03:24 Why is this needed? compile.py should never clobbe
yyanagisawa 2016/12/08 01:41:01 This flags is needed to make goma_utils know this
+
options, args = option_parser.parse_args()
if not options.src_dir:
« 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