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

Side by Side Diff: scripts/slave/recipe_modules/skia/api.py

Issue 1441173003: CT Skia recipe to run DM on the top 10k SKPs using swarming (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build@ct-swarming-perf
Patch Set: Fix Created 5 years 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import re 6 import re
7 import os 7 import os
8 import sys 8 import sys
9 9
10 from recipe_engine import recipe_api 10 from recipe_engine import recipe_api
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 return 'Valgrind' in builder_cfg.get('extra_config', '') 63 return 'Valgrind' in builder_cfg.get('extra_config', '')
64 64
65 65
66 def is_xsan(builder_cfg): 66 def is_xsan(builder_cfg):
67 return (builder_cfg.get('extra_config') == 'ASAN' or 67 return (builder_cfg.get('extra_config') == 'ASAN' or
68 builder_cfg.get('extra_config') == 'TSAN') 68 builder_cfg.get('extra_config') == 'TSAN')
69 69
70 70
71 class SkiaApi(recipe_api.RecipeApi): 71 class SkiaApi(recipe_api.RecipeApi):
72 72
73 def __init__(self, **kwargs):
74 super(SkiaApi, self).__init__(**kwargs)
75 self.default_env = {}
76
73 def get_flavor(self, builder_cfg): 77 def get_flavor(self, builder_cfg):
74 """Return a flavor utils object specific to the given builder.""" 78 """Return a flavor utils object specific to the given builder."""
75 if is_appurify(builder_cfg): 79 if is_appurify(builder_cfg):
76 return appurify_flavor.AppurifyFlavorUtils(self) 80 return appurify_flavor.AppurifyFlavorUtils(self)
77 elif is_android(builder_cfg): 81 elif is_android(builder_cfg):
78 return android_flavor.AndroidFlavorUtils(self) 82 return android_flavor.AndroidFlavorUtils(self)
79 elif is_chromeos(builder_cfg): 83 elif is_chromeos(builder_cfg):
80 return chromeos_flavor.ChromeOSFlavorUtils(self) 84 return chromeos_flavor.ChromeOSFlavorUtils(self)
81 elif is_cmake(builder_cfg): 85 elif is_cmake(builder_cfg):
82 return cmake_flavor.CMakeFlavorUtils(self) 86 return cmake_flavor.CMakeFlavorUtils(self)
(...skipping 18 matching lines...) Expand all
101 105
102 def gen_steps(self): 106 def gen_steps(self):
103 """Generate all build steps.""" 107 """Generate all build steps."""
104 # Setup 108 # Setup
105 self.failed = [] 109 self.failed = []
106 110
107 self.builder_name = self.m.properties['buildername'] 111 self.builder_name = self.m.properties['buildername']
108 self.master_name = self.m.properties['mastername'] 112 self.master_name = self.m.properties['mastername']
109 self.slave_name = self.m.properties['slavename'] 113 self.slave_name = self.m.properties['slavename']
110 114
111 self.default_env = {}
112 self.slave_dir = self.m.path['slave_build'] 115 self.slave_dir = self.m.path['slave_build']
113 self.skia_dir = self.slave_dir.join('skia') 116 self.skia_dir = self.slave_dir.join('skia')
114 117
115 # Check out the Skia code. 118 # Check out the Skia code.
116 self.checkout_steps() 119 self.checkout_steps()
117 120
118 # Obtain the spec for this builder from the Skia repo. Use it to set more 121 # Obtain the spec for this builder from the Skia repo. Use it to set more
119 # properties. 122 # properties.
120 fake_spec = None 123 fake_spec = None
121 if self._test_data.enabled: 124 if self._test_data.enabled:
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 # Don't bother to include role, which is always Test. 647 # Don't bother to include role, which is always Test.
645 # TryBots are uploaded elsewhere so they can use the same key. 648 # TryBots are uploaded elsewhere so they can use the same key.
646 blacklist = ['role', 'is_trybot'] 649 blacklist = ['role', 'is_trybot']
647 650
648 flat = [] 651 flat = []
649 for k in sorted(self.builder_cfg.keys()): 652 for k in sorted(self.builder_cfg.keys()):
650 if k not in blacklist: 653 if k not in blacklist:
651 flat.append(k) 654 flat.append(k)
652 flat.append(self.builder_cfg[k]) 655 flat.append(self.builder_cfg[k])
653 return flat 656 return flat
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698