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

Side by Side Diff: scripts/slave/recipes/skia/swarm_test.py

Issue 2162563002: [Skia] Convert Sk Images to a CIPD package (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Fix whitespace Created 4 years, 5 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 'recipe_engine/json', 10 'recipe_engine/json',
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 test = ( 76 test = (
77 api.test(builder) + 77 api.test(builder) +
78 api.properties(buildername=builder, 78 api.properties(buildername=builder,
79 mastername=mastername, 79 mastername=mastername,
80 slavename=slavename, 80 slavename=slavename,
81 buildnumber=5, 81 buildnumber=5,
82 revision='abc123', 82 revision='abc123',
83 swarm_out_dir='[SWARM_OUT_DIR]') + 83 swarm_out_dir='[SWARM_OUT_DIR]') +
84 api.path.exists( 84 api.path.exists(
85 api.path['slave_build'].join('skia'), 85 api.path['slave_build'].join('skia'),
86 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
87 'skimage', 'VERSION'),
86 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 88 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
87 ) 89 )
88 ) 90 )
89 if ('Android' in builder and 91 if ('Android' in builder and
90 ('Test' in builder or 'Perf' in builder) and 92 ('Test' in builder or 'Perf' in builder) and
91 not 'Appurify' in builder): 93 not 'Appurify' in builder):
92 test += AndroidTestData(builder) 94 test += AndroidTestData(builder)
93 if 'Trybot' in builder: 95 if 'Trybot' in builder:
94 test += api.properties(issue=500, 96 test += api.properties(issue=500,
95 patchset=1, 97 patchset=1,
96 rietveld='https://codereview.chromium.org') 98 rietveld='https://codereview.chromium.org')
97 if 'Win' in builder: 99 if 'Win' in builder:
98 test += api.platform('win', 64) 100 test += api.platform('win', 64)
99 101
100 102
101 yield test 103 yield test
102 104
103 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug' 105 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug'
104 yield ( 106 yield (
105 api.test('failed_dm') + 107 api.test('failed_dm') +
106 api.properties(buildername=builder, 108 api.properties(buildername=builder,
107 mastername='client.skia', 109 mastername='client.skia',
108 slavename='skiabot-linux-swarm-000', 110 slavename='skiabot-linux-swarm-000',
109 buildnumber=6, 111 buildnumber=6,
110 revision='abc123', 112 revision='abc123',
111 swarm_out_dir='[SWARM_OUT_DIR]') + 113 swarm_out_dir='[SWARM_OUT_DIR]') +
112 api.path.exists( 114 api.path.exists(
113 api.path['slave_build'].join('skia'), 115 api.path['slave_build'].join('skia'),
116 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
117 'skimage', 'VERSION'),
114 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 118 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
115 ) + 119 ) +
116 api.step_data('dm', retcode=1) 120 api.step_data('dm', retcode=1)
117 ) 121 )
118 122
119 builder = 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug' 123 builder = 'Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug'
120 yield ( 124 yield (
121 api.test('failed_get_hashes') + 125 api.test('failed_get_hashes') +
122 api.properties(buildername=builder, 126 api.properties(buildername=builder,
123 mastername='client.skia', 127 mastername='client.skia',
124 slavename='skiabot-linux-swarm-000', 128 slavename='skiabot-linux-swarm-000',
125 buildnumber=6, 129 buildnumber=6,
126 revision='abc123', 130 revision='abc123',
127 swarm_out_dir='[SWARM_OUT_DIR]') + 131 swarm_out_dir='[SWARM_OUT_DIR]') +
128 api.path.exists( 132 api.path.exists(
129 api.path['slave_build'].join('skia'), 133 api.path['slave_build'].join('skia'),
134 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
135 'skimage', 'VERSION'),
130 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 136 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
131 ) + 137 ) +
132 AndroidTestData(builder) + 138 AndroidTestData(builder) +
133 api.step_data('read SKP_VERSION', 139 api.step_data('read SKP_VERSION',
134 stdout=api.raw_io.output('42')) + 140 stdout=api.raw_io.output('42')) +
135 api.step_data('read SK_IMAGE_VERSION', 141 api.step_data('read SK_IMAGE_VERSION',
136 stdout=api.raw_io.output('42')) + 142 stdout=api.raw_io.output('42')) +
137 api.step_data('get uninteresting hashes', retcode=1) + 143 api.step_data('get uninteresting hashes', retcode=1)
138 api.path.exists(
139 api.path['slave_build'].join('skia'),
140 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
141 )
142 ) 144 )
143 145
144 yield ( 146 yield (
145 api.test('download_and_push_skps') + 147 api.test('download_and_push_skps') +
146 api.properties(buildername=builder, 148 api.properties(buildername=builder,
147 mastername='client.skia', 149 mastername='client.skia',
148 slavename='skiabot-linux-swarm-000', 150 slavename='skiabot-linux-swarm-000',
149 buildnumber=6, 151 buildnumber=6,
150 revision='abc123', 152 revision='abc123',
151 swarm_out_dir='[SWARM_OUT_DIR]') + 153 swarm_out_dir='[SWARM_OUT_DIR]') +
152 api.path.exists( 154 api.path.exists(
153 api.path['slave_build'].join('skia'), 155 api.path['slave_build'].join('skia'),
156 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
157 'skimage', 'VERSION'),
154 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 158 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
155 ) + 159 ) +
156 AndroidTestData(builder) + 160 AndroidTestData(builder) +
157 api.step_data('read SKP_VERSION', 161 api.step_data('read SKP_VERSION',
158 stdout=api.raw_io.output('2')) + 162 stdout=api.raw_io.output('2')) +
159 api.step_data('read SK_IMAGE_VERSION', 163 api.step_data('read SK_IMAGE_VERSION',
160 stdout=api.raw_io.output('42')) + 164 stdout=api.raw_io.output('42')) +
161 api.step_data( 165 api.step_data(
162 'exists skps', 166 'exists skps',
163 stdout=api.raw_io.output('')) + 167 stdout=api.raw_io.output(''))
164 api.path.exists(
165 api.path['slave_build'].join('skia'),
166 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
167 )
168 ) 168 )
169 169
170 yield ( 170 yield (
171 api.test('missing_SKP_VERSION_device') + 171 api.test('missing_SKP_VERSION_device') +
172 api.properties(buildername=builder, 172 api.properties(buildername=builder,
173 mastername='client.skia', 173 mastername='client.skia',
174 slavename='skiabot-linux-swarm-000', 174 slavename='skiabot-linux-swarm-000',
175 buildnumber=6, 175 buildnumber=6,
176 revision='abc123', 176 revision='abc123',
177 swarm_out_dir='[SWARM_OUT_DIR]') + 177 swarm_out_dir='[SWARM_OUT_DIR]') +
178 api.path.exists( 178 api.path.exists(
179 api.path['slave_build'].join('skia'), 179 api.path['slave_build'].join('skia'),
180 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
181 'skimage', 'VERSION'),
180 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 182 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
181 ) + 183 ) +
182 AndroidTestData(builder) + 184 AndroidTestData(builder) +
183 api.step_data('read SKP_VERSION', 185 api.step_data('read SKP_VERSION',
184 retcode=1) + 186 retcode=1) +
185 api.step_data('read SK_IMAGE_VERSION', 187 api.step_data('read SK_IMAGE_VERSION',
186 stdout=api.raw_io.output('42')) + 188 stdout=api.raw_io.output('42')) +
187 api.step_data( 189 api.step_data(
188 'exists skps', 190 'exists skps',
189 stdout=api.raw_io.output('')) + 191 stdout=api.raw_io.output(''))
190 api.path.exists(
191 api.path['slave_build'].join('skia'),
192 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
193 )
194 ) 192 )
195 193
196 yield ( 194 yield (
197 api.test('download_and_push_skimage') + 195 api.test('download_and_push_skimage') +
198 api.properties(buildername=builder, 196 api.properties(buildername=builder,
199 mastername='client.skia', 197 mastername='client.skia',
200 slavename='skiabot-linux-swarm-000', 198 slavename='skiabot-linux-swarm-000',
201 buildnumber=6, 199 buildnumber=6,
202 revision='abc123', 200 revision='abc123',
203 swarm_out_dir='[SWARM_OUT_DIR]') + 201 swarm_out_dir='[SWARM_OUT_DIR]') +
204 api.path.exists( 202 api.path.exists(
205 api.path['slave_build'].join('skia'), 203 api.path['slave_build'].join('skia'),
204 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
205 'skimage', 'VERSION'),
206 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 206 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
207 ) + 207 ) +
208 AndroidTestData(builder) + 208 AndroidTestData(builder) +
209 api.step_data('read SKP_VERSION', 209 api.step_data('read SKP_VERSION',
210 stdout=api.raw_io.output('42')) + 210 stdout=api.raw_io.output('42')) +
211 api.step_data('read SK_IMAGE_VERSION', 211 api.step_data('read SK_IMAGE_VERSION',
212 stdout=api.raw_io.output('2')) + 212 stdout=api.raw_io.output('2')) +
213 api.step_data( 213 api.step_data(
214 'exists skia_images', 214 'exists skia_images',
215 stdout=api.raw_io.output('')) + 215 stdout=api.raw_io.output(''))
216 api.path.exists(
217 api.path['slave_build'].join('skia'),
218 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
219 )
220 ) 216 )
221 217
222 yield ( 218 yield (
223 api.test('missing_SK_IMAGE_VERSION_device') + 219 api.test('missing_SK_IMAGE_VERSION_device') +
224 api.properties(buildername=builder, 220 api.properties(buildername=builder,
225 mastername='client.skia', 221 mastername='client.skia',
226 slavename='skiabot-linux-swarm-000', 222 slavename='skiabot-linux-swarm-000',
227 buildnumber=6, 223 buildnumber=6,
228 revision='abc123', 224 revision='abc123',
229 swarm_out_dir='[SWARM_OUT_DIR]') + 225 swarm_out_dir='[SWARM_OUT_DIR]') +
230 api.path.exists( 226 api.path.exists(
231 api.path['slave_build'].join('skia'), 227 api.path['slave_build'].join('skia'),
228 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
229 'skimage', 'VERSION'),
232 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 230 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
233 ) + 231 ) +
234 AndroidTestData(builder) + 232 AndroidTestData(builder) +
235 api.step_data('read SKP_VERSION', 233 api.step_data('read SKP_VERSION',
236 stdout=api.raw_io.output('42')) + 234 stdout=api.raw_io.output('42')) +
237 api.step_data('read SK_IMAGE_VERSION', 235 api.step_data('read SK_IMAGE_VERSION',
238 retcode=1) + 236 retcode=1) +
239 api.step_data( 237 api.step_data(
240 'exists skia_images', 238 'exists skia_images',
241 stdout=api.raw_io.output('')) + 239 stdout=api.raw_io.output(''))
242 api.path.exists(
243 api.path['slave_build'].join('skia'),
244 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
245 )
246 ) 240 )
247 241
248 yield ( 242 yield (
249 api.test('adb_in_path') + 243 api.test('adb_in_path') +
250 api.properties(buildername=builder, 244 api.properties(buildername=builder,
251 mastername='client.skia', 245 mastername='client.skia',
252 slavename='skiabot-linux-swarm-000', 246 slavename='skiabot-linux-swarm-000',
253 buildnumber=6, 247 buildnumber=6,
254 revision='abc123', 248 revision='abc123',
255 swarm_out_dir='[SWARM_OUT_DIR]') + 249 swarm_out_dir='[SWARM_OUT_DIR]') +
256 api.path.exists( 250 api.path.exists(
257 api.path['slave_build'].join('skia'), 251 api.path['slave_build'].join('skia'),
252 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
253 'skimage', 'VERSION'),
258 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 254 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
259 ) + 255 ) +
260 AndroidTestData(builder, adb='/usr/bin/adb') + 256 AndroidTestData(builder, adb='/usr/bin/adb') +
261 api.step_data('read SKP_VERSION', 257 api.step_data('read SKP_VERSION',
262 stdout=api.raw_io.output('42')) + 258 stdout=api.raw_io.output('42')) +
263 api.step_data('read SK_IMAGE_VERSION', 259 api.step_data('read SK_IMAGE_VERSION',
264 stdout=api.raw_io.output('42')) + 260 stdout=api.raw_io.output('42'))
265 api.path.exists(
266 api.path['slave_build'].join('skia'),
267 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
268 )
269 ) 261 )
270 262
263 builder = 'Test-Win8-MSVC-ShuttleB-CPU-AVX2-x86_64-Release-Trybot'
271 yield ( 264 yield (
272 api.test('big_issue_number') + 265 api.test('big_issue_number') +
273 api.properties(buildername='Build-Win-MSVC-x86-Debug', 266 api.properties(buildername=builder,
274 mastername='client.skia.compile', 267 mastername='client.skia.compile',
275 slavename='skiabot-linux-swarm-000', 268 slavename='skiabot-linux-swarm-000',
276 buildnumber=5, 269 buildnumber=5,
277 revision='abc123', 270 revision='abc123',
278 swarm_out_dir='[SWARM_OUT_DIR]', 271 swarm_out_dir='[SWARM_OUT_DIR]',
279 rietveld='https://codereview.chromium.org', 272 rietveld='https://codereview.chromium.org',
280 patchset=1, 273 patchset=1,
281 issue=2147533002L) + 274 issue=2147533002L) +
282 api.path.exists( 275 api.path.exists(
283 api.path['slave_build'].join('skia'), 276 api.path['slave_build'].join('skia'),
277 api.path['slave_build'].join('skia', 'infra', 'bots', 'assets',
278 'skimage', 'VERSION'),
284 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt') 279 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
285 ) + 280 ) +
286 api.platform('win', 64) 281 api.platform('win', 64)
287 ) 282 )
283
284 builder = 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug'
285 yield (
286 api.test('legacy_skimage_version') +
287 api.properties(buildername=builder,
288 mastername='client.skia',
289 slavename='skiabot-linux-swarm-000',
290 buildnumber=6,
291 revision='abc123',
292 swarm_out_dir='[SWARM_OUT_DIR]') +
293 api.path.exists(
294 api.path['slave_build'].join('skia'),
295 api.path['slave_build'].join('tmp', 'uninteresting_hashes.txt')
296 )
297 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698