| 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 """Swarming canary recipe: runs tests for HEAD of chromium using HEAD of | 5 """Swarming canary recipe: runs tests for HEAD of chromium using HEAD of |
| 6 swarming_client toolset on Swarming canary server instances (*-dev.appspot.com). | 6 swarming_client toolset on Swarming canary server instances (*-dev.appspot.com). |
| 7 | 7 |
| 8 Intended to catch bugs in swarming_client and Swarming servers early on, before | 8 Intended to catch bugs in swarming_client and Swarming servers early on, before |
| 9 full roll out. | 9 full roll out. |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 if not step_result.json.output['did_run']: | 54 if not step_result.json.output['did_run']: |
| 55 api.gclient.checkout() | 55 api.gclient.checkout() |
| 56 | 56 |
| 57 # Ensure swarming_client version is fresh enough. | 57 # Ensure swarming_client version is fresh enough. |
| 58 api.swarming.check_client_version() | 58 api.swarming.check_client_version() |
| 59 | 59 |
| 60 # Build all supported tests, isolate them to the server. Set ISOLATE_DEBUG so | 60 # Build all supported tests, isolate them to the server. Set ISOLATE_DEBUG so |
| 61 # that isolate scripts invoked by ninja produce more information. Corresponds | 61 # that isolate scripts invoked by ninja produce more information. Corresponds |
| 62 # to --profile flag. | 62 # to --profile flag. |
| 63 api.chromium.runhooks() | 63 api.chromium.runhooks() |
| 64 api.isolate.clean_isolated_files(api.chromium.output_dir) |
| 64 api.chromium.compile( | 65 api.chromium.compile( |
| 65 targets=['chromium_swarm_tests'], env={'ISOLATE_DEBUG': 1}) | 66 targets=['chromium_swarm_tests'], env={'ISOLATE_DEBUG': 1}) |
| 66 | 67 |
| 67 # Gather hashes of all isolated tests. | 68 # Gather hashes of all isolated tests. |
| 68 api.isolate.find_isolated_tests(api.chromium.output_dir) | 69 api.isolate.find_isolated_tests(api.chromium.output_dir) |
| 69 | 70 |
| 70 # Make swarming tasks that run isolated tests. | 71 # Make swarming tasks that run isolated tests. |
| 71 tasks = [ | 72 tasks = [ |
| 72 api.swarming.gtest_task( | 73 api.swarming.gtest_task( |
| 73 test, | 74 test, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 97 | 98 |
| 98 def GenTests(api): | 99 def GenTests(api): |
| 99 for platform in ('linux', 'win', 'mac'): | 100 for platform in ('linux', 'win', 'mac'): |
| 100 for configuration in ('Debug', 'Release'): | 101 for configuration in ('Debug', 'Release'): |
| 101 yield ( | 102 yield ( |
| 102 api.test('%s_%s' % (platform, configuration)) + | 103 api.test('%s_%s' % (platform, configuration)) + |
| 103 api.platform.name(platform) + | 104 api.platform.name(platform) + |
| 104 api.properties.scheduled() + | 105 api.properties.scheduled() + |
| 105 api.properties(configuration=configuration) | 106 api.properties(configuration=configuration) |
| 106 ) | 107 ) |
| OLD | NEW |