| OLD | NEW |
| 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 DEPS = [ | 5 DEPS = [ |
| 6 'adb', | 6 'adb', |
| 7 'amp', | 7 'amp', |
| 8 'bisect_tester', | 8 'bisect_tester', |
| 9 'bot_update', | 9 'bot_update', |
| 10 'chromium', | 10 'chromium', |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 def RunSteps(api): | 37 def RunSteps(api): |
| 38 # build/tests/masters_recipes_tests.py needs to manipulate the BUILDERS | 38 # build/tests/masters_recipes_tests.py needs to manipulate the BUILDERS |
| 39 # dict, so we provide an API to dump it here. | 39 # dict, so we provide an API to dump it here. |
| 40 if api.properties.get('dump_builders'): # pragma: no cover | 40 if api.properties.get('dump_builders'): # pragma: no cover |
| 41 api.file.write( | 41 api.file.write( |
| 42 'Dump BUILDERS dict', api.properties['dump_builders'], | 42 'Dump BUILDERS dict', api.properties['dump_builders'], |
| 43 api.json.dumps(api.chromium_tests.builders, default=ignore_undumpable)) | 43 api.json.dumps(api.chromium_tests.builders, default=ignore_undumpable)) |
| 44 return | 44 return |
| 45 | 45 |
| 46 mastername = api.properties.get('mastername') | 46 mastername = api.properties['mastername'] |
| 47 buildername = api.properties.get('buildername') | 47 buildername = api.properties['buildername'] |
| 48 | 48 |
| 49 if mastername == 'tryserver.chromium.perf' and api.chromium_tests.builders[ | 49 if mastername == 'tryserver.chromium.perf' and api.chromium_tests.builders[ |
| 50 mastername]['builders'][buildername]['bot_type'] == 'tester': | 50 mastername]['builders'][buildername]['bot_type'] == 'tester': |
| 51 api.bisect_tester.upload_job_url() | 51 api.bisect_tester.upload_job_url() |
| 52 | 52 |
| 53 api.chromium_tests.configure_build(mastername, buildername) | 53 api.chromium_tests.configure_build(mastername, buildername) |
| 54 update_step, master_dict, test_spec = \ | 54 update_step, master_dict, test_spec = \ |
| 55 api.chromium_tests.prepare_checkout(mastername, buildername) | 55 api.chromium_tests.prepare_checkout(mastername, buildername) |
| 56 api.chromium_tests.compile(mastername, buildername, update_step, master_dict, | 56 api.chromium_tests.compile(mastername, buildername, update_step, master_dict, |
| 57 test_spec) | 57 test_spec, mb_mastername=mastername, |
| 58 mb_buildername=buildername) |
| 58 tests = api.chromium_tests.tests_for_builder( | 59 tests = api.chromium_tests.tests_for_builder( |
| 59 mastername, buildername, update_step, master_dict) | 60 mastername, buildername, update_step, master_dict) |
| 60 | 61 |
| 61 if not tests: | 62 if not tests: |
| 62 return | 63 return |
| 63 | 64 |
| 64 api.chromium_tests.configure_swarming('chromium', precommit=False, | 65 api.chromium_tests.configure_swarming('chromium', precommit=False, |
| 65 mastername=mastername) | 66 mastername=mastername) |
| 66 test_runner = api.chromium_tests.create_test_runner(api, tests) | 67 test_runner = api.chromium_tests.create_test_runner(api, tests) |
| 67 with api.chromium_tests.wrap_chromium_tests(mastername, tests): | 68 with api.chromium_tests.wrap_chromium_tests(mastername, tests): |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 api.test('amp_split_recipe_collect_failure') + | 728 api.test('amp_split_recipe_collect_failure') + |
| 728 api.properties( | 729 api.properties( |
| 729 mastername='chromium.fyi', | 730 mastername='chromium.fyi', |
| 730 buildername='Android Tests (amp split)', | 731 buildername='Android Tests (amp split)', |
| 731 slavename='build1-a1', | 732 slavename='build1-a1', |
| 732 buildnumber='77457', | 733 buildnumber='77457', |
| 733 parent_build_archive_url='gs://test-domain/test-archive.zip' | 734 parent_build_archive_url='gs://test-domain/test-archive.zip' |
| 734 ) + | 735 ) + |
| 735 api.override_step_data('[collect] base_unittests', retcode=1) | 736 api.override_step_data('[collect] base_unittests', retcode=1) |
| 736 ) | 737 ) |
| OLD | NEW |