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

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

Issue 2073923002: Support sharding for swarmed isolated script tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Explicitly handle missing shards' output. Created 4 years, 6 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 DEPS = [ 5 DEPS = [
6 'adb', 6 'adb',
7 'amp', 7 'amp',
8 'bisect_tester', 8 'bisect_tester',
9 'depot_tools/bot_update', 9 'depot_tools/bot_update',
10 'chromium', 10 'chromium',
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 'isolate_name': 'telemetry_gpu_unittests', 380 'isolate_name': 'telemetry_gpu_unittests',
381 'name': 'telemetry_gpu_unittests', 381 'name': 'telemetry_gpu_unittests',
382 'swarming': {'can_use_on_swarming_builders': True}, 382 'swarming': {'can_use_on_swarming_builders': True},
383 }, 383 },
384 ], 384 ],
385 }, 385 },
386 })) 386 }))
387 ) 387 )
388 388
389 yield ( 389 yield (
390 api.test('dynamic_swarmed_sharded_passed_isolated_script_test') +
391 api.properties.generic(mastername='chromium.linux',
392 buildername='Linux Tests',
393 parent_buildername='Linux Builder') +
394 api.properties(swarm_hashes={
395 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
396 }) +
397 api.platform('linux', 64) +
398 api.override_step_data('read test spec', api.json.output({
399 'Linux Tests': {
400 'isolated_scripts': [
401 {
402 'isolate_name': 'telemetry_gpu_unittests',
403 'name': 'telemetry_gpu_unittests',
404 'swarming': {
405 'can_use_on_swarming_builders': True,
406 'shards': 2,
407 },
408 },
409 ],
410 },
411 })) +
412 api.override_step_data('telemetry_gpu_unittests on Ubuntu-12.04',
413 api.test_utils.canned_isolated_script_output(
414 passing=True, is_win=False, swarming=True,
415 shards=2, isolated_script_passing=True, valid=True),
416 retcode=0)
417 )
418
419 yield (
420 api.test('dynamic_swarmed_sharded_failed_isolated_script_test') +
421 api.properties.generic(mastername='chromium.linux',
422 buildername='Linux Tests',
423 parent_buildername='Linux Builder') +
424 api.properties(swarm_hashes={
425 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
426 }) +
427 api.platform('linux', 64) +
428 api.override_step_data('read test spec', api.json.output({
429 'Linux Tests': {
430 'isolated_scripts': [
431 {
432 'isolate_name': 'telemetry_gpu_unittests',
433 'name': 'telemetry_gpu_unittests',
434 'swarming': {
435 'can_use_on_swarming_builders': True,
436 'shards': 2,
437 },
438 },
439 ],
440 },
441 })) +
442 api.override_step_data('telemetry_gpu_unittests on Ubuntu-12.04',
443 api.test_utils.canned_isolated_script_output(
444 passing=False, is_win=False, swarming=True,
445 shards=2, isolated_script_passing=False, valid=True),
446 retcode=1)
447 )
448
449 yield (
450 api.test('dynamic_swarmed_sharded_isolated_script_test_missing_shard') +
451 api.properties.generic(mastername='chromium.linux',
452 buildername='Linux Tests',
453 parent_buildername='Linux Builder') +
454 api.properties(swarm_hashes={
455 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
456 }) +
457 api.platform('linux', 64) +
458 api.override_step_data('read test spec', api.json.output({
459 'Linux Tests': {
460 'isolated_scripts': [
461 {
462 'isolate_name': 'telemetry_gpu_unittests',
463 'name': 'telemetry_gpu_unittests',
464 'swarming': {
465 'can_use_on_swarming_builders': True,
466 'shards': 2,
467 },
468 },
469 ],
470 },
471 })) +
472 api.override_step_data(
473 'telemetry_gpu_unittests on Ubuntu-12.04',
474 api.test_utils.canned_isolated_script_output(
475 passing=True, is_win=False, swarming=True,
476 shards=2, isolated_script_passing=True, valid=True,
477 missing_shards=[1]),
478 retcode=1)
479 )
480
481 yield (
390 api.test('dynamic_swarmed_isolated_script_test_linux_gpu') + 482 api.test('dynamic_swarmed_isolated_script_test_linux_gpu') +
391 api.properties.generic(mastername='chromium.linux', 483 api.properties.generic(mastername='chromium.linux',
392 buildername='Linux Tests', 484 buildername='Linux Tests',
393 parent_buildername='Linux Builder') + 485 parent_buildername='Linux Builder') +
394 api.properties(swarm_hashes={ 486 api.properties(swarm_hashes={
395 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee', 487 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
396 }) + 488 }) +
397 api.platform('linux', 64) + 489 api.platform('linux', 64) +
398 api.override_step_data('read test spec', api.json.output({ 490 api.override_step_data('read test spec', api.json.output({
399 'Linux Tests': { 491 'Linux Tests': {
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 1180
1089 yield ( 1181 yield (
1090 api.test('kitchen_path_config') + 1182 api.test('kitchen_path_config') +
1091 api.properties( 1183 api.properties(
1092 mastername='chromium.fyi', 1184 mastername='chromium.fyi',
1093 buildername='Linux Kitchen (kitchen_run)', 1185 buildername='Linux Kitchen (kitchen_run)',
1094 slavename='build1-a1', 1186 slavename='build1-a1',
1095 buildnumber='77457', 1187 buildnumber='77457',
1096 path_config='kitchen') 1188 path_config='kitchen')
1097 ) 1189 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698