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

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: 80 cols. 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 (
390 api.test('dynamic_swarmed_isolated_script_test_linux_gpu') + 450 api.test('dynamic_swarmed_isolated_script_test_linux_gpu') +
391 api.properties.generic(mastername='chromium.linux', 451 api.properties.generic(mastername='chromium.linux',
392 buildername='Linux Tests', 452 buildername='Linux Tests',
393 parent_buildername='Linux Builder') + 453 parent_buildername='Linux Builder') +
394 api.properties(swarm_hashes={ 454 api.properties(swarm_hashes={
395 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee', 455 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
396 }) + 456 }) +
397 api.platform('linux', 64) + 457 api.platform('linux', 64) +
398 api.override_step_data('read test spec', api.json.output({ 458 api.override_step_data('read test spec', api.json.output({
399 'Linux Tests': { 459 'Linux Tests': {
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 1148
1089 yield ( 1149 yield (
1090 api.test('kitchen_path_config') + 1150 api.test('kitchen_path_config') +
1091 api.properties( 1151 api.properties(
1092 mastername='chromium.fyi', 1152 mastername='chromium.fyi',
1093 buildername='Linux Kitchen (kitchen_run)', 1153 buildername='Linux Kitchen (kitchen_run)',
1094 slavename='build1-a1', 1154 slavename='build1-a1',
1095 buildnumber='77457', 1155 buildnumber='77457',
1096 path_config='kitchen') 1156 path_config='kitchen')
1097 ) 1157 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698