| OLD | NEW |
| 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 Loading... |
| 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 = { |
| 424 'builder_name': loop_buildername, | 425 'builder_name': loop_buildername, |
| 425 'properties': {}, | 426 'properties': {}, |
| 426 } | 427 } |
| 428 if mastername != loop_mastername: |
| 429 trigger_spec['bucket'] = 'master.' + loop_mastername |
| 427 for name, value in update_step.presentation.properties.iteritems(): | 430 for name, value in update_step.presentation.properties.iteritems(): |
| 428 if name.startswith('got_'): | 431 if name.startswith('got_'): |
| 429 trigger_spec['properties']['parent_' + name] = value | 432 trigger_spec['properties']['parent_' + name] = value |
| 430 self.m.trigger(trigger_spec) | 433 trigger_specs.append(trigger_spec) |
| 434 if trigger_specs: |
| 435 self.m.trigger(*trigger_specs) |
| 431 | 436 |
| 432 if bot_config.get('archive_build') and not self.m.tryserver.is_tryserver: | 437 if bot_config.get('archive_build') and not self.m.tryserver.is_tryserver: |
| 433 self.m.chromium.archive_build( | 438 self.m.chromium.archive_build( |
| 434 'archive_build', | 439 'archive_build', |
| 435 bot_config['gs_bucket'], | 440 bot_config['gs_bucket'], |
| 436 bot_config.get('gs_acl'), | 441 bot_config.get('gs_acl'), |
| 437 mode='dev' | 442 mode='dev' |
| 438 ) | 443 ) |
| 439 if bot_config.get('cf_archive_build') and not self.m.tryserver.is_tryserver: | 444 if bot_config.get('cf_archive_build') and not self.m.tryserver.is_tryserver: |
| 440 self.m.archive.clusterfuzz_archive( | 445 self.m.archive.clusterfuzz_archive( |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 def get_compile_targets_for_scripts(self): | 811 def get_compile_targets_for_scripts(self): |
| 807 return self.m.python( | 812 return self.m.python( |
| 808 name='get compile targets for scripts', | 813 name='get compile targets for scripts', |
| 809 script=self.m.path['checkout'].join( | 814 script=self.m.path['checkout'].join( |
| 810 'testing', 'scripts', 'get_compile_targets.py'), | 815 'testing', 'scripts', 'get_compile_targets.py'), |
| 811 args=[ | 816 args=[ |
| 812 '--output', self.m.json.output(), | 817 '--output', self.m.json.output(), |
| 813 '--', | 818 '--', |
| 814 ] + self.get_common_args_for_scripts(), | 819 ] + self.get_common_args_for_scripts(), |
| 815 step_test_data=lambda: self.m.json.test_api.output({})) | 820 step_test_data=lambda: self.m.json.test_api.output({})) |
| OLD | NEW |