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

Side by Side Diff: infra/bots/recipes/swarm_test.py

Issue 2231943002: Use SVGs CIPD package and use SVG as a DM source (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Address comment 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
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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 5
6 # Recipe module for Skia Swarming test. 6 # Recipe module for Skia Swarming test.
7 7
8 8
9 DEPS = [ 9 DEPS = [
10 'build/file', 10 'build/file',
(...skipping 22 matching lines...) Expand all
33 'Test-Android-GCC-NexusPlayer-CPU-SSE4-x86-Release', 33 'Test-Android-GCC-NexusPlayer-CPU-SSE4-x86-Release',
34 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug', 34 'Test-Android-GCC-NVIDIA_Shield-GPU-TegraX1-Arm64-Debug',
35 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug', 35 'Test-iOS-Clang-iPad4-GPU-SGX554-Arm7-Debug',
36 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Debug', 36 'Test-Mac-Clang-MacMini4.1-GPU-GeForce320M-x86_64-Debug',
37 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug', 37 'Test-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Debug',
38 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer', 38 'Test-Mac-Clang-MacMini6.2-GPU-HD4000-x86_64-Debug-CommandBuffer',
39 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot', 39 'Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot',
40 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug', 40 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86-Debug',
41 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug', 41 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug',
42 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN', 42 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-MSAN',
43 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared',
43 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN', 44 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN',
44 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind', 45 'Test-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
45 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan', 46 'Test-Win10-MSVC-ShuttleA-GPU-GTX660-x86_64-Debug-Vulkan',
46 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot', 47 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot',
47 'Test-Win8-MSVC-ShuttleB-GPU-GTX960-x86_64-Debug-ANGLE', 48 'Test-Win8-MSVC-ShuttleB-GPU-GTX960-x86_64-Debug-ANGLE',
48 ], 49 ],
49 }, 50 },
50 } 51 }
51 52
52 53
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 132
132 # Vulkan bot *only* runs the vk config. 133 # Vulkan bot *only* runs the vk config.
133 if 'Vulkan' in bot: 134 if 'Vulkan' in bot:
134 configs = ['vk'] 135 configs = ['vk']
135 136
136 args.append('--config') 137 args.append('--config')
137 args.extend(configs) 138 args.extend(configs)
138 139
139 # Run tests, gms, and image decoding tests everywhere. 140 # Run tests, gms, and image decoding tests everywhere.
140 args.extend('--src tests gm image colorImage'.split(' ')) 141 args.extend('--src tests gm image colorImage'.split(' '))
142 # TODO(rmistry): Remove the below once we want to enable SVGs for all bots.
143 if (bot == 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot' or
144 bot == 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared'):
145 args.append('svg')
141 146
142 if 'GalaxyS' in bot: 147 if 'GalaxyS' in bot:
143 args.extend(('--threads', '0')) 148 args.extend(('--threads', '0'))
144 149
145 blacklist = [] 150 blacklist = []
146 151
147 # TODO: ??? 152 # TODO: ???
148 blacklist.extend('f16 _ _ dstreadshuffle'.split(' ')) 153 blacklist.extend('f16 _ _ dstreadshuffle'.split(' '))
149 blacklist.extend('f16 image _ _'.split(' ')) 154 blacklist.extend('f16 image _ _'.split(' '))
150 blacklist.extend('srgb image _ _'.split(' ')) 155 blacklist.extend('srgb image _ _'.split(' '))
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 '--resourcePath', api.flavor.device_dirs.resource_dir, 433 '--resourcePath', api.flavor.device_dirs.resource_dir,
429 '--skps', api.flavor.device_dirs.skp_dir, 434 '--skps', api.flavor.device_dirs.skp_dir,
430 '--images', api.flavor.device_path_join( 435 '--images', api.flavor.device_path_join(
431 api.flavor.device_dirs.images_dir, 'dm'), 436 api.flavor.device_dirs.images_dir, 'dm'),
432 '--colorImages', api.flavor.device_path_join( 437 '--colorImages', api.flavor.device_path_join(
433 api.flavor.device_dirs.images_dir, 'colorspace'), 438 api.flavor.device_dirs.images_dir, 'colorspace'),
434 '--nameByHash', 439 '--nameByHash',
435 '--properties' 440 '--properties'
436 ] + properties 441 ] + properties
437 442
443 # TODO(rmistry): Remove the below once we want to enable SVGs for all bots.
444 if (api.vars.builder_name ==
445 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot' or
446 api.vars.builder_name ==
447 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared'):
448 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
449
438 args.append('--key') 450 args.append('--key')
439 args.extend(key_params(api)) 451 args.extend(key_params(api))
440 if use_hash_file: 452 if use_hash_file:
441 args.extend(['--uninterestingHashesFile', hashes_file]) 453 args.extend(['--uninterestingHashesFile', hashes_file])
442 if api.vars.upload_dm_results: 454 if api.vars.upload_dm_results:
443 args.extend(['--writePath', api.flavor.device_dirs.dm_dir]) 455 args.extend(['--writePath', api.flavor.device_dirs.dm_dir])
444 456
445 skip_flag = None 457 skip_flag = None
446 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU': 458 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
447 skip_flag = '--nogpu' 459 skip_flag = '--nogpu'
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 test_data = ( 499 test_data = (
488 api.step_data( 500 api.step_data(
489 'get EXTERNAL_STORAGE dir', 501 'get EXTERNAL_STORAGE dir',
490 stdout=api.raw_io.output('/storage/emulated/legacy')) + 502 stdout=api.raw_io.output('/storage/emulated/legacy')) +
491 api.step_data( 503 api.step_data(
492 'read SKP_VERSION', 504 'read SKP_VERSION',
493 stdout=api.raw_io.output('42')) + 505 stdout=api.raw_io.output('42')) +
494 api.step_data( 506 api.step_data(
495 'read SK_IMAGE_VERSION', 507 'read SK_IMAGE_VERSION',
496 stdout=api.raw_io.output('42')) + 508 stdout=api.raw_io.output('42')) +
497 api.step_data( 509 api.step_data(
510 'read SVG_VERSION',
511 stdout=api.raw_io.output('42')) +
512 api.step_data(
498 'exists skia_dm', 513 'exists skia_dm',
499 stdout=api.raw_io.output('')) 514 stdout=api.raw_io.output(''))
500 ) 515 )
501 if 'GalaxyS3' not in builder: 516 if 'GalaxyS3' not in builder:
502 test_data += api.step_data( 517 test_data += api.step_data(
503 'adb root', 518 'adb root',
504 stdout=api.raw_io.output('restarting adbd as root')) 519 stdout=api.raw_io.output('restarting adbd as root'))
505 if adb: 520 if adb:
506 test_data += api.step_data( 521 test_data += api.step_data(
507 'which adb', 522 'which adb',
(...skipping 16 matching lines...) Expand all
524 buildnumber=5, 539 buildnumber=5,
525 revision='abc123', 540 revision='abc123',
526 path_config='kitchen', 541 path_config='kitchen',
527 swarm_out_dir='[SWARM_OUT_DIR]') + 542 swarm_out_dir='[SWARM_OUT_DIR]') +
528 api.path.exists( 543 api.path.exists(
529 api.path['slave_build'].join('skia'), 544 api.path['slave_build'].join('skia'),
530 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 545 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
531 'skimage', 'VERSION'), 546 'skimage', 'VERSION'),
532 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 547 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
533 'skp', 'VERSION'), 548 'skp', 'VERSION'),
549 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
550 'svg', 'VERSION'),
534 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 551 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
535 ) 552 )
536 ) 553 )
537 if ('Android' in builder and 554 if ('Android' in builder and
538 ('Test' in builder or 'Perf' in builder) and 555 ('Test' in builder or 'Perf' in builder) and
539 not 'Appurify' in builder): 556 not 'Appurify' in builder):
540 test += AndroidTestData(builder) 557 test += AndroidTestData(builder)
541 if 'Trybot' in builder: 558 if 'Trybot' in builder:
542 test += api.properties(issue=500, 559 test += api.properties(issue=500,
543 patchset=1, 560 patchset=1,
(...skipping 13 matching lines...) Expand all
557 buildnumber=6, 574 buildnumber=6,
558 revision='abc123', 575 revision='abc123',
559 path_config='kitchen', 576 path_config='kitchen',
560 swarm_out_dir='[SWARM_OUT_DIR]') + 577 swarm_out_dir='[SWARM_OUT_DIR]') +
561 api.path.exists( 578 api.path.exists(
562 api.path['slave_build'].join('skia'), 579 api.path['slave_build'].join('skia'),
563 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 580 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
564 'skimage', 'VERSION'), 581 'skimage', 'VERSION'),
565 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 582 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
566 'skp', 'VERSION'), 583 'skp', 'VERSION'),
584 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
585 'svg', 'VERSION'),
567 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 586 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
568 ) + 587 ) +
569 api.step_data('dm', retcode=1) 588 api.step_data('dm', retcode=1)
570 ) 589 )
571 590
572 builder = 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug' 591 builder = 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug'
573 yield ( 592 yield (
574 api.test('failed_get_hashes') + 593 api.test('failed_get_hashes') +
575 api.properties(buildername=builder, 594 api.properties(buildername=builder,
576 mastername='client.skia', 595 mastername='client.skia',
577 slavename='skiabot-linux-swarm-000', 596 slavename='skiabot-linux-swarm-000',
578 buildnumber=6, 597 buildnumber=6,
579 revision='abc123', 598 revision='abc123',
580 path_config='kitchen', 599 path_config='kitchen',
581 swarm_out_dir='[SWARM_OUT_DIR]') + 600 swarm_out_dir='[SWARM_OUT_DIR]') +
582 api.path.exists( 601 api.path.exists(
583 api.path['slave_build'].join('skia'), 602 api.path['slave_build'].join('skia'),
584 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 603 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
585 'skimage', 'VERSION'), 604 'skimage', 'VERSION'),
586 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 605 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
587 'skp', 'VERSION'), 606 'skp', 'VERSION'),
607 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
608 'svg', 'VERSION'),
588 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 609 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
589 ) + 610 ) +
590 AndroidTestData(builder) + 611 AndroidTestData(builder) +
591 api.step_data('read SKP_VERSION', 612 api.step_data('read SKP_VERSION',
592 stdout=api.raw_io.output('42')) + 613 stdout=api.raw_io.output('42')) +
593 api.step_data('read SK_IMAGE_VERSION', 614 api.step_data('read SK_IMAGE_VERSION',
594 stdout=api.raw_io.output('42')) + 615 stdout=api.raw_io.output('42')) +
616 api.step_data('read SVG_VERSION',
617 stdout=api.raw_io.output('42')) +
595 api.step_data('get uninteresting hashes', retcode=1) 618 api.step_data('get uninteresting hashes', retcode=1)
596 ) 619 )
597 620
598 yield ( 621 yield (
599 api.test('download_and_push_skps') + 622 api.test('download_and_push_skps') +
600 api.properties(buildername=builder, 623 api.properties(buildername=builder,
601 mastername='client.skia', 624 mastername='client.skia',
602 slavename='skiabot-linux-swarm-000', 625 slavename='skiabot-linux-swarm-000',
603 buildnumber=6, 626 buildnumber=6,
604 revision='abc123', 627 revision='abc123',
605 path_config='kitchen', 628 path_config='kitchen',
606 swarm_out_dir='[SWARM_OUT_DIR]') + 629 swarm_out_dir='[SWARM_OUT_DIR]') +
607 api.path.exists( 630 api.path.exists(
608 api.path['slave_build'].join('skia'), 631 api.path['slave_build'].join('skia'),
609 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 632 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
610 'skimage', 'VERSION'), 633 'skimage', 'VERSION'),
611 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 634 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
612 'skp', 'VERSION'), 635 'skp', 'VERSION'),
636 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
637 'svg', 'VERSION'),
613 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 638 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
614 ) + 639 ) +
615 AndroidTestData(builder) + 640 AndroidTestData(builder) +
616 api.step_data('read SKP_VERSION', 641 api.step_data('read SKP_VERSION',
617 stdout=api.raw_io.output('2')) + 642 stdout=api.raw_io.output('2')) +
618 api.step_data('read SK_IMAGE_VERSION', 643 api.step_data('read SK_IMAGE_VERSION',
619 stdout=api.raw_io.output('42')) + 644 stdout=api.raw_io.output('42')) +
645 api.step_data('read SVG_VERSION',
646 stdout=api.raw_io.output('42')) +
620 api.step_data( 647 api.step_data(
621 'exists skps', 648 'exists skps',
622 stdout=api.raw_io.output('')) 649 stdout=api.raw_io.output(''))
623 ) 650 )
624 651
625 yield ( 652 yield (
626 api.test('missing_SKP_VERSION_device') + 653 api.test('missing_SKP_VERSION_device') +
627 api.properties(buildername=builder, 654 api.properties(buildername=builder,
628 mastername='client.skia', 655 mastername='client.skia',
629 slavename='skiabot-linux-swarm-000', 656 slavename='skiabot-linux-swarm-000',
630 buildnumber=6, 657 buildnumber=6,
631 revision='abc123', 658 revision='abc123',
632 path_config='kitchen', 659 path_config='kitchen',
633 swarm_out_dir='[SWARM_OUT_DIR]') + 660 swarm_out_dir='[SWARM_OUT_DIR]') +
634 api.path.exists( 661 api.path.exists(
635 api.path['slave_build'].join('skia'), 662 api.path['slave_build'].join('skia'),
636 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 663 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
637 'skimage', 'VERSION'), 664 'skimage', 'VERSION'),
638 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 665 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
639 'skp', 'VERSION'), 666 'skp', 'VERSION'),
667 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
668 'svg', 'VERSION'),
640 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 669 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
641 ) + 670 ) +
642 AndroidTestData(builder) + 671 AndroidTestData(builder) +
643 api.step_data('read SKP_VERSION', 672 api.step_data('read SKP_VERSION',
644 retcode=1) + 673 retcode=1) +
645 api.step_data('read SK_IMAGE_VERSION', 674 api.step_data('read SK_IMAGE_VERSION',
646 stdout=api.raw_io.output('42')) + 675 stdout=api.raw_io.output('42')) +
676 api.step_data('read SVG_VERSION',
677 stdout=api.raw_io.output('42')) +
647 api.step_data( 678 api.step_data(
648 'exists skps', 679 'exists skps',
649 stdout=api.raw_io.output('')) 680 stdout=api.raw_io.output(''))
650 ) 681 )
651 682
652 yield ( 683 yield (
653 api.test('download_and_push_skimage') + 684 api.test('download_and_push_skimage') +
654 api.properties(buildername=builder, 685 api.properties(buildername=builder,
655 mastername='client.skia', 686 mastername='client.skia',
656 slavename='skiabot-linux-swarm-000', 687 slavename='skiabot-linux-swarm-000',
657 buildnumber=6, 688 buildnumber=6,
658 revision='abc123', 689 revision='abc123',
659 path_config='kitchen', 690 path_config='kitchen',
660 swarm_out_dir='[SWARM_OUT_DIR]') + 691 swarm_out_dir='[SWARM_OUT_DIR]') +
661 api.path.exists( 692 api.path.exists(
662 api.path['slave_build'].join('skia'), 693 api.path['slave_build'].join('skia'),
663 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 694 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
664 'skimage', 'VERSION'), 695 'skimage', 'VERSION'),
665 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 696 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
666 'skp', 'VERSION'), 697 'skp', 'VERSION'),
698 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
699 'svg', 'VERSION'),
667 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 700 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
668 ) + 701 ) +
669 AndroidTestData(builder) + 702 AndroidTestData(builder) +
670 api.step_data('read SKP_VERSION', 703 api.step_data('read SKP_VERSION',
671 stdout=api.raw_io.output('42')) + 704 stdout=api.raw_io.output('42')) +
672 api.step_data('read SK_IMAGE_VERSION', 705 api.step_data('read SK_IMAGE_VERSION',
673 stdout=api.raw_io.output('2')) + 706 stdout=api.raw_io.output('2')) +
707 api.step_data('read SVG_VERSION',
708 stdout=api.raw_io.output('42')) +
674 api.step_data( 709 api.step_data(
675 'exists skia_images', 710 'exists skia_images',
676 stdout=api.raw_io.output('')) 711 stdout=api.raw_io.output(''))
677 ) 712 )
678 713
679 yield ( 714 yield (
680 api.test('missing_SK_IMAGE_VERSION_device') + 715 api.test('missing_SK_IMAGE_VERSION_device') +
681 api.properties(buildername=builder, 716 api.properties(buildername=builder,
682 mastername='client.skia', 717 mastername='client.skia',
683 slavename='skiabot-linux-swarm-000', 718 slavename='skiabot-linux-swarm-000',
684 buildnumber=6, 719 buildnumber=6,
685 revision='abc123', 720 revision='abc123',
686 path_config='kitchen', 721 path_config='kitchen',
687 swarm_out_dir='[SWARM_OUT_DIR]') + 722 swarm_out_dir='[SWARM_OUT_DIR]') +
688 api.path.exists( 723 api.path.exists(
689 api.path['slave_build'].join('skia'), 724 api.path['slave_build'].join('skia'),
690 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 725 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
691 'skimage', 'VERSION'), 726 'skimage', 'VERSION'),
692 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 727 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
693 'skp', 'VERSION'), 728 'skp', 'VERSION'),
729 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
730 'svg', 'VERSION'),
694 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 731 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
695 ) + 732 ) +
696 AndroidTestData(builder) + 733 AndroidTestData(builder) +
697 api.step_data('read SKP_VERSION', 734 api.step_data('read SKP_VERSION',
698 stdout=api.raw_io.output('42')) + 735 stdout=api.raw_io.output('42')) +
699 api.step_data('read SK_IMAGE_VERSION', 736 api.step_data('read SK_IMAGE_VERSION',
700 retcode=1) + 737 retcode=1) +
738 api.step_data('read SVG_VERSION',
739 stdout=api.raw_io.output('42')) +
701 api.step_data( 740 api.step_data(
702 'exists skia_images', 741 'exists skia_images',
703 stdout=api.raw_io.output('')) 742 stdout=api.raw_io.output(''))
704 ) 743 )
705 744
706 yield ( 745 yield (
746 api.test('download_and_push_svgs') +
747 api.properties(buildername=builder,
748 mastername='client.skia',
749 slavename='skiabot-linux-swarm-000',
750 buildnumber=6,
751 revision='abc123',
752 path_config='kitchen',
753 swarm_out_dir='[SWARM_OUT_DIR]') +
754 api.path.exists(
755 api.path['slave_build'].join('skia'),
756 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
757 'skimage', 'VERSION'),
758 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
759 'skp', 'VERSION'),
760 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
761 'svg', 'VERSION'),
762 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
763 ) +
764 AndroidTestData(builder) +
765 api.step_data('read SKP_VERSION',
766 stdout=api.raw_io.output('42')) +
767 api.step_data('read SK_IMAGE_VERSION',
768 stdout=api.raw_io.output('42')) +
769 api.step_data('read SVG_VERSION',
770 stdout=api.raw_io.output('2')) +
771 api.step_data(
772 'exists svgs',
773 stdout=api.raw_io.output(''))
774 )
775
776 yield (
777 api.test('missing_SVG_VERSION_device') +
778 api.properties(buildername=builder,
779 mastername='client.skia',
780 slavename='skiabot-linux-swarm-000',
781 buildnumber=6,
782 revision='abc123',
783 path_config='kitchen',
784 swarm_out_dir='[SWARM_OUT_DIR]') +
785 api.path.exists(
786 api.path['slave_build'].join('skia'),
787 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
788 'skimage', 'VERSION'),
789 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
790 'skp', 'VERSION'),
791 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
792 'svg', 'VERSION'),
793 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
794 ) +
795 AndroidTestData(builder) +
796 api.step_data('read SKP_VERSION',
797 stdout=api.raw_io.output('42')) +
798 api.step_data('read SK_IMAGE_VERSION',
799 stdout=api.raw_io.output('42')) +
800 api.step_data('read SVG_VERSION',
801 retcode=1) +
802 api.step_data(
803 'exists svgs',
804 stdout=api.raw_io.output(''))
805 )
806
807 yield (
707 api.test('adb_in_path') + 808 api.test('adb_in_path') +
708 api.properties(buildername=builder, 809 api.properties(buildername=builder,
709 mastername='client.skia', 810 mastername='client.skia',
710 slavename='skiabot-linux-swarm-000', 811 slavename='skiabot-linux-swarm-000',
711 buildnumber=6, 812 buildnumber=6,
712 revision='abc123', 813 revision='abc123',
713 path_config='kitchen', 814 path_config='kitchen',
714 swarm_out_dir='[SWARM_OUT_DIR]') + 815 swarm_out_dir='[SWARM_OUT_DIR]') +
715 api.path.exists( 816 api.path.exists(
716 api.path['slave_build'].join('skia'), 817 api.path['slave_build'].join('skia'),
717 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 818 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
718 'skimage', 'VERSION'), 819 'skimage', 'VERSION'),
719 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 820 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
720 'skp', 'VERSION'), 821 'skp', 'VERSION'),
822 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
823 'svg', 'VERSION'),
721 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 824 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
722 ) + 825 ) +
723 AndroidTestData(builder, adb='/usr/bin/adb') + 826 AndroidTestData(builder, adb='/usr/bin/adb') +
724 api.step_data('read SKP_VERSION', 827 api.step_data('read SKP_VERSION',
725 stdout=api.raw_io.output('42')) + 828 stdout=api.raw_io.output('42')) +
726 api.step_data('read SK_IMAGE_VERSION', 829 api.step_data('read SK_IMAGE_VERSION',
830 stdout=api.raw_io.output('42')) +
831 api.step_data('read SVG_VERSION',
727 stdout=api.raw_io.output('42')) 832 stdout=api.raw_io.output('42'))
728 ) 833 )
729 834
730 builder = 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot' 835 builder = 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot'
731 yield ( 836 yield (
732 api.test('big_issue_number') + 837 api.test('big_issue_number') +
733 api.properties(buildername=builder, 838 api.properties(buildername=builder,
734 mastername='client.skia.compile', 839 mastername='client.skia.compile',
735 slavename='skiabot-linux-swarm-000', 840 slavename='skiabot-linux-swarm-000',
736 buildnumber=5, 841 buildnumber=5,
737 revision='abc123', 842 revision='abc123',
738 path_config='kitchen', 843 path_config='kitchen',
739 swarm_out_dir='[SWARM_OUT_DIR]', 844 swarm_out_dir='[SWARM_OUT_DIR]',
740 rietveld='https://codereview.chromium.org', 845 rietveld='https://codereview.chromium.org',
741 patchset=1, 846 patchset=1,
742 issue=2147533002L) + 847 issue=2147533002L) +
743 api.path.exists( 848 api.path.exists(
744 api.path['slave_build'].join('skia'), 849 api.path['slave_build'].join('skia'),
745 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 850 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
746 'skimage', 'VERSION'), 851 'skimage', 'VERSION'),
747 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 852 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
748 'skp', 'VERSION'), 853 'skp', 'VERSION'),
854 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
855 'svg', 'VERSION'),
749 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 856 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
750 ) + 857 ) +
751 api.platform('win', 64) 858 api.platform('win', 64)
752 ) 859 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698