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

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

Issue 1694383003: build: Bot_update refactor recipe roll (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Disable for cronet and swarming Created 4 years, 10 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 staging recipe: runs tests for HEAD of chromium using HEAD of 5 """Swarming staging recipe: runs tests for HEAD of chromium using HEAD of
6 swarming_client toolset on Swarming staging server instances 6 swarming_client toolset on Swarming staging server instances
7 (*-dev.appspot.com). 7 (*-dev.appspot.com).
8 8
9 Intended to catch bugs in swarming_client and Swarming servers early on, before 9 Intended to catch bugs in swarming_client and Swarming servers early on, before
10 full roll out. 10 full roll out.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 if api.properties.get('platform') == 'android': 70 if api.properties.get('platform') == 'android':
71 api.gclient.apply_config('android') 71 api.gclient.apply_config('android')
72 api.gclient.c.solutions[0].custom_vars['swarming_revision'] = '' 72 api.gclient.c.solutions[0].custom_vars['swarming_revision'] = ''
73 api.gclient.c.revisions['src/tools/swarming_client'] = 'HEAD' 73 api.gclient.c.revisions['src/tools/swarming_client'] = 'HEAD'
74 74
75 # Enable test isolation. Modifies GYP_DEFINES used in 'runhooks' below. 75 # Enable test isolation. Modifies GYP_DEFINES used in 'runhooks' below.
76 api.isolate.set_isolate_environment(api.chromium.c) 76 api.isolate.set_isolate_environment(api.chromium.c)
77 77
78 api.chromium.cleanup_temp() 78 api.chromium.cleanup_temp()
79 # Checkout chromium + deps (including 'master' of swarming_client). 79 # Checkout chromium + deps (including 'master' of swarming_client).
80 step_result = api.bot_update.ensure_checkout() 80 api.gclient.checkout()
81 if not step_result.json.output['did_run']:
82 api.gclient.checkout()
83 81
84 # Ensure swarming_client version is fresh enough. 82 # Ensure swarming_client version is fresh enough.
85 api.swarming.check_client_version() 83 api.swarming.check_client_version()
86 84
87 targets = ['chromium_swarm_tests'] 85 targets = ['chromium_swarm_tests']
88 if api.properties.get('platform') == 'android': 86 if api.properties.get('platform') == 'android':
89 targets = [ 87 targets = [
90 'android_webview_test_apk_run', 88 'android_webview_test_apk_run',
91 'android_webview_unittests_apk_run', 89 'android_webview_unittests_apk_run',
92 'base_unittests_apk_run', 90 'base_unittests_apk_run',
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 api.test('android') + 220 api.test('android') +
223 api.platform.name('linux') + 221 api.platform.name('linux') +
224 api.properties.scheduled() + 222 api.properties.scheduled() +
225 api.properties(configuration='Release', platform='android') + 223 api.properties(configuration='Release', platform='android') +
226 api.override_step_data( 224 api.override_step_data(
227 'isolate tests', 225 'isolate tests',
228 api.isolate.output_json(targets=[ 226 api.isolate.output_json(targets=[
229 'dummy_target_1', 'dummy_target_2', 'chrome_public_test_apk']) 227 'dummy_target_1', 'dummy_target_2', 'chrome_public_test_apk'])
230 ) 228 )
231 ) 229 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698