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

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

Issue 2240153002: Turn on SVGs for all Test bots (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Initial upload 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 trigger. 6 # Recipe module for Skia Swarming trigger.
7 7
8 8
9 import os 9 import os
10 import json 10 import json
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_TEST) 676 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_TEST)
677 do_perf_steps = ( 677 do_perf_steps = (
678 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_PERF) 678 builder_cfg['role'] == api.builder_name_schema.BUILDER_ROLE_PERF)
679 679
680 if not (do_test_steps or do_perf_steps): 680 if not (do_test_steps or do_perf_steps):
681 return 681 return
682 682
683 # SKPs, SkImages, SVGs. 683 # SKPs, SkImages, SVGs.
684 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skp')) 684 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skp'))
685 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skimage')) 685 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'skimage'))
686 # TODO(rmistry): Remove the below once we want to enable SVGs for all bots. 686 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'svg'))
687 if (api.properties['buildername'] ==
688 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot' or
689 api.properties['buildername'] ==
690 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared'):
691 cipd_packages.append(cipd_pkg(api, infrabots_dir, 'svg'))
692 687
693 # Trigger test and perf tasks. 688 # Trigger test and perf tasks.
694 test_task = None 689 test_task = None
695 perf_task = None 690 perf_task = None
696 if do_test_steps: 691 if do_test_steps:
697 test_task = test_steps_trigger(api, builder_cfg, got_revision, 692 test_task = test_steps_trigger(api, builder_cfg, got_revision,
698 infrabots_dir, extra_hashes, cipd_packages) 693 infrabots_dir, extra_hashes, cipd_packages)
699 if do_perf_steps: 694 if do_perf_steps:
700 perf_task = perf_steps_trigger(api, builder_cfg, got_revision, 695 perf_task = perf_steps_trigger(api, builder_cfg, got_revision,
701 infrabots_dir, extra_hashes, cipd_packages) 696 infrabots_dir, extra_hashes, cipd_packages)
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 test += api.path.exists(*paths) 757 test += api.path.exists(*paths)
763 758
764 return test 759 return test
765 760
766 761
767 def GenTests(api): 762 def GenTests(api):
768 for mastername, slaves in TEST_BUILDERS.iteritems(): 763 for mastername, slaves in TEST_BUILDERS.iteritems():
769 for slavename, builders_by_slave in slaves.iteritems(): 764 for slavename, builders_by_slave in slaves.iteritems():
770 for builder in builders_by_slave: 765 for builder in builders_by_slave:
771 yield test_for_bot(api, builder, mastername, slavename) 766 yield test_for_bot(api, builder, mastername, slavename)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698