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