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