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

Side by Side Diff: scripts/slave/recipe_modules/v8/api.py

Issue 2048333002: V8: Run MB on staging bot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import argparse 5 import argparse
6 import datetime 6 import datetime
7 import random 7 import random
8 import re 8 import re
9 import urllib 9 import urllib
10 10
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 self.m.isolate.isolate_tests( 384 self.m.isolate.isolate_tests(
385 self.m.chromium.output_dir, 385 self.m.chromium.output_dir,
386 targets=sorted(list(set(tests_to_isolate))), 386 targets=sorted(list(set(tests_to_isolate))),
387 verbose=True, 387 verbose=True,
388 set_swarm_hashes=False, 388 set_swarm_hashes=False,
389 ) 389 )
390 if self.should_upload_build: 390 if self.should_upload_build:
391 self.upload_isolated_json() 391 self.upload_isolated_json()
392 392
393 def compile(self, **kwargs): 393 def compile(self, **kwargs):
394 if self.m.chromium.c.project_generator.tool == 'gn': 394 if self.m.chromium.c.project_generator.tool == 'mb':
395 self.m.chromium.run_gn(use_goma=True) 395 use_goma = (self.m.chromium.c.compile_py.compiler and
396 'goma' in self.m.chromium.c.compile_py.compiler)
397 self.m.chromium.run_mb(
398 self.m.properties['mastername'],
399 self.m.properties['buildername'],
400 use_goma=use_goma,
401 mb_config_path=self.m.path['checkout'].join(
402 'infra', 'mb', 'mb_config.pyl'),
403 gyp_script=self.m.path.join('gypfiles', 'gyp_v8'),
404 )
396 self.m.chromium.compile(**kwargs) 405 self.m.chromium.compile(**kwargs)
397 self.isolate_tests() 406 self.isolate_tests()
398 407
399 # TODO(machenbach): This should move to a dynamorio module as soon as one 408 # TODO(machenbach): This should move to a dynamorio module as soon as one
400 # exists. 409 # exists.
401 def dr_compile(self): 410 def dr_compile(self):
402 self.m.file.makedirs( 411 self.m.file.makedirs(
403 'Create Build Dir', 412 'Create Build Dir',
404 self.m.path['slave_build'].join('dynamorio', 'build')) 413 self.m.path['slave_build'].join('dynamorio', 'build'))
405 self.m.step( 414 self.m.step(
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 def report_culprits(self, culprit_range): 1162 def report_culprits(self, culprit_range):
1154 assert culprit_range 1163 assert culprit_range
1155 if len(culprit_range) > 1: 1164 if len(culprit_range) > 1:
1156 text = 'Suspecting multiple commits' 1165 text = 'Suspecting multiple commits'
1157 else: 1166 else:
1158 text = 'Suspecting %s' % culprit_range[0][:8] 1167 text = 'Suspecting %s' % culprit_range[0][:8]
1159 1168
1160 step_result = self.m.step(text, cmd=None) 1169 step_result = self.m.step(text, cmd=None)
1161 for culprit in culprit_range: 1170 for culprit in culprit_range:
1162 step_result.presentation.links[culprit[:8]] = COMMIT_TEMPLATE % culprit 1171 step_result.presentation.links[culprit[:8]] = COMMIT_TEMPLATE % culprit
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/chromium/api.py ('k') | scripts/slave/recipe_modules/v8/builders.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698