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

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

Issue 2375663003: Add json test results format support for SwarmingIsolatedScriptTest (Closed)
Patch Set: Rebase Created 4 years, 2 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 'bisect_tester', 7 'bisect_tester',
8 'depot_tools/bot_update', 8 'depot_tools/bot_update',
9 'chromium', 9 'chromium',
10 'chromium_android', 10 'chromium_android',
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 '--test-machine-name=\"${buildername}\"', 330 '--test-machine-name=\"${buildername}\"',
331 '--build-revision=\"${got_revision}\"', 331 '--build-revision=\"${got_revision}\"',
332 ], 332 ],
333 }, 333 },
334 ], 334 ],
335 }, 335 },
336 }) 336 })
337 ) 337 )
338 ) 338 )
339 339
340
Sergiy Byelozyorov 2016/10/05 15:36:06 nit: please remove this line... no need for double
nednguyen 2016/10/05 18:50:53 Done.
340 yield ( 341 yield (
341 api.test('dynamic_isolated_script_test_harness_failure_zero_retcode') + 342 api.test('dynamic_isolated_script_test_harness_failure_zero_retcode') +
342 api.properties.generic(mastername='chromium.linux', 343 api.properties.generic(mastername='chromium.linux',
343 buildername='Linux Tests', 344 buildername='Linux Tests',
344 parent_buildername='Linux Builder') + 345 parent_buildername='Linux Builder') +
345 api.properties(swarm_hashes={ 346 api.properties(swarm_hashes={
346 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee', 347 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
347 }) + 348 }) +
348 api.platform('linux', 64) + 349 api.platform('linux', 64) +
349 api.override_step_data( 350 api.override_step_data(
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 }, 494 },
494 }, 495 },
495 ], 496 ],
496 }, 497 },
497 }) 498 })
498 ) + 499 ) +
499 api.override_step_data('telemetry_gpu_unittests on Ubuntu-12.04', 500 api.override_step_data('telemetry_gpu_unittests on Ubuntu-12.04',
500 api.test_utils.canned_isolated_script_output( 501 api.test_utils.canned_isolated_script_output(
501 passing=True, is_win=False, swarming=True, 502 passing=True, is_win=False, swarming=True,
502 shards=2, isolated_script_passing=True, valid=True, 503 shards=2, isolated_script_passing=True, valid=True,
503 output_chartjson=True), 504 use_json_test_format=True, output_chartjson=True),
504 retcode=0) 505 retcode=0)
505 ) 506 )
506 507
508 yield (
509 api.test('dynamic_swarmed_sharded_invalid_format_isolated_script_test') +
510 api.properties.generic(mastername='chromium.linux',
511 buildername='Linux Tests',
512 parent_buildername='Linux Builder') +
513 api.properties(swarm_hashes={
514 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
515 }) +
516 api.platform('linux', 64) +
517 api.override_step_data(
518 'read test spec (chromium.linux.json)',
519 api.json.output({
520 'Linux Tests': {
521 'isolated_scripts': [
522 {
523 'isolate_name': 'telemetry_gpu_unittests',
524 'name': 'telemetry_gpu_unittests',
525 'swarming': {
526 'can_use_on_swarming_builders': True,
527 'shards': 3,
528 },
529 },
530 ],
531 },
532 })
533 ) +
534 api.override_step_data('telemetry_gpu_unittests on Ubuntu-12.04',
535 api.test_utils.canned_isolated_script_output(
536 passing=True, is_win=False, swarming=True,
537 shards=3, isolated_script_passing=True, valid=False,
538 use_json_test_format=True, output_chartjson=True),
539 retcode=0)
540 )
541
507 yield ( 542 yield (
508 api.test('dynamic_swarmed_sharded_failed_isolated_script_test') + 543 api.test('dynamic_swarmed_sharded_failed_isolated_script_test') +
509 api.properties.generic(mastername='chromium.linux', 544 api.properties.generic(mastername='chromium.linux',
510 buildername='Linux Tests', 545 buildername='Linux Tests',
511 parent_buildername='Linux Builder') + 546 parent_buildername='Linux Builder') +
512 api.properties(swarm_hashes={ 547 api.properties(swarm_hashes={
513 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee', 548 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
514 }) + 549 }) +
515 api.platform('linux', 64) + 550 api.platform('linux', 64) +
516 api.override_step_data( 551 api.override_step_data(
517 'read test spec (chromium.linux.json)', 552 'read test spec (chromium.linux.json)',
518 api.json.output({ 553 api.json.output({
519 'Linux Tests': { 554 'Linux Tests': {
520 'isolated_scripts': [ 555 'isolated_scripts': [
521 { 556 {
522 'isolate_name': 'telemetry_gpu_unittests', 557 'isolate_name': 'telemetry_gpu_unittests',
523 'name': 'telemetry_gpu_unittests', 558 'name': 'telemetry_gpu_unittests',
524 'swarming': { 559 'swarming': {
525 'can_use_on_swarming_builders': True, 560 'can_use_on_swarming_builders': True,
526 'shards': 2, 561 'shards': 2,
527 }, 562 },
528 }, 563 },
529 ], 564 ],
530 }, 565 },
531 }) 566 })
532 ) + 567 ) +
533 api.override_step_data('telemetry_gpu_unittests on Ubuntu-12.04', 568 api.override_step_data('telemetry_gpu_unittests on Ubuntu-12.04',
534 api.test_utils.canned_isolated_script_output( 569 api.test_utils.canned_isolated_script_output(
535 passing=False, is_win=False, swarming=True, 570 passing=False, is_win=False, swarming=True,
536 shards=2, isolated_script_passing=False, valid=True), 571 shards=2, isolated_script_passing=False, valid=True,
537 retcode=1) 572 use_json_test_format=True), retcode=1)
538 ) 573 )
539 574
540 yield ( 575 yield (
541 api.test('dynamic_swarmed_sharded_isolated_script_test_missing_shard') + 576 api.test('dynamic_swarmed_sharded_isolated_script_test_missing_shard') +
542 api.properties.generic(mastername='chromium.linux', 577 api.properties.generic(mastername='chromium.linux',
543 buildername='Linux Tests', 578 buildername='Linux Tests',
544 parent_buildername='Linux Builder') + 579 parent_buildername='Linux Builder') +
545 api.properties(swarm_hashes={ 580 api.properties(swarm_hashes={
546 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee', 581 'telemetry_gpu_unittests': 'eeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
547 }) + 582 }) +
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 yield ( 1517 yield (
1483 api.test('ensure_goma_fail') + 1518 api.test('ensure_goma_fail') +
1484 api.properties( 1519 api.properties(
1485 mastername='chromium.fyi', 1520 mastername='chromium.fyi',
1486 buildername='Linux remote_run Builder', 1521 buildername='Linux remote_run Builder',
1487 slavename='build1-a1', 1522 slavename='build1-a1',
1488 buildnumber='77457', 1523 buildnumber='77457',
1489 path_config='kitchen') + 1524 path_config='kitchen') +
1490 api.override_step_data('ensure_goma.ensure_installed', retcode=1) 1525 api.override_step_data('ensure_goma.ensure_installed', retcode=1)
1491 ) 1526 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698