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

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

Issue 1424693002: Add swarming support for IsolatedScriptTest. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Add idempotent TODO Created 5 years, 1 month 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 DEPS = [ 5 DEPS = [
6 'adb', 6 'adb',
7 'amp', 7 'amp',
8 'bisect_tester', 8 'bisect_tester',
9 'bot_update', 9 'bot_update',
10 'chromium', 10 'chromium',
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 test += api.override_step_data('read test spec', api.json.output({ 154 test += api.override_step_data('read test spec', api.json.output({
155 b: { 155 b: {
156 'gtest_tests': [ 156 'gtest_tests': [
157 { 157 {
158 'test': 'browser_tests', 158 'test': 'browser_tests',
159 'swarming': {'can_use_on_swarming_builders': True}, 159 'swarming': {'can_use_on_swarming_builders': True},
160 }, 160 },
161 ], 161 ],
162 } for b in builders_with_tests 162 } for b in builders_with_tests
163 })) 163 }))
164
165 yield test 164 yield test
166 165
167 yield ( 166 yield (
168 api.test('dynamic_gtest') + 167 api.test('dynamic_gtest') +
169 api.properties.generic(mastername='chromium.linux', 168 api.properties.generic(mastername='chromium.linux',
170 buildername='Linux Tests', 169 buildername='Linux Tests',
171 parent_buildername='Linux Builder') + 170 parent_buildername='Linux Builder') +
172 api.platform('linux', 64) + 171 api.platform('linux', 64) +
173 api.override_step_data('read test spec', api.json.output({ 172 api.override_step_data('read test spec', api.json.output({
174 'Linux Tests': { 173 'Linux Tests': {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 'isolated_scripts': [ 225 'isolated_scripts': [
227 { 226 {
228 'isolate_name': 'telemetry_gpu_unittests', 227 'isolate_name': 'telemetry_gpu_unittests',
229 'name': 'telemetry_gpu_unittests' 228 'name': 'telemetry_gpu_unittests'
230 }, 229 },
231 ], 230 ],
232 }, 231 },
233 })) 232 }))
234 ) 233 )
235 234
236 yield ( 235 yield (
Paweł Hajdan Jr. 2015/10/26 17:00:41 Are all of these tests _strictly_ needed (i.e. we
nednguyen 2015/10/27 00:54:29 I got one test removed. The rest are needed for 10
236 api.test('build_dynamic_swarmed_isolated_script_test') +
237 api.properties.generic(mastername='chromium.linux',
238 buildername='Linux Builder') +
239 api.platform('linux', 64) +
240 api.override_step_data('read test spec', api.json.output({
241 'Linux Tests': {
242 'isolated_scripts': [
243 {
244 'isolate_name': 'telemetry_gpu_unittests',
245 'name': 'telemetry_gpu_unittests',
246 'swarming': {'can_use_on_swarming_builders': True},
247 },
248 ],
249 },
250 }))
251 )
252
253 yield (
254 api.test('dynamic_swarmed_passed_isolated_script_test') +
255 api.properties.generic(mastername='chromium.linux',
256 buildername='Linux Tests',
257 parent_buildername='Linux Builder') +
258 api.properties(swarm_hashes={
259 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
260 }) +
261 api.platform('linux', 64) +
262 api.override_step_data('read test spec', api.json.output({
263 'Linux Tests': {
264 'isolated_scripts': [
265 {
266 'isolate_name': 'telemetry_gpu_unittests',
267 'name': 'telemetry_gpu_unittests',
268 'swarming': {'can_use_on_swarming_builders': True},
269 },
270 ],
271 },
272 }))
273 )
274
275 yield (
276 api.test('dynamic_swarmed_failed_isolated_script_test') +
277 api.properties.generic(mastername='chromium.linux',
278 buildername='Linux Tests',
279 parent_buildername='Linux Builder') +
280 api.properties(swarm_hashes={
281 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
282 }) +
283 api.platform('linux', 64) +
284 api.override_step_data('read test spec', api.json.output({
285 'Linux Tests': {
286 'isolated_scripts': [
287 {
288 'isolate_name': 'telemetry_gpu_unittests',
289 'name': 'telemetry_gpu_unittests',
290 'swarming': {'can_use_on_swarming_builders': True},
291 },
292 ],
293 },
294 })) +
295 api.override_step_data('telemetry_gpu_unittests',
296 api.test_utils.canned_isolated_script_output(
297 passing=True, is_win=False, swarming=True,
298 isolated_script_passing=False, valid=True),
299 retcode=255)
300 )
301
302 yield (
303 api.test('dynamic_swarmed_passed_with_bad_retcode_isolated_script_test') +
304 api.properties.generic(mastername='chromium.linux',
305 buildername='Linux Tests',
306 parent_buildername='Linux Builder') +
307 api.properties(swarm_hashes={
308 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
309 }) +
310 api.platform('linux', 64) +
311 api.override_step_data('read test spec', api.json.output({
312 'Linux Tests': {
313 'isolated_scripts': [
314 {
315 'isolate_name': 'telemetry_gpu_unittests',
316 'name': 'telemetry_gpu_unittests',
317 'swarming': {'can_use_on_swarming_builders': True},
318 },
319 ],
320 },
321 })) +
322 api.override_step_data('telemetry_gpu_unittests',
323 api.test_utils.canned_isolated_script_output(
324 passing=True, is_win=False, swarming=True,
325 isolated_script_passing=True, valid=True),
326 retcode=255)
327 )
328
329 yield (
330 api.test(
331 'dynamic_swarmed_passed_isolated_script_test_with_swarming_failure') +
332 api.properties.generic(mastername='chromium.linux',
333 buildername='Linux Tests',
334 parent_buildername='Linux Builder') +
335 api.properties(swarm_hashes={
336 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
337 }) +
338 api.platform('linux', 64) +
339 api.override_step_data('read test spec', api.json.output({
340 'Linux Tests': {
341 'isolated_scripts': [
342 {
343 'isolate_name': 'telemetry_gpu_unittests',
344 'name': 'telemetry_gpu_unittests',
345 'swarming': {'can_use_on_swarming_builders': True},
346 },
347 ],
348 },
349 })) +
350 api.override_step_data('telemetry_gpu_unittests',
351 api.test_utils.canned_isolated_script_output(
352 passing=False, is_win=False, swarming=True,
353 swarming_internal_failure=True, isolated_script_passing=True,
354 valid=True),
355 retcode=255)
356 )
357
358 yield (
359 api.test(
360 'dynamic_swarmed_passed_isolated_script_test_with_no_swarming') +
361 api.properties.generic(mastername='chromium.linux',
362 buildername='Linux Tests',
363 parent_buildername='Linux Builder') +
364 api.properties(swarm_hashes={
365 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
366 }) +
367 api.platform('linux', 64) +
368 api.override_step_data('read test spec', api.json.output({
369 'Linux Tests': {
370 'isolated_scripts': [
371 {
372 'isolate_name': 'telemetry_gpu_unittests',
373 'name': 'telemetry_gpu_unittests',
374 'swarming': {'can_use_on_swarming_builders': True},
375 },
376 ],
377 },
378 })) +
379 api.override_step_data('telemetry_gpu_unittests',
380 api.test_utils.canned_isolated_script_output(
381 passing=True, is_win=False, swarming=False,
382 isolated_script_passing=True, valid=True),
383 retcode=255)
384 )
385
386 yield (
237 api.test('goma_with_diagnose_goma_failure') + 387 api.test('goma_with_diagnose_goma_failure') +
238 api.properties.generic(mastername='chromium.fyi', 388 api.properties.generic(mastername='chromium.fyi',
239 buildername='CrWinGoma') + 389 buildername='CrWinGoma') +
240 api.step_data('diagnose_goma', retcode=1) 390 api.step_data('diagnose_goma', retcode=1)
241 ) 391 )
242 392
243 yield ( 393 yield (
244 api.test('dynamic_gtest_on_builder') + 394 api.test('dynamic_gtest_on_builder') +
245 api.properties.generic(mastername='chromium.linux', 395 api.properties.generic(mastername='chromium.linux',
246 buildername='Linux Builder') + 396 buildername='Linux Builder') +
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 api.test('amp_split_recipe_collect_failure') + 734 api.test('amp_split_recipe_collect_failure') +
585 api.properties( 735 api.properties(
586 mastername='chromium.fyi', 736 mastername='chromium.fyi',
587 buildername='Android Tests (amp split)', 737 buildername='Android Tests (amp split)',
588 slavename='build1-a1', 738 slavename='build1-a1',
589 buildnumber='77457', 739 buildnumber='77457',
590 parent_build_archive_url='gs://test-domain/test-archive.zip' 740 parent_build_archive_url='gs://test-domain/test-archive.zip'
591 ) + 741 ) +
592 api.override_step_data('[collect] base_unittests', retcode=1) 742 api.override_step_data('[collect] base_unittests', retcode=1)
593 ) 743 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698