| 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 contextlib | 5 import contextlib |
| 6 import copy | 6 import copy |
| 7 import itertools | 7 import itertools |
| 8 import json | 8 import json |
| 9 | 9 |
| 10 from recipe_engine.types import freeze | 10 from recipe_engine.types import freeze |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 if (master_config.get('bisect_builders') and | 411 if (master_config.get('bisect_builders') and |
| 412 buildername in master_config.get('bisect_builders')): | 412 buildername in master_config.get('bisect_builders')): |
| 413 self.m.archive.zip_and_upload_build( | 413 self.m.archive.zip_and_upload_build( |
| 414 'package build for bisect', | 414 'package build for bisect', |
| 415 self.m.chromium.c.build_config_fs, | 415 self.m.chromium.c.build_config_fs, |
| 416 build_url=self._build_bisect_gs_archive_url(master_config), | 416 build_url=self._build_bisect_gs_archive_url(master_config), |
| 417 build_revision=build_revision, | 417 build_revision=build_revision, |
| 418 cros_board=self.m.chromium.c.TARGET_CROS_BOARD, | 418 cros_board=self.m.chromium.c.TARGET_CROS_BOARD, |
| 419 update_properties=update_step.presentation.properties, | 419 update_properties=update_step.presentation.properties, |
| 420 exclude_perf_test_files=True, | 420 exclude_perf_test_files=True, |
| 421 store_by_hash=False | 421 store_by_hash=False, |
| 422 platform=self.m.chromium.c.HOST_PLATFORM |
| 422 ) | 423 ) |
| 423 | 424 |
| 424 self.m.archive.zip_and_upload_build( | 425 self.m.archive.zip_and_upload_build( |
| 425 'package build', | 426 'package build', |
| 426 self.m.chromium.c.build_config_fs, | 427 self.m.chromium.c.build_config_fs, |
| 427 build_url=self._build_gs_archive_url( | 428 build_url=self._build_gs_archive_url( |
| 428 mastername, master_config, buildername), | 429 mastername, master_config, buildername), |
| 429 build_revision=build_revision, | 430 build_revision=build_revision, |
| 430 cros_board=self.m.chromium.c.TARGET_CROS_BOARD, | 431 cros_board=self.m.chromium.c.TARGET_CROS_BOARD, |
| 431 # TODO(machenbach): Make asan a configuration switch. | 432 # TODO(machenbach): Make asan a configuration switch. |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 | 804 |
| 804 if not tests: | 805 if not tests: |
| 805 return | 806 return |
| 806 | 807 |
| 807 api.chromium_swarming.configure_swarming( | 808 api.chromium_swarming.configure_swarming( |
| 808 'chromium', precommit=False, mastername=mastername) | 809 'chromium', precommit=False, mastername=mastername) |
| 809 test_runner = api.chromium_tests.create_test_runner( | 810 test_runner = api.chromium_tests.create_test_runner( |
| 810 api, tests, serialize_tests=bot_config.get('serialize_tests')) | 811 api, tests, serialize_tests=bot_config.get('serialize_tests')) |
| 811 with api.chromium_tests.wrap_chromium_tests(bot_config, tests): | 812 with api.chromium_tests.wrap_chromium_tests(bot_config, tests): |
| 812 test_runner() | 813 test_runner() |
| OLD | NEW |