| 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 'chromium', | 9 'chromium', |
| 10 'chromium_android', | 10 'chromium_android', |
| 11 'chromium_tests', | 11 'chromium_tests', |
| 12 'file', | |
| 13 'isolate', | 12 'isolate', |
| 14 'json', | 13 'json', |
| 15 'path', | 14 'path', |
| 16 'platform', | 15 'platform', |
| 17 'properties', | 16 'properties', |
| 18 'python', | 17 'python', |
| 19 'raw_io', | 18 'raw_io', |
| 20 'step', | 19 'step', |
| 21 'swarming', | 20 'swarming', |
| 22 'test_utils', | 21 'test_utils', |
| 23 ] | 22 ] |
| 24 | 23 |
| 25 from recipe_engine import config_types | |
| 26 | |
| 27 def ignore_undumpable(obj): # pragma: no cover | |
| 28 try: | |
| 29 return config_types.json_fixup(obj) | |
| 30 except TypeError: | |
| 31 return None | |
| 32 | |
| 33 | 24 |
| 34 def RunSteps(api): | 25 def RunSteps(api): |
| 35 # build/tests/masters_recipes_tests.py needs to manipulate the BUILDERS | |
| 36 # dict, so we provide an API to dump it here. | |
| 37 if api.properties.get('dump_builders'): # pragma: no cover | |
| 38 api.file.write( | |
| 39 'Dump BUILDERS dict', api.properties['dump_builders'], | |
| 40 api.json.dumps(api.chromium_tests.builders, default=ignore_undumpable)) | |
| 41 return | |
| 42 | |
| 43 mastername = api.properties.get('mastername') | 26 mastername = api.properties.get('mastername') |
| 44 buildername = api.properties.get('buildername') | 27 buildername = api.properties.get('buildername') |
| 45 | 28 |
| 46 if mastername == 'tryserver.chromium.perf' and api.chromium_tests.builders[ | 29 if mastername == 'tryserver.chromium.perf' and api.chromium_tests.builders[ |
| 47 mastername]['builders'][buildername]['bot_type'] == 'tester': | 30 mastername]['builders'][buildername]['bot_type'] == 'tester': |
| 48 api.bisect_tester.upload_job_url() | 31 api.bisect_tester.upload_job_url() |
| 49 | 32 |
| 50 api.chromium_tests.configure_build(mastername, buildername) | 33 api.chromium_tests.configure_build(mastername, buildername) |
| 51 update_step, master_dict, test_spec = \ | 34 update_step, master_dict, test_spec = \ |
| 52 api.chromium_tests.prepare_checkout(mastername, buildername) | 35 api.chromium_tests.prepare_checkout(mastername, buildername) |
| (...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 yield ( | 525 yield ( |
| 543 api.test('amp_split_recipe_collect_failure') + | 526 api.test('amp_split_recipe_collect_failure') + |
| 544 api.properties( | 527 api.properties( |
| 545 mastername='chromium.fyi', | 528 mastername='chromium.fyi', |
| 546 buildername='Android Tests (amp split)', | 529 buildername='Android Tests (amp split)', |
| 547 slavename='build1-a1', | 530 slavename='build1-a1', |
| 548 buildnumber='77457', | 531 buildnumber='77457', |
| 549 parent_build_archive_url='gs://test-domain/test-archive.zip' | 532 parent_build_archive_url='gs://test-domain/test-archive.zip' |
| 550 ) + | 533 ) + |
| 551 api.override_step_data('[collect] base_unittests', retcode=1) | 534 api.override_step_data('[collect] base_unittests', retcode=1) |
| 552 ) | 535 ) |
| OLD | NEW |