Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(862)

Side by Side Diff: scripts/slave/recipes/swarming/canary.py

Issue 620703002: Add isolate.clean_isolated_files and use in all related recipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698