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

Side by Side Diff: scripts/slave/recipe_modules/ios/example.py

Issue 2245303004: Interpret collected iOS Swarming task results (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 'ios', 6 'ios',
7 'recipe_engine/json', 7 'recipe_engine/json',
8 'recipe_engine/platform', 8 'recipe_engine/platform',
9 'recipe_engine/properties', 9 'recipe_engine/properties',
10 'recipe_engine/raw_io', 10 'recipe_engine/raw_io',
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 'app': 'fake test', 136 'app': 'fake test',
137 'device type': 'fake device', 137 'device type': 'fake device',
138 'os': '8.1', 138 'os': '8.1',
139 }, 139 },
140 ], 140 ],
141 }) 141 })
142 + api.step_data( 142 + api.step_data(
143 'bootstrap swarming.swarming.py --version', 143 'bootstrap swarming.swarming.py --version',
144 stdout=api.raw_io.output('1.2.3'), 144 stdout=api.raw_io.output('1.2.3'),
145 ) 145 )
146 + api.step_data( 146 + api.override_step_data(
147 'fake test (fake device iOS 8.1) on Mac', 147 'fake test (fake device iOS 8.1) on Mac',
148 api.json.output({
149 'shards': [{
150 'exit_codes': [1],
151 'state': 112,
152 }],
153 }),
148 retcode=1, 154 retcode=1,
149 ) 155 )
150 ) 156 )
157
158 yield (
159 api.test('infra_failure')
160 + api.platform('mac', 64)
161 + api.properties(
162 buildername='ios',
163 buildnumber='0',
164 mastername='chromium.fake',
165 slavename='fake-vm',
166 )
167 + api.ios.make_test_build_config({
168 'xcode version': '6.1.1',
169 'GYP_DEFINES': {
170 },
171 'compiler': 'xcodebuild',
172 'configuration': 'Debug',
173 'sdk': 'iphonesimulator8.1',
174 'tests': [
175 {
176 'app': 'fake test',
177 'device type': 'fake device',
178 'os': '8.1',
179 },
180 ],
181 })
182 + api.step_data(
183 'bootstrap swarming.swarming.py --version',
184 stdout=api.raw_io.output('1.2.3'),
185 )
186 + api.override_step_data(
187 'fake test (fake device iOS 8.1) on Mac',
188 api.json.output({
189 'shards': [{
190 'exit_codes': [2],
191 'state': 112,
192 }],
193 }),
194 retcode=1,
195 )
196 )
197
198 yield (
199 api.test('timed_out')
200 + api.platform('mac', 64)
201 + api.properties(
202 buildername='ios',
203 buildnumber='0',
204 mastername='chromium.fake',
205 slavename='fake-vm',
206 )
207 + api.ios.make_test_build_config({
208 'xcode version': '6.1.1',
209 'GYP_DEFINES': {
210 },
211 'compiler': 'xcodebuild',
212 'configuration': 'Debug',
213 'sdk': 'iphonesimulator8.1',
214 'tests': [
215 {
216 'app': 'fake test',
217 'device type': 'fake device',
218 'os': '8.1',
219 },
220 ],
221 })
222 + api.step_data(
223 'bootstrap swarming.swarming.py --version',
224 stdout=api.raw_io.output('1.2.3'),
225 )
226 + api.override_step_data(
227 'fake test (fake device iOS 8.1) on Mac',
228 api.json.output({
229 'shards': [{
230 'state': 64,
231 }],
232 }),
233 retcode=1,
234 )
235 )
236
237 yield (
238 api.test('expired')
239 + api.platform('mac', 64)
240 + api.properties(
241 buildername='ios',
242 buildnumber='0',
243 mastername='chromium.fake',
244 slavename='fake-vm',
245 )
246 + api.ios.make_test_build_config({
247 'xcode version': '6.1.1',
248 'GYP_DEFINES': {
249 },
250 'compiler': 'xcodebuild',
251 'configuration': 'Debug',
252 'sdk': 'iphonesimulator8.1',
253 'tests': [
254 {
255 'app': 'fake test',
256 'device type': 'fake device',
257 'os': '8.1',
258 },
259 ],
260 })
261 + api.step_data(
262 'bootstrap swarming.swarming.py --version',
263 stdout=api.raw_io.output('1.2.3'),
264 )
265 + api.override_step_data(
266 'fake test (fake device iOS 8.1) on Mac',
267 api.json.output({
268 'shards': [{
269 'state': 48,
270 }],
271 }),
272 retcode=1,
273 )
274 )
275
276 yield (
277 api.test('no_exit_code')
278 + api.platform('mac', 64)
279 + api.properties(
280 buildername='ios',
281 buildnumber='0',
282 mastername='chromium.fake',
283 slavename='fake-vm',
284 )
285 + api.ios.make_test_build_config({
286 'xcode version': '6.1.1',
287 'GYP_DEFINES': {
288 },
289 'compiler': 'xcodebuild',
290 'configuration': 'Debug',
291 'sdk': 'iphonesimulator8.1',
292 'tests': [
293 {
294 'app': 'fake test',
295 'device type': 'fake device',
296 'os': '8.1',
297 },
298 ],
299 })
300 + api.step_data(
301 'bootstrap swarming.swarming.py --version',
302 stdout=api.raw_io.output('1.2.3'),
303 )
304 + api.override_step_data(
305 'fake test (fake device iOS 8.1) on Mac',
306 api.json.output({
307 'shards': [{
308 'state': 112,
309 }],
310 }),
311 retcode=1,
312 )
313 )
151 314
152 yield ( 315 yield (
153 api.test('clobber') 316 api.test('clobber')
154 + api.platform('mac', 64) 317 + api.platform('mac', 64)
155 + api.properties( 318 + api.properties(
156 buildername='ios', 319 buildername='ios',
157 buildnumber='0', 320 buildnumber='0',
158 clobber=True, 321 clobber=True,
159 mastername='chromium.fake', 322 mastername='chromium.fake',
160 slavename='fake-vm', 323 slavename='fake-vm',
161 ) 324 )
162 + api.ios.make_test_build_config({ 325 + api.ios.make_test_build_config({
163 'xcode version': '6.1.1', 326 'xcode version': '6.1.1',
164 'GYP_DEFINES': { 327 'GYP_DEFINES': {
165 }, 328 },
166 'compiler': 'xcodebuild', 329 'compiler': 'xcodebuild',
167 'configuration': 'Debug', 330 'configuration': 'Debug',
168 'sdk': 'iphonesimulator8.1', 331 'sdk': 'iphonesimulator8.1',
169 'tests': [ 332 'tests': [
170 ], 333 ],
171 }) 334 })
172 + api.step_data( 335 + api.step_data(
173 'bootstrap swarming.swarming.py --version', 336 'bootstrap swarming.swarming.py --version',
174 stdout=api.raw_io.output('1.2.3'), 337 stdout=api.raw_io.output('1.2.3'),
175 ) 338 )
176 ) 339 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698