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', |
12 'isolate', | 13 'isolate', |
13 'json', | 14 'json', |
14 'path', | 15 'path', |
15 'platform', | 16 'platform', |
16 'properties', | 17 'properties', |
17 'python', | 18 'python', |
18 'raw_io', | 19 'raw_io', |
19 'step', | 20 'step', |
20 'swarming', | 21 'swarming', |
21 'test_utils', | 22 'test_utils', |
22 ] | 23 ] |
23 | 24 |
| 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 |
24 | 33 |
25 def RunSteps(api): | 34 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 |
26 mastername = api.properties.get('mastername') | 43 mastername = api.properties.get('mastername') |
27 buildername = api.properties.get('buildername') | 44 buildername = api.properties.get('buildername') |
28 | 45 |
29 if mastername == 'tryserver.chromium.perf' and api.chromium_tests.builders[ | 46 if mastername == 'tryserver.chromium.perf' and api.chromium_tests.builders[ |
30 mastername]['builders'][buildername]['bot_type'] == 'tester': | 47 mastername]['builders'][buildername]['bot_type'] == 'tester': |
31 api.bisect_tester.upload_job_url() | 48 api.bisect_tester.upload_job_url() |
32 | 49 |
33 api.chromium_tests.configure_build(mastername, buildername) | 50 api.chromium_tests.configure_build(mastername, buildername) |
34 update_step, master_dict, test_spec = \ | 51 update_step, master_dict, test_spec = \ |
35 api.chromium_tests.prepare_checkout(mastername, buildername) | 52 api.chromium_tests.prepare_checkout(mastername, buildername) |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 yield ( | 542 yield ( |
526 api.test('amp_split_recipe_collect_failure') + | 543 api.test('amp_split_recipe_collect_failure') + |
527 api.properties( | 544 api.properties( |
528 mastername='chromium.fyi', | 545 mastername='chromium.fyi', |
529 buildername='Android Tests (amp split)', | 546 buildername='Android Tests (amp split)', |
530 slavename='build1-a1', | 547 slavename='build1-a1', |
531 buildnumber='77457', | 548 buildnumber='77457', |
532 parent_build_archive_url='gs://test-domain/test-archive.zip' | 549 parent_build_archive_url='gs://test-domain/test-archive.zip' |
533 ) + | 550 ) + |
534 api.override_step_data('[collect] base_unittests', retcode=1) | 551 api.override_step_data('[collect] base_unittests', retcode=1) |
535 ) | 552 ) |
OLD | NEW |