OLD | NEW |
---|---|
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 'depot_tools/bot_update', | 6 'depot_tools/bot_update', |
7 'chromium', | 7 'chromium', |
8 'depot_tools/gclient', | 8 'depot_tools/gclient', |
9 'depot_tools/infra_paths', | |
9 'recipe_engine/json', | 10 'recipe_engine/json', |
10 'recipe_engine/path', | 11 'recipe_engine/path', |
11 'recipe_engine/properties', | 12 'recipe_engine/properties', |
12 'recipe_engine/python', | 13 'recipe_engine/python', |
13 'recipe_engine/step', | 14 'recipe_engine/step', |
14 ] | 15 ] |
15 | 16 |
16 def Win7_Audio_steps(api): | 17 def Win7_Audio_steps(api): |
17 build_properties = api.properties.legacy() | 18 build_properties = api.properties.legacy() |
18 # svnkill step; not necessary in recipes | 19 # svnkill step; not necessary in recipes |
19 # update scripts step; implicitly run by recipe engine. | 20 # update scripts step; implicitly run by recipe engine. |
20 # taskkill step | 21 # taskkill step |
21 api.python("taskkill", api.path["build"].join("scripts", "slave", | 22 api.python("taskkill", api.infra_paths['build'].join("scripts", "slave", |
22 "kill_processes.py")) | 23 "kill_processes.py")) |
23 # bot_update step | 24 # bot_update step |
24 src_cfg = api.gclient.make_config(GIT_MODE=True) | 25 src_cfg = api.gclient.make_config(GIT_MODE=True) |
25 soln = src_cfg.solutions.add() | 26 soln = src_cfg.solutions.add() |
26 soln.name = "src" | 27 soln.name = "src" |
27 soln.url = "https://chromium.googlesource.com/chromium/src.git" | 28 soln.url = "https://chromium.googlesource.com/chromium/src.git" |
28 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} | 29 soln.custom_deps = {'src/third_party/WebKit/LayoutTests': None} |
29 soln = src_cfg.solutions.add() | 30 soln = src_cfg.solutions.add() |
30 soln.name = "src-internal" | 31 soln.name = "src-internal" |
31 soln.url = "svn://svn.chromium.org/chrome-internal/trunk/src-internal" | 32 soln.url = "svn://svn.chromium.org/chrome-internal/trunk/src-internal" |
(...skipping 19 matching lines...) Expand all Loading... | |
51 api.gclient.c = src_cfg | 52 api.gclient.c = src_cfg |
52 result = api.bot_update.ensure_checkout(force=True) | 53 result = api.bot_update.ensure_checkout(force=True) |
53 build_properties.update(result.json.output.get("properties", {})) | 54 build_properties.update(result.json.output.get("properties", {})) |
54 # gclient revert step; made unnecessary by bot_update | 55 # gclient revert step; made unnecessary by bot_update |
55 # gclient update step; made unnecessary by bot_update | 56 # gclient update step; made unnecessary by bot_update |
56 # gclient runhooks wrapper step | 57 # gclient runhooks wrapper step |
57 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', | 58 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', 'LANDMINES_VERBOSE': '1', |
58 'DEPOT_TOOLS_UPDATE': '0', | 59 'DEPOT_TOOLS_UPDATE': '0', |
59 'GYP_DEFINES': 'fastbuild=1 component=static_library'} | 60 'GYP_DEFINES': 'fastbuild=1 component=static_library'} |
60 api.python("gclient runhooks wrapper", | 61 api.python("gclient runhooks wrapper", |
61 api.path["build"].join("scripts", "slave", "runhooks_wrapper.py"), | 62 api.infra_paths['build'].join("scripts", "slave", "runhooks_wrapper.py"), |
62 env=env) | 63 env=env) |
63 # cleanup_temp step | 64 # cleanup_temp step |
64 api.chromium.cleanup_temp() | 65 api.chromium.cleanup_temp() |
65 # compile.py step | 66 # compile.py step |
66 args = ['--solution', 'all.sln', '--project', 'chromium_builder_tests', | 67 args = ['--solution', 'all.sln', '--project', 'chromium_builder_tests', |
67 '--target', 'Release'] | 68 '--target', 'Release'] |
68 # buildbot sets 'clobber' to the empty string which is falsey, check with 'in' | 69 # buildbot sets 'clobber' to the empty string which is falsey, check with 'in' |
69 if 'clobber' in api.properties: | 70 if 'clobber' in api.properties: |
70 args.append("--clobber") | 71 args.append("--clobber") |
71 api.step("compile", ["python_slave", | 72 api.step("compile", ["python_slave", |
72 api.path["build"].join("scripts", "slave", "compile.py")] + args) | 73 api.infra_paths['build'].join("scripts", "slave", "compile.py")] + args) |
73 # runtest step | 74 # runtest step |
74 api.step("content_unittests", | 75 api.step("content_unittests", |
75 ["python_slave", api.path["build"].join("scripts", "slave", "runtest.py"), | 76 ["python_slave", api.infra_paths['build'].join("scripts", "slave", "runtes t.py"), |
Sergiy Byelozyorov
2016/04/26 14:41:05
nit: long line
| |
76 '--target', 'Release', | 77 '--target', 'Release', |
77 "--build-properties=%s" % api.json.dumps(build_properties, | 78 "--build-properties=%s" % api.json.dumps(build_properties, |
78 separators=(',', ':')), | 79 separators=(',', ':')), |
79 '--factory-properties={"blink_config":"chromium","gclient_env":{"CHROM'+\ | 80 '--factory-properties={"blink_config":"chromium","gclient_env":{"CHROM'+\ |
80 'IUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEFINES":"fas'+\ | 81 'IUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEFINES":"fas'+\ |
81 'tbuild=1 component=static_library","LANDMINES_VERBOSE":"1"},"generate'+\ | 82 'tbuild=1 component=static_library","LANDMINES_VERBOSE":"1"},"generate'+\ |
82 '_gtest_json":true,"test_results_server":"test-results.appspot.com"}', | 83 '_gtest_json":true,"test_results_server":"test-results.appspot.com"}', |
83 '--annotate=gtest', '--test-type', 'content_unittests', | 84 '--annotate=gtest', '--test-type', 'content_unittests', |
84 '--generate-json-file', '-o', 'gtest-results/content_unittests', | 85 '--generate-json-file', '-o', 'gtest-results/content_unittests', |
85 '--build-number', api.properties["buildnumber"], '--builder-name', | 86 '--build-number', api.properties["buildnumber"], '--builder-name', |
86 api.properties["buildername"], 'content_unittests.exe', | 87 api.properties["buildername"], 'content_unittests.exe', |
87 '--gtest_print_time']) | 88 '--gtest_print_time']) |
88 # runtest step | 89 # runtest step |
89 api.step("media_unittests", | 90 api.step("media_unittests", |
90 ["python_slave", api.path["build"].join("scripts", "slave", "runtest.py"), | 91 ["python_slave", api.infra_paths['build'].join("scripts", "slave", "runtes t.py"), |
Sergiy Byelozyorov
2016/04/26 14:41:05
nit: long line
| |
91 '--target', 'Release', | 92 '--target', 'Release', |
92 "--build-properties=%s" % api.json.dumps(build_properties, | 93 "--build-properties=%s" % api.json.dumps(build_properties, |
93 separators=(',', ':')), | 94 separators=(',', ':')), |
94 '--factory-properties={"blink_config":"chromium","gclient_env":{"CHROM'+\ | 95 '--factory-properties={"blink_config":"chromium","gclient_env":{"CHROM'+\ |
95 'IUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEFINES":"fas'+\ | 96 'IUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEFINES":"fas'+\ |
96 'tbuild=1 component=static_library","LANDMINES_VERBOSE":"1"},"generate'+\ | 97 'tbuild=1 component=static_library","LANDMINES_VERBOSE":"1"},"generate'+\ |
97 '_gtest_json":true,"test_results_server":"test-results.appspot.com"}', | 98 '_gtest_json":true,"test_results_server":"test-results.appspot.com"}', |
98 '--annotate=gtest', '--test-type', 'media_unittests', | 99 '--annotate=gtest', '--test-type', 'media_unittests', |
99 '--generate-json-file', '-o', 'gtest-results/media_unittests', | 100 '--generate-json-file', '-o', 'gtest-results/media_unittests', |
100 '--build-number', api.properties["buildnumber"], '--builder-name', | 101 '--build-number', api.properties["buildnumber"], '--builder-name', |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 result = api.bot_update.ensure_checkout(force=True) | 138 result = api.bot_update.ensure_checkout(force=True) |
138 build_properties.update(result.json.output.get("properties", {})) | 139 build_properties.update(result.json.output.get("properties", {})) |
139 # gclient revert step; made unnecessary by bot_update | 140 # gclient revert step; made unnecessary by bot_update |
140 # gclient update step; made unnecessary by bot_update | 141 # gclient update step; made unnecessary by bot_update |
141 # gclient runhooks wrapper step | 142 # gclient runhooks wrapper step |
142 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', | 143 env = {'CHROMIUM_GYP_SYNTAX_CHECK': '1', |
143 'LANDMINES_VERBOSE': '1', | 144 'LANDMINES_VERBOSE': '1', |
144 'DEPOT_TOOLS_UPDATE': '0', | 145 'DEPOT_TOOLS_UPDATE': '0', |
145 'GYP_DEFINES': ' component=static_library'} | 146 'GYP_DEFINES': ' component=static_library'} |
146 api.python("gclient runhooks wrapper", | 147 api.python("gclient runhooks wrapper", |
147 api.path["build"].join("scripts", "slave", "runhooks_wrapper.py"), | 148 api.infra_paths['build'].join("scripts", "slave", "runhooks_wrapper.py"), |
148 env=env) | 149 env=env) |
149 # cleanup_temp step | 150 # cleanup_temp step |
150 api.chromium.cleanup_temp() | 151 api.chromium.cleanup_temp() |
151 # compile.py step | 152 # compile.py step |
152 args = ['--target', 'Release', 'content_unittests', 'media_unittests'] | 153 args = ['--target', 'Release', 'content_unittests', 'media_unittests'] |
153 | 154 |
154 # buildbot sets 'clobber' to the empty string which is falsey, check with 'in' | 155 # buildbot sets 'clobber' to the empty string which is falsey, check with 'in' |
155 if 'clobber' in api.properties: | 156 if 'clobber' in api.properties: |
156 args.append("--clobber") | 157 args.append("--clobber") |
157 api.python("compile", | 158 api.python("compile", |
158 api.path["build"].join("scripts", "slave", "compile.py"), args=args) | 159 api.infra_paths['build'].join("scripts", "slave", "compile.py"), args=args ) |
Sergiy Byelozyorov
2016/04/26 14:41:05
nit: long line
| |
159 # runtest step | 160 # runtest step |
160 api.python("content_unittests", | 161 api.python("content_unittests", |
161 api.path["build"].join("scripts", "slave","runtest.py"), | 162 api.infra_paths['build'].join("scripts", "slave","runtest.py"), |
162 args=['--target', 'Release', | 163 args=['--target', 'Release', |
163 "--build-properties=%s" % api.json.dumps(build_properties, | 164 "--build-properties=%s" % api.json.dumps(build_properties, |
164 separators=(',', ':')), | 165 separators=(',', ':')), |
165 '--factory-properties={"blink_config":"chromium","gclient_env":{"CHRO'+\ | 166 '--factory-properties={"blink_config":"chromium","gclient_env":{"CHRO'+\ |
166 'MIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEFINES":" '+\ | 167 'MIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEFINES":" '+\ |
167 'component=static_library","LANDMINES_VERBOSE":"1"},"generate_gtest_j'+\ | 168 'component=static_library","LANDMINES_VERBOSE":"1"},"generate_gtest_j'+\ |
168 'son":true,"test_results_server":"test-results.appspot.com"}', | 169 'son":true,"test_results_server":"test-results.appspot.com"}', |
169 '--annotate=gtest', '--test-type', 'content_unittests', | 170 '--annotate=gtest', '--test-type', 'content_unittests', |
170 '--generate-json-file', '-o', 'gtest-results/content_unittests', | 171 '--generate-json-file', '-o', 'gtest-results/content_unittests', |
171 '--build-number', api.properties["buildnumber"], '--builder-name', | 172 '--build-number', api.properties["buildnumber"], '--builder-name', |
172 api.properties["buildername"], 'content_unittests', | 173 api.properties["buildername"], 'content_unittests', |
173 '--gtest_print_time']) | 174 '--gtest_print_time']) |
174 # runtest step | 175 # runtest step |
175 api.python("media_unittests", | 176 api.python("media_unittests", |
176 api.path["build"].join("scripts", "slave","runtest.py"), | 177 api.infra_paths['build'].join("scripts", "slave","runtest.py"), |
177 args=['--target', 'Release', | 178 args=['--target', 'Release', |
178 "--build-properties=%s" % api.json.dumps(build_properties, | 179 "--build-properties=%s" % api.json.dumps(build_properties, |
179 separators=(',', ':')), | 180 separators=(',', ':')), |
180 '--factory-properties={"blink_config":"chromium","gclient_env":{"CHRO'+\ | 181 '--factory-properties={"blink_config":"chromium","gclient_env":{"CHRO'+\ |
181 'MIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEFINES":" '+\ | 182 'MIUM_GYP_SYNTAX_CHECK":"1","DEPOT_TOOLS_UPDATE":"0","GYP_DEFINES":" '+\ |
182 'component=static_library","LANDMINES_VERBOSE":"1"},"generate_gtest_j'+\ | 183 'component=static_library","LANDMINES_VERBOSE":"1"},"generate_gtest_j'+\ |
183 'son":true,"test_results_server":"test-results.appspot.com"}', | 184 'son":true,"test_results_server":"test-results.appspot.com"}', |
184 '--annotate=gtest', '--test-type', 'media_unittests', | 185 '--annotate=gtest', '--test-type', 'media_unittests', |
185 '--generate-json-file', '-o', 'gtest-results/media_unittests', | 186 '--generate-json-file', '-o', 'gtest-results/media_unittests', |
186 '--build-number', api.properties["buildnumber"], '--builder-name', | 187 '--build-number', api.properties["buildnumber"], '--builder-name', |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 api.properties(buildername='Linux Audio') + | 225 api.properties(buildername='Linux Audio') + |
225 api.properties(slavename='TestSlave') + | 226 api.properties(slavename='TestSlave') + |
226 api.properties(buildnumber=42) + | 227 api.properties(buildnumber=42) + |
227 api.properties(clobber=True) | 228 api.properties(clobber=True) |
228 ) | 229 ) |
229 yield (api.test('builder_not_in_dispatch_directory') + | 230 yield (api.test('builder_not_in_dispatch_directory') + |
230 api.properties(mastername='chromium.gpu.fyi') + | 231 api.properties(mastername='chromium.gpu.fyi') + |
231 api.properties(buildername='nonexistent_builder') + | 232 api.properties(buildername='nonexistent_builder') + |
232 api.properties(slavename='TestSlave') | 233 api.properties(slavename='TestSlave') |
233 ) | 234 ) |
OLD | NEW |