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

Side by Side Diff: scripts/slave/recipes/chromium_trybot.py

Issue 2147913002: webrtc: drop dependency on chromium_tests; extract chromium_swarming (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
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 import collections 5 import collections
6 6
7 from recipe_engine.types import freeze 7 from recipe_engine.types import freeze
8 8
9 DEPS = [ 9 DEPS = [
10 'depot_tools/bot_update', 10 'depot_tools/bot_update',
11 'chromium', 11 'chromium',
12 'chromium_android', 12 'chromium_android',
13 'chromium_swarming',
13 'chromium_tests', 14 'chromium_tests',
14 'commit_position', 15 'commit_position',
15 'file', 16 'file',
16 'depot_tools/gclient', 17 'depot_tools/gclient',
17 'isolate', 18 'isolate',
18 'recipe_engine/json', 19 'recipe_engine/json',
19 'recipe_engine/path', 20 'recipe_engine/path',
20 'recipe_engine/platform', 21 'recipe_engine/platform',
21 'recipe_engine/properties', 22 'recipe_engine/properties',
22 'recipe_engine/python', 23 'recipe_engine/python',
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 mastername = api.properties.get('mastername') 102 mastername = api.properties.get('mastername')
102 buildername = api.properties.get('buildername') 103 buildername = api.properties.get('buildername')
103 bot_config = _get_bot_config(mastername, buildername) 104 bot_config = _get_bot_config(mastername, buildername)
104 105
105 bot_config_object = api.chromium_tests.create_generalized_bot_config_object( 106 bot_config_object = api.chromium_tests.create_generalized_bot_config_object(
106 bot_config['bot_ids']) 107 bot_config['bot_ids'])
107 api.chromium_tests.set_precommit_mode() 108 api.chromium_tests.set_precommit_mode()
108 api.chromium_tests.configure_build( 109 api.chromium_tests.configure_build(
109 bot_config_object, override_bot_type='builder_tester') 110 bot_config_object, override_bot_type='builder_tester')
110 111
111 api.chromium_tests.configure_swarming('chromium', precommit=True) 112 api.chromium_swarming.configure_swarming('chromium', precommit=True)
112 113
113 api.chromium.apply_config('trybot_flavor') 114 api.chromium.apply_config('trybot_flavor')
114 115
115 if api.properties.get('patch_project') == 'blink': # pragma: no cover 116 if api.properties.get('patch_project') == 'blink': # pragma: no cover
116 raise Exception('CLs which use blink project are not supported. ' 117 raise Exception('CLs which use blink project are not supported. '
117 'Please re-create the CL using fresh checkout after ' 118 'Please re-create the CL using fresh checkout after '
118 'the blink merge.') 119 'the blink merge.')
119 120
120 bot_update_step, bot_db = api.chromium_tests.prepare_checkout( 121 bot_update_step, bot_db = api.chromium_tests.prepare_checkout(
121 bot_config_object) 122 bot_config_object)
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 props(mastername='tryserver.v8', 944 props(mastername='tryserver.v8',
944 buildername='v8_linux_blink_rel', 945 buildername='v8_linux_blink_rel',
945 patch_project='v8') + 946 patch_project='v8') +
946 api.platform.name('linux') + 947 api.platform.name('linux') +
947 suppress_analyze(more_exclusions=['v8/f.*']) + 948 suppress_analyze(more_exclusions=['v8/f.*']) +
948 api.override_step_data('webkit_tests (with patch)', 949 api.override_step_data('webkit_tests (with patch)',
949 api.test_utils.canned_test_output(passing=False)) + 950 api.test_utils.canned_test_output(passing=False)) +
950 api.override_step_data('webkit_tests (without patch)', 951 api.override_step_data('webkit_tests (without patch)',
951 api.test_utils.canned_test_output(passing=True, minimal=True)) 952 api.test_utils.canned_test_output(passing=True, minimal=True))
952 ) 953 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698