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

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: Fix test 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 properties.extend([ 425 properties.extend([
421 'issue', api.vars.issue, 426 'issue', api.vars.issue,
422 'patchset', api.vars.patchset, 427 'patchset', api.vars.patchset,
423 ]) 428 ])
424 429
425 args = [ 430 args = [
426 'dm', 431 'dm',
427 '--undefok', # This helps branches that may not know new flags. 432 '--undefok', # This helps branches that may not know new flags.
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,
435 '--svgs', api.flavor.device_dirs.svg_dir,
borenet 2016/08/11 16:20:52 Only supply this for the bots which are going to u
rmistry 2016/08/11 16:41:48 Done.
430 '--images', api.flavor.device_path_join( 436 '--images', api.flavor.device_path_join(
431 api.flavor.device_dirs.images_dir, 'dm'), 437 api.flavor.device_dirs.images_dir, 'dm'),
432 '--colorImages', api.flavor.device_path_join( 438 '--colorImages', api.flavor.device_path_join(
433 api.flavor.device_dirs.images_dir, 'colorspace'), 439 api.flavor.device_dirs.images_dir, 'colorspace'),
434 '--nameByHash', 440 '--nameByHash',
435 '--properties' 441 '--properties'
436 ] + properties 442 ] + properties
437 443
438 args.append('--key') 444 args.append('--key')
439 args.extend(key_params(api)) 445 args.extend(key_params(api))
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 test_data = ( 493 test_data = (
488 api.step_data( 494 api.step_data(
489 'get EXTERNAL_STORAGE dir', 495 'get EXTERNAL_STORAGE dir',
490 stdout=api.raw_io.output('/storage/emulated/legacy')) + 496 stdout=api.raw_io.output('/storage/emulated/legacy')) +
491 api.step_data( 497 api.step_data(
492 'read SKP_VERSION', 498 'read SKP_VERSION',
493 stdout=api.raw_io.output('42')) + 499 stdout=api.raw_io.output('42')) +
494 api.step_data( 500 api.step_data(
495 'read SK_IMAGE_VERSION', 501 'read SK_IMAGE_VERSION',
496 stdout=api.raw_io.output('42')) + 502 stdout=api.raw_io.output('42')) +
497 api.step_data( 503 api.step_data(
504 'read SVG_VERSION',
505 stdout=api.raw_io.output('42')) +
506 api.step_data(
498 'exists skia_dm', 507 'exists skia_dm',
499 stdout=api.raw_io.output('')) 508 stdout=api.raw_io.output(''))
500 ) 509 )
501 if 'GalaxyS3' not in builder: 510 if 'GalaxyS3' not in builder:
502 test_data += api.step_data( 511 test_data += api.step_data(
503 'adb root', 512 'adb root',
504 stdout=api.raw_io.output('restarting adbd as root')) 513 stdout=api.raw_io.output('restarting adbd as root'))
505 if adb: 514 if adb:
506 test_data += api.step_data( 515 test_data += api.step_data(
507 'which adb', 516 'which adb',
(...skipping 16 matching lines...) Expand all
524 buildnumber=5, 533 buildnumber=5,
525 revision='abc123', 534 revision='abc123',
526 path_config='kitchen', 535 path_config='kitchen',
527 swarm_out_dir='[SWARM_OUT_DIR]') + 536 swarm_out_dir='[SWARM_OUT_DIR]') +
528 api.path.exists( 537 api.path.exists(
529 api.path['slave_build'].join('skia'), 538 api.path['slave_build'].join('skia'),
530 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 539 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
531 'skimage', 'VERSION'), 540 'skimage', 'VERSION'),
532 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 541 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
533 'skp', 'VERSION'), 542 'skp', 'VERSION'),
543 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
544 'svg', 'VERSION'),
534 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 545 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
535 ) 546 )
536 ) 547 )
537 if ('Android' in builder and 548 if ('Android' in builder and
538 ('Test' in builder or 'Perf' in builder) and 549 ('Test' in builder or 'Perf' in builder) and
539 not 'Appurify' in builder): 550 not 'Appurify' in builder):
540 test += AndroidTestData(builder) 551 test += AndroidTestData(builder)
541 if 'Trybot' in builder: 552 if 'Trybot' in builder:
542 test += api.properties(issue=500, 553 test += api.properties(issue=500,
543 patchset=1, 554 patchset=1,
(...skipping 13 matching lines...) Expand all
557 buildnumber=6, 568 buildnumber=6,
558 revision='abc123', 569 revision='abc123',
559 path_config='kitchen', 570 path_config='kitchen',
560 swarm_out_dir='[SWARM_OUT_DIR]') + 571 swarm_out_dir='[SWARM_OUT_DIR]') +
561 api.path.exists( 572 api.path.exists(
562 api.path['slave_build'].join('skia'), 573 api.path['slave_build'].join('skia'),
563 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 574 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
564 'skimage', 'VERSION'), 575 'skimage', 'VERSION'),
565 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 576 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
566 'skp', 'VERSION'), 577 'skp', 'VERSION'),
578 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
579 'svg', 'VERSION'),
567 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 580 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
568 ) + 581 ) +
569 api.step_data('dm', retcode=1) 582 api.step_data('dm', retcode=1)
570 ) 583 )
571 584
572 builder = 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug' 585 builder = 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug'
573 yield ( 586 yield (
574 api.test('failed_get_hashes') + 587 api.test('failed_get_hashes') +
575 api.properties(buildername=builder, 588 api.properties(buildername=builder,
576 mastername='client.skia', 589 mastername='client.skia',
577 slavename='skiabot-linux-swarm-000', 590 slavename='skiabot-linux-swarm-000',
578 buildnumber=6, 591 buildnumber=6,
579 revision='abc123', 592 revision='abc123',
580 path_config='kitchen', 593 path_config='kitchen',
581 swarm_out_dir='[SWARM_OUT_DIR]') + 594 swarm_out_dir='[SWARM_OUT_DIR]') +
582 api.path.exists( 595 api.path.exists(
583 api.path['slave_build'].join('skia'), 596 api.path['slave_build'].join('skia'),
584 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 597 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
585 'skimage', 'VERSION'), 598 'skimage', 'VERSION'),
586 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 599 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
587 'skp', 'VERSION'), 600 'skp', 'VERSION'),
601 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
602 'svg', 'VERSION'),
588 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 603 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
589 ) + 604 ) +
590 AndroidTestData(builder) + 605 AndroidTestData(builder) +
591 api.step_data('read SKP_VERSION', 606 api.step_data('read SKP_VERSION',
592 stdout=api.raw_io.output('42')) + 607 stdout=api.raw_io.output('42')) +
593 api.step_data('read SK_IMAGE_VERSION', 608 api.step_data('read SK_IMAGE_VERSION',
594 stdout=api.raw_io.output('42')) + 609 stdout=api.raw_io.output('42')) +
610 api.step_data('read SVG_VERSION',
611 stdout=api.raw_io.output('42')) +
595 api.step_data('get uninteresting hashes', retcode=1) 612 api.step_data('get uninteresting hashes', retcode=1)
596 ) 613 )
597 614
598 yield ( 615 yield (
599 api.test('download_and_push_skps') + 616 api.test('download_and_push_skps') +
600 api.properties(buildername=builder, 617 api.properties(buildername=builder,
601 mastername='client.skia', 618 mastername='client.skia',
602 slavename='skiabot-linux-swarm-000', 619 slavename='skiabot-linux-swarm-000',
603 buildnumber=6, 620 buildnumber=6,
604 revision='abc123', 621 revision='abc123',
605 path_config='kitchen', 622 path_config='kitchen',
606 swarm_out_dir='[SWARM_OUT_DIR]') + 623 swarm_out_dir='[SWARM_OUT_DIR]') +
607 api.path.exists( 624 api.path.exists(
608 api.path['slave_build'].join('skia'), 625 api.path['slave_build'].join('skia'),
609 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 626 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
610 'skimage', 'VERSION'), 627 'skimage', 'VERSION'),
611 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 628 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
612 'skp', 'VERSION'), 629 'skp', 'VERSION'),
630 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
631 'svg', 'VERSION'),
613 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 632 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
614 ) + 633 ) +
615 AndroidTestData(builder) + 634 AndroidTestData(builder) +
616 api.step_data('read SKP_VERSION', 635 api.step_data('read SKP_VERSION',
617 stdout=api.raw_io.output('2')) + 636 stdout=api.raw_io.output('2')) +
618 api.step_data('read SK_IMAGE_VERSION', 637 api.step_data('read SK_IMAGE_VERSION',
619 stdout=api.raw_io.output('42')) + 638 stdout=api.raw_io.output('42')) +
639 api.step_data('read SVG_VERSION',
640 stdout=api.raw_io.output('42')) +
620 api.step_data( 641 api.step_data(
621 'exists skps', 642 'exists skps',
622 stdout=api.raw_io.output('')) 643 stdout=api.raw_io.output(''))
623 ) 644 )
624 645
625 yield ( 646 yield (
626 api.test('missing_SKP_VERSION_device') + 647 api.test('missing_SKP_VERSION_device') +
627 api.properties(buildername=builder, 648 api.properties(buildername=builder,
628 mastername='client.skia', 649 mastername='client.skia',
629 slavename='skiabot-linux-swarm-000', 650 slavename='skiabot-linux-swarm-000',
630 buildnumber=6, 651 buildnumber=6,
631 revision='abc123', 652 revision='abc123',
632 path_config='kitchen', 653 path_config='kitchen',
633 swarm_out_dir='[SWARM_OUT_DIR]') + 654 swarm_out_dir='[SWARM_OUT_DIR]') +
634 api.path.exists( 655 api.path.exists(
635 api.path['slave_build'].join('skia'), 656 api.path['slave_build'].join('skia'),
636 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 657 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
637 'skimage', 'VERSION'), 658 'skimage', 'VERSION'),
638 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 659 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
639 'skp', 'VERSION'), 660 'skp', 'VERSION'),
661 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
662 'svg', 'VERSION'),
640 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 663 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
641 ) + 664 ) +
642 AndroidTestData(builder) + 665 AndroidTestData(builder) +
643 api.step_data('read SKP_VERSION', 666 api.step_data('read SKP_VERSION',
644 retcode=1) + 667 retcode=1) +
645 api.step_data('read SK_IMAGE_VERSION', 668 api.step_data('read SK_IMAGE_VERSION',
646 stdout=api.raw_io.output('42')) + 669 stdout=api.raw_io.output('42')) +
670 api.step_data('read SVG_VERSION',
671 stdout=api.raw_io.output('42')) +
647 api.step_data( 672 api.step_data(
648 'exists skps', 673 'exists skps',
649 stdout=api.raw_io.output('')) 674 stdout=api.raw_io.output(''))
650 ) 675 )
651 676
652 yield ( 677 yield (
653 api.test('download_and_push_skimage') + 678 api.test('download_and_push_skimage') +
654 api.properties(buildername=builder, 679 api.properties(buildername=builder,
655 mastername='client.skia', 680 mastername='client.skia',
656 slavename='skiabot-linux-swarm-000', 681 slavename='skiabot-linux-swarm-000',
657 buildnumber=6, 682 buildnumber=6,
658 revision='abc123', 683 revision='abc123',
659 path_config='kitchen', 684 path_config='kitchen',
660 swarm_out_dir='[SWARM_OUT_DIR]') + 685 swarm_out_dir='[SWARM_OUT_DIR]') +
661 api.path.exists( 686 api.path.exists(
662 api.path['slave_build'].join('skia'), 687 api.path['slave_build'].join('skia'),
663 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 688 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
664 'skimage', 'VERSION'), 689 'skimage', 'VERSION'),
665 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 690 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
666 'skp', 'VERSION'), 691 'skp', 'VERSION'),
692 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
693 'svg', 'VERSION'),
667 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 694 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
668 ) + 695 ) +
669 AndroidTestData(builder) + 696 AndroidTestData(builder) +
670 api.step_data('read SKP_VERSION', 697 api.step_data('read SKP_VERSION',
671 stdout=api.raw_io.output('42')) + 698 stdout=api.raw_io.output('42')) +
672 api.step_data('read SK_IMAGE_VERSION', 699 api.step_data('read SK_IMAGE_VERSION',
673 stdout=api.raw_io.output('2')) + 700 stdout=api.raw_io.output('2')) +
701 api.step_data('read SVG_VERSION',
702 stdout=api.raw_io.output('42')) +
674 api.step_data( 703 api.step_data(
675 'exists skia_images', 704 'exists skia_images',
676 stdout=api.raw_io.output('')) 705 stdout=api.raw_io.output(''))
677 ) 706 )
678 707
679 yield ( 708 yield (
680 api.test('missing_SK_IMAGE_VERSION_device') + 709 api.test('missing_SK_IMAGE_VERSION_device') +
681 api.properties(buildername=builder, 710 api.properties(buildername=builder,
682 mastername='client.skia', 711 mastername='client.skia',
683 slavename='skiabot-linux-swarm-000', 712 slavename='skiabot-linux-swarm-000',
684 buildnumber=6, 713 buildnumber=6,
685 revision='abc123', 714 revision='abc123',
686 path_config='kitchen', 715 path_config='kitchen',
687 swarm_out_dir='[SWARM_OUT_DIR]') + 716 swarm_out_dir='[SWARM_OUT_DIR]') +
688 api.path.exists( 717 api.path.exists(
689 api.path['slave_build'].join('skia'), 718 api.path['slave_build'].join('skia'),
690 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 719 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
691 'skimage', 'VERSION'), 720 'skimage', 'VERSION'),
692 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 721 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
693 'skp', 'VERSION'), 722 'skp', 'VERSION'),
723 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
724 'svg', 'VERSION'),
694 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 725 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
695 ) + 726 ) +
696 AndroidTestData(builder) + 727 AndroidTestData(builder) +
697 api.step_data('read SKP_VERSION', 728 api.step_data('read SKP_VERSION',
698 stdout=api.raw_io.output('42')) + 729 stdout=api.raw_io.output('42')) +
699 api.step_data('read SK_IMAGE_VERSION', 730 api.step_data('read SK_IMAGE_VERSION',
700 retcode=1) + 731 retcode=1) +
732 api.step_data('read SVG_VERSION',
733 stdout=api.raw_io.output('42')) +
701 api.step_data( 734 api.step_data(
702 'exists skia_images', 735 'exists skia_images',
703 stdout=api.raw_io.output('')) 736 stdout=api.raw_io.output(''))
704 ) 737 )
705 738
706 yield ( 739 yield (
740 api.test('download_and_push_svgs') +
741 api.properties(buildername=builder,
742 mastername='client.skia',
743 slavename='skiabot-linux-swarm-000',
744 buildnumber=6,
745 revision='abc123',
746 path_config='kitchen',
747 swarm_out_dir='[SWARM_OUT_DIR]') +
748 api.path.exists(
749 api.path['slave_build'].join('skia'),
750 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
751 'skimage', 'VERSION'),
752 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
753 'skp', 'VERSION'),
754 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
755 'svg', 'VERSION'),
756 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
757 ) +
758 AndroidTestData(builder) +
759 api.step_data('read SKP_VERSION',
760 stdout=api.raw_io.output('42')) +
761 api.step_data('read SK_IMAGE_VERSION',
762 stdout=api.raw_io.output('42')) +
763 api.step_data('read SVG_VERSION',
764 stdout=api.raw_io.output('2')) +
765 api.step_data(
766 'exists svgs',
767 stdout=api.raw_io.output(''))
768 )
769
770 yield (
771 api.test('missing_SVG_VERSION_device') +
772 api.properties(buildername=builder,
773 mastername='client.skia',
774 slavename='skiabot-linux-swarm-000',
775 buildnumber=6,
776 revision='abc123',
777 path_config='kitchen',
778 swarm_out_dir='[SWARM_OUT_DIR]') +
779 api.path.exists(
780 api.path['slave_build'].join('skia'),
781 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
782 'skimage', 'VERSION'),
783 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
784 'skp', 'VERSION'),
785 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
786 'svg', 'VERSION'),
787 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
788 ) +
789 AndroidTestData(builder) +
790 api.step_data('read SKP_VERSION',
791 stdout=api.raw_io.output('42')) +
792 api.step_data('read SK_IMAGE_VERSION',
793 stdout=api.raw_io.output('42')) +
794 api.step_data('read SVG_VERSION',
795 retcode=1) +
796 api.step_data(
797 'exists svgs',
798 stdout=api.raw_io.output(''))
799 )
800
801 yield (
707 api.test('adb_in_path') + 802 api.test('adb_in_path') +
708 api.properties(buildername=builder, 803 api.properties(buildername=builder,
709 mastername='client.skia', 804 mastername='client.skia',
710 slavename='skiabot-linux-swarm-000', 805 slavename='skiabot-linux-swarm-000',
711 buildnumber=6, 806 buildnumber=6,
712 revision='abc123', 807 revision='abc123',
713 path_config='kitchen', 808 path_config='kitchen',
714 swarm_out_dir='[SWARM_OUT_DIR]') + 809 swarm_out_dir='[SWARM_OUT_DIR]') +
715 api.path.exists( 810 api.path.exists(
716 api.path['slave_build'].join('skia'), 811 api.path['slave_build'].join('skia'),
717 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 812 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
718 'skimage', 'VERSION'), 813 'skimage', 'VERSION'),
719 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 814 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
720 'skp', 'VERSION'), 815 'skp', 'VERSION'),
816 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
817 'svg', 'VERSION'),
721 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 818 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
722 ) + 819 ) +
723 AndroidTestData(builder, adb='/usr/bin/adb') + 820 AndroidTestData(builder, adb='/usr/bin/adb') +
724 api.step_data('read SKP_VERSION', 821 api.step_data('read SKP_VERSION',
725 stdout=api.raw_io.output('42')) + 822 stdout=api.raw_io.output('42')) +
726 api.step_data('read SK_IMAGE_VERSION', 823 api.step_data('read SK_IMAGE_VERSION',
824 stdout=api.raw_io.output('42')) +
825 api.step_data('read SVG_VERSION',
727 stdout=api.raw_io.output('42')) 826 stdout=api.raw_io.output('42'))
728 ) 827 )
729 828
730 builder = 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot' 829 builder = 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot'
731 yield ( 830 yield (
732 api.test('big_issue_number') + 831 api.test('big_issue_number') +
733 api.properties(buildername=builder, 832 api.properties(buildername=builder,
734 mastername='client.skia.compile', 833 mastername='client.skia.compile',
735 slavename='skiabot-linux-swarm-000', 834 slavename='skiabot-linux-swarm-000',
736 buildnumber=5, 835 buildnumber=5,
737 revision='abc123', 836 revision='abc123',
738 path_config='kitchen', 837 path_config='kitchen',
739 swarm_out_dir='[SWARM_OUT_DIR]', 838 swarm_out_dir='[SWARM_OUT_DIR]',
740 rietveld='https://codereview.chromium.org', 839 rietveld='https://codereview.chromium.org',
741 patchset=1, 840 patchset=1,
742 issue=2147533002L) + 841 issue=2147533002L) +
743 api.path.exists( 842 api.path.exists(
744 api.path['slave_build'].join('skia'), 843 api.path['slave_build'].join('skia'),
745 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 844 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
746 'skimage', 'VERSION'), 845 'skimage', 'VERSION'),
747 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets', 846 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
748 'skp', 'VERSION'), 847 'skp', 'VERSION'),
848 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
849 'svg', 'VERSION'),
749 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 850 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
750 ) + 851 ) +
751 api.platform('win', 64) 852 api.platform('win', 64)
752 ) 853 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698