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

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

Issue 1928783004: Extend chromium_tests trigger to work across masters. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Expectations Created 4 years, 7 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 collections 5 import collections
6 import contextlib 6 import contextlib
7 import copy 7 import copy
8 import itertools 8 import itertools
9 import json 9 import json
10 10
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 build_url=self._build_gs_archive_url( 410 build_url=self._build_gs_archive_url(
411 mastername, master_config, buildername), 411 mastername, master_config, buildername),
412 build_revision=build_revision, 412 build_revision=build_revision,
413 cros_board=self.m.chromium.c.TARGET_CROS_BOARD, 413 cros_board=self.m.chromium.c.TARGET_CROS_BOARD,
414 # TODO(machenbach): Make asan a configuration switch. 414 # TODO(machenbach): Make asan a configuration switch.
415 package_dsym_files=( 415 package_dsym_files=(
416 self.m.chromium.c.gyp_env.GYP_DEFINES.get('asan') and 416 self.m.chromium.c.gyp_env.GYP_DEFINES.get('asan') and
417 self.m.chromium.c.HOST_PLATFORM == 'mac'), 417 self.m.chromium.c.HOST_PLATFORM == 'mac'),
418 ) 418 )
419 419
420 for loop_buildername, builder_dict in sorted( 420 trigger_specs = []
421 for loop_mastername, loop_buildername, builder_dict in sorted(
421 bot_db.bot_configs_matching_parent_buildername( 422 bot_db.bot_configs_matching_parent_buildername(
422 mastername, buildername)): 423 mastername, buildername)):
423 trigger_spec = { 424 trigger_spec = {
425 'bucket': 'master.' + loop_mastername,
424 'builder_name': loop_buildername, 426 'builder_name': loop_buildername,
425 'properties': {}, 427 'properties': {},
426 } 428 }
427 for name, value in update_step.presentation.properties.iteritems(): 429 for name, value in update_step.presentation.properties.iteritems():
428 if name.startswith('got_'): 430 if name.startswith('got_'):
429 trigger_spec['properties']['parent_' + name] = value 431 trigger_spec['properties']['parent_' + name] = value
430 self.m.trigger(trigger_spec) 432 trigger_specs.append(trigger_spec)
433 self.m.trigger(*trigger_specs)
431 434
432 if bot_config.get('archive_build') and not self.m.tryserver.is_tryserver: 435 if bot_config.get('archive_build') and not self.m.tryserver.is_tryserver:
433 self.m.chromium.archive_build( 436 self.m.chromium.archive_build(
434 'archive_build', 437 'archive_build',
435 bot_config['gs_bucket'], 438 bot_config['gs_bucket'],
436 bot_config.get('gs_acl'), 439 bot_config.get('gs_acl'),
437 mode='dev' 440 mode='dev'
438 ) 441 )
439 if bot_config.get('cf_archive_build') and not self.m.tryserver.is_tryserver: 442 if bot_config.get('cf_archive_build') and not self.m.tryserver.is_tryserver:
440 self.m.archive.clusterfuzz_archive( 443 self.m.archive.clusterfuzz_archive(
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 def get_compile_targets_for_scripts(self): 809 def get_compile_targets_for_scripts(self):
807 return self.m.python( 810 return self.m.python(
808 name='get compile targets for scripts', 811 name='get compile targets for scripts',
809 script=self.m.path['checkout'].join( 812 script=self.m.path['checkout'].join(
810 'testing', 'scripts', 'get_compile_targets.py'), 813 'testing', 'scripts', 'get_compile_targets.py'),
811 args=[ 814 args=[
812 '--output', self.m.json.output(), 815 '--output', self.m.json.output(),
813 '--', 816 '--',
814 ] + self.get_common_args_for_scripts(), 817 ] + self.get_common_args_for_scripts(),
815 step_test_data=lambda: self.m.json.test_api.output({})) 818 step_test_data=lambda: self.m.json.test_api.output({}))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698