blob: 3e8e78e11a91c24b306ba3640d01e8b6d43b4a51 [file] [log] [blame]
borenet1ed2ae42016-07-26 11:52:17 -07001# Copyright 2016 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5
6# Recipe module for Skia Swarming perf.
7
8
Eric Boren4c7754c2017-04-10 08:19:10 -04009import calendar
10
11
borenet1ed2ae42016-07-26 11:52:17 -070012DEPS = [
Eric Boren4c7754c2017-04-10 08:19:10 -040013 'core',
Eric Boren896af752017-04-24 13:22:56 -040014 'env',
15 'flavor',
Eric Boren4c7754c2017-04-10 08:19:10 -040016 'recipe_engine/json',
borenet1ed2ae42016-07-26 11:52:17 -070017 'recipe_engine/path',
18 'recipe_engine/platform',
19 'recipe_engine/properties',
20 'recipe_engine/raw_io',
Eric Boren3e2ffd72017-06-16 13:10:22 -040021 'recipe_engine/shutil',
Eric Boren4c7754c2017-04-10 08:19:10 -040022 'recipe_engine/step',
23 'recipe_engine/time',
24 'run',
Eric Boren4c7754c2017-04-10 08:19:10 -040025 'vars',
borenet1ed2ae42016-07-26 11:52:17 -070026]
27
28
Eric Boren89cd3572017-06-28 13:50:22 -040029def nanobench_flags(api, bot):
Eric Boren4c7754c2017-04-10 08:19:10 -040030 args = ['--pre_log']
31
32 if 'GPU' in bot:
33 args.append('--images')
34 args.extend(['--gpuStatsDump', 'true'])
35
36 if 'Android' in bot and 'GPU' in bot:
37 args.extend(['--useThermalManager', '1,1,10,1000'])
38
39 args.extend(['--scales', '1.0', '1.1'])
40
41 if 'iOS' in bot:
42 args.extend(['--skps', 'ignore_skps'])
43
44 configs = ['8888', 'nonrendering', 'hwui' ]
45
46 if '-arm-' not in bot:
47 # For Android CPU tests, these take too long and cause the task to time out.
48 configs += [ 'f16', 'srgb' ]
49 if '-GCE-' in bot:
50 configs += [ '565' ]
51
52 gl_prefix = 'gl'
53 sample_count = '8'
54 if 'Android' in bot or 'iOS' in bot:
55 sample_count = '4'
56 # The NVIDIA_Shield has a regular OpenGL implementation. We bench that
57 # instead of ES.
58 if 'NVIDIA_Shield' not in bot:
59 gl_prefix = 'gles'
60 # The NP produces a long error stream when we run with MSAA.
61 # iOS crashes (skia:6399)
62 if 'NexusPlayer' in bot or 'iOS' in bot:
63 sample_count = ''
64 elif 'Intel' in bot:
65 sample_count = ''
66 elif 'ChromeOS' in bot:
67 gl_prefix = 'gles'
68
69 configs.append(gl_prefix)
70 if sample_count is not '':
71 configs.extend([gl_prefix + 'msaa' + sample_count,
72 gl_prefix + 'nvpr' + sample_count,
73 gl_prefix + 'nvprdit' + sample_count])
74
75 # We want to test both the OpenGL config and the GLES config on Linux Intel:
76 # GL is used by Chrome, GLES is used by ChromeOS.
Eric Boren89cd3572017-06-28 13:50:22 -040077 if 'Intel' in bot and api.vars.is_linux:
Eric Boren4c7754c2017-04-10 08:19:10 -040078 configs.append('gles')
79
80 # Bench instanced rendering on a limited number of platforms
81 inst_config = gl_prefix + 'inst'
Kevin Lubickfe079d42017-04-12 08:31:48 -040082 if 'PixelC' in bot or 'NVIDIA_Shield' in bot or 'MacMini6.2' in bot:
Eric Boren4c7754c2017-04-10 08:19:10 -040083 configs.extend([inst_config, inst_config + sample_count])
84
85 if 'CommandBuffer' in bot:
86 configs = ['commandbuffer']
87 if 'Vulkan' in bot:
88 configs = ['vk']
89
90 if 'ANGLE' in bot:
91 # Test only ANGLE configs.
92 configs = ['angle_d3d11_es2']
93 if sample_count is not '':
94 configs.append('angle_d3d11_es2_msaa' + sample_count)
95
96 if 'ChromeOS' in bot:
97 # Just run GLES for now - maybe add gles_msaa4 in the future
98 configs = ['gles']
99
100 args.append('--config')
101 args.extend(configs)
102
103 if 'Valgrind' in bot:
104 # Don't care about Valgrind performance.
105 args.extend(['--loops', '1'])
106 args.extend(['--samples', '1'])
107 # Ensure that the bot framework does not think we have timed out.
108 args.extend(['--keepAlive', 'true'])
109
Ben Wagner47ac0242017-06-27 13:44:36 -0400110 # Some people don't like verbose output.
111 verbose = False
112
Eric Boren4c7754c2017-04-10 08:19:10 -0400113 match = []
114 if 'Android' in bot:
115 # Segfaults when run as GPU bench. Very large texture?
116 match.append('~blurroundrect')
117 match.append('~patch_grid') # skia:2847
118 match.append('~desk_carsvg')
119 if 'NexusPlayer' in bot:
120 match.append('~desk_unicodetable')
121 if 'Nexus5' in bot:
122 match.append('~keymobi_shop_mobileweb_ebay_com.skp') # skia:5178
123 if 'iOS' in bot:
124 match.append('~blurroundrect')
125 match.append('~patch_grid') # skia:2847
126 match.append('~desk_carsvg')
127 match.append('~keymobi')
128 match.append('~path_hairline')
129 match.append('~GLInstancedArraysBench') # skia:4714
130 if 'IntelIris540' in bot and 'ANGLE' in bot:
131 match.append('~tile_image_filter_tiled_64') # skia:6082
Ben Wagner1aa23692017-06-09 10:24:39 -0400132 if ('Vulkan' in bot and ('IntelIris540' in bot or 'IntelIris640' in bot) and
133 'Win' in bot):
Eric Boren4c7754c2017-04-10 08:19:10 -0400134 # skia:6398
135 match.append('~GM_varied_text_clipped_lcd')
136 match.append('~GM_varied_text_ignorable_clip_lcd')
137 match.append('~Xfermode_DstATop_aa')
138 match.append('~Xfermode_SrcIn_aa')
139 match.append('~Xfermode_SrcOut_aa')
140 match.append('~Xfermode_Src_aa')
141 match.append('~fontscaler_lcd')
142 match.append('~rotated_rects_aa_alternating_transparent_and_opaque_src')
143 match.append('~rotated_rects_aa_changing_transparent_src')
144 match.append('~rotated_rects_aa_same_transparent_src')
145 match.append('~shadermask_LCD_FF')
146 match.append('~srcmode_rects_1')
147 match.append('~text_16_LCD_88')
148 match.append('~text_16_LCD_BK')
149 match.append('~text_16_LCD_FF')
150 match.append('~text_16_LCD_WT')
Eric Boren89cd3572017-06-28 13:50:22 -0400151 if ('Intel' in bot and api.vars.is_linux and not 'Vulkan' in bot):
Ben Wagner47ac0242017-06-27 13:44:36 -0400152 # TODO(dogben): Track down what's causing bots to die.
153 verbose = True
Eric Boren4c7754c2017-04-10 08:19:10 -0400154 if 'Vulkan' in bot and 'NexusPlayer' in bot:
Greg Daniel09bcf732017-05-25 14:42:05 -0400155 match.append('~Xfermode') # skia:6691
Ben Wagner9b51d142017-05-25 12:48:16 -0400156 if 'ANGLE' in bot and 'Radeon' in bot and 'Release' in bot:
Brian Osman6a1a5f72017-04-21 15:38:27 -0400157 # skia:6534
158 match.append('~shapes_mixed_10000_32x33')
Ben Wagner9b51d142017-05-25 12:48:16 -0400159 match.append('~shapes_oval_10000_32x32')
Brian Osman6a1a5f72017-04-21 15:38:27 -0400160 match.append('~shapes_oval_10000_32x33')
Ben Wagner9b51d142017-05-25 12:48:16 -0400161 match.append('~shapes_rect_100_500x500')
162 match.append('~shapes_rrect_10000_32x32')
Ben Wagner38a56012017-04-28 17:13:32 -0400163 if 'ANGLE' in bot and 'GTX960' in bot and 'Release' in bot:
164 # skia:6534
165 match.append('~shapes_mixed_10000_32x33')
Ben Wagner9b51d142017-05-25 12:48:16 -0400166 match.append('~shapes_rect_100_500x500')
167 match.append('~shapes_rrect_10000_32x32')
Eric Boren4c7754c2017-04-10 08:19:10 -0400168
169 # We do not need or want to benchmark the decodes of incomplete images.
170 # In fact, in nanobench we assert that the full image decode succeeds.
171 match.append('~inc0.gif')
172 match.append('~inc1.gif')
173 match.append('~incInterlaced.gif')
174 match.append('~inc0.jpg')
175 match.append('~incGray.jpg')
176 match.append('~inc0.wbmp')
177 match.append('~inc1.wbmp')
178 match.append('~inc0.webp')
179 match.append('~inc1.webp')
180 match.append('~inc0.ico')
181 match.append('~inc1.ico')
182 match.append('~inc0.png')
183 match.append('~inc1.png')
184 match.append('~inc2.png')
185 match.append('~inc12.png')
186 match.append('~inc13.png')
187 match.append('~inc14.png')
188 match.append('~inc0.webp')
189 match.append('~inc1.webp')
190
191 if match:
192 args.append('--match')
193 args.extend(match)
194
Ben Wagner47ac0242017-06-27 13:44:36 -0400195 if verbose:
196 args.append('--verbose')
197
Eric Boren4c7754c2017-04-10 08:19:10 -0400198 return args
199
200
201def perf_steps(api):
202 """Run Skia benchmarks."""
203 if api.vars.upload_perf_results:
204 api.flavor.create_clean_device_dir(
205 api.flavor.device_dirs.perf_data_dir)
206
207 # Run nanobench.
208 properties = [
209 '--properties',
210 'gitHash', api.vars.got_revision,
Eric Boren4c7754c2017-04-10 08:19:10 -0400211 ]
212 if api.vars.is_trybot:
213 properties.extend([
214 'issue', api.vars.issue,
215 'patchset', api.vars.patchset,
216 'patch_storage', api.vars.patch_storage,
217 ])
Eric Borenf9aa9e52017-04-10 09:56:10 -0400218 properties.extend(['swarming_bot_id', api.vars.swarming_bot_id])
219 properties.extend(['swarming_task_id', api.vars.swarming_task_id])
Eric Boren4c7754c2017-04-10 08:19:10 -0400220
221 target = 'nanobench'
222 args = [
223 target,
224 '--undefok', # This helps branches that may not know new flags.
225 '-i', api.flavor.device_dirs.resource_dir,
226 '--skps', api.flavor.device_dirs.skp_dir,
227 '--images', api.flavor.device_path_join(
228 api.flavor.device_dirs.images_dir, 'nanobench'),
229 ]
230
231 # Do not run svgs on Valgrind.
232 if 'Valgrind' not in api.vars.builder_name:
233 if ('Vulkan' not in api.vars.builder_name or
234 'NexusPlayer' not in api.vars.builder_name):
235 args.extend(['--svgs', api.flavor.device_dirs.svg_dir])
236
237 skip_flag = None
238 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
239 skip_flag = '--nogpu'
240 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
241 skip_flag = '--nocpu'
242 if skip_flag:
243 args.append(skip_flag)
Eric Boren89cd3572017-06-28 13:50:22 -0400244 args.extend(nanobench_flags(api, api.vars.builder_name))
Eric Boren4c7754c2017-04-10 08:19:10 -0400245
246 if 'Chromecast' in api.vars.builder_cfg.get('os', ''):
247 # Due to limited disk space, run a watered down perf run on Chromecast.
248 args = [
249 target,
Kevin Lubickffce0792017-05-24 15:30:35 -0400250 '--config',
Kevin Lubickb6d09b72017-06-15 15:21:17 -0400251 '8888',
Kevin Lubickffce0792017-05-24 15:30:35 -0400252 'gles',
Kevin Lubickb6d09b72017-06-15 15:21:17 -0400253 ]
254 if api.vars.builder_cfg.get('cpu_or_gpu') == 'CPU':
255 args.extend(['--nogpu'])
256 elif api.vars.builder_cfg.get('cpu_or_gpu') == 'GPU':
257 args.extend(['--nocpu'])
258 args.extend([
Kevin Lubickffce0792017-05-24 15:30:35 -0400259 '-i', api.flavor.device_dirs.resource_dir,
260 '--images', api.flavor.device_path_join(
261 api.flavor.device_dirs.resource_dir, 'color_wheel.jpg'),
Kevin Lubickc78a2d72017-06-01 15:51:06 -0400262 '--skps', api.flavor.device_dirs.skp_dir,
Kevin Lubickffce0792017-05-24 15:30:35 -0400263 '--pre_log',
264 '--match', # skia:6581
265 '~matrixconvolution',
266 '~blur_image_filter',
267 '~blur_0.01',
268 '~GM_animated-image-blurs',
Kevin Lubickb6d09b72017-06-15 15:21:17 -0400269 ])
Eric Boren4c7754c2017-04-10 08:19:10 -0400270
271 if api.vars.upload_perf_results:
272 now = api.time.utcnow()
273 ts = int(calendar.timegm(now.utctimetuple()))
274 json_path = api.flavor.device_path_join(
275 api.flavor.device_dirs.perf_data_dir,
276 'nanobench_%s_%d.json' % (api.vars.got_revision, ts))
277 args.extend(['--outResultsFile', json_path])
278 args.extend(properties)
279
280 keys_blacklist = ['configuration', 'role', 'is_trybot']
281 args.append('--key')
282 for k in sorted(api.vars.builder_cfg.keys()):
283 if not k in keys_blacklist:
284 args.extend([k, api.vars.builder_cfg[k]])
285
Eric Boren896af752017-04-24 13:22:56 -0400286 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400287 if 'Ubuntu16' in api.vars.builder_name:
288 # The vulkan in this asset name simply means that the graphics driver
289 # supports Vulkan. It is also the driver used for GL code.
290 dri_path = api.vars.slave_dir.join('linux_vulkan_intel_driver_release')
291 if 'Debug' in api.vars.builder_name:
292 dri_path = api.vars.slave_dir.join('linux_vulkan_intel_driver_debug')
293
294 if 'Vulkan' in api.vars.builder_name:
295 sdk_path = api.vars.slave_dir.join('linux_vulkan_sdk', 'bin')
296 lib_path = api.vars.slave_dir.join('linux_vulkan_sdk', 'lib')
297 env.update({
298 'PATH':'%%(PATH)s:%s' % sdk_path,
299 'LD_LIBRARY_PATH': '%s:%s' % (lib_path, dri_path),
300 'LIBGL_DRIVERS_PATH': dri_path,
301 'VK_ICD_FILENAMES':'%s' % dri_path.join('intel_icd.x86_64.json'),
302 })
303 else:
304 # Even the non-vulkan NUC jobs could benefit from the newer drivers.
305 env.update({
306 'LD_LIBRARY_PATH': dri_path,
307 'LIBGL_DRIVERS_PATH': dri_path,
308 })
309
310 # See skia:2789.
Ben Wagner988d15e2017-04-27 13:08:50 -0400311 extra_config_parts = api.vars.builder_cfg.get('extra_config', '').split('_')
312 if 'AbandonGpuContext' in extra_config_parts:
Eric Boren4c7754c2017-04-10 08:19:10 -0400313 args.extend(['--abandonGpuContext', '--nocpu'])
314
Eric Boren896af752017-04-24 13:22:56 -0400315 with api.env(env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400316 api.run(api.flavor.step, target, cmd=args,
317 abort_on_failure=False)
318
319 # Copy results to swarming out dir.
320 if api.vars.upload_perf_results:
Eric Boren3e2ffd72017-06-16 13:10:22 -0400321 api.shutil.makedirs('perf_dir', api.vars.perf_data_dir, infra_step=True)
Eric Boren4c7754c2017-04-10 08:19:10 -0400322 api.flavor.copy_directory_contents_to_host(
323 api.flavor.device_dirs.perf_data_dir,
324 api.vars.perf_data_dir)
325
326
borenet1ed2ae42016-07-26 11:52:17 -0700327def RunSteps(api):
Eric Boren4c7754c2017-04-10 08:19:10 -0400328 api.core.setup()
Eric Boren896af752017-04-24 13:22:56 -0400329 env = {}
Eric Boren4c7754c2017-04-10 08:19:10 -0400330 if 'iOS' in api.vars.builder_name:
331 env['IOS_BUNDLE_ID'] = 'com.google.nanobench'
Stephan Altmueller63e843d2017-04-25 11:38:38 -0400332 env['IOS_MOUNT_POINT'] = api.vars.slave_dir.join('mnt_iosdevice')
Eric Boren896af752017-04-24 13:22:56 -0400333 with api.env(env):
Eric Boren4c7754c2017-04-10 08:19:10 -0400334 try:
335 if 'Chromecast' in api.vars.builder_name:
336 api.flavor.install(resources=True, skps=True)
337 else:
338 api.flavor.install_everything()
339 perf_steps(api)
340 finally:
341 api.flavor.cleanup_steps()
342 api.run.check_failure()
343
344
Eric Borenf9aa9e52017-04-10 09:56:10 -0400345TEST_BUILDERS = [
Kevin Lubickfe079d42017-04-12 08:31:48 -0400346 'Perf-Android-Clang-NVIDIA_Shield-GPU-TegraX1-arm64-Debug-Android_Vulkan',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400347 'Perf-Android-Clang-Nexus10-CPU-Exynos5250-arm-Release-Android',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400348 'Perf-Android-Clang-Nexus5-GPU-Adreno330-arm-Debug-Android',
349 'Perf-Android-Clang-Nexus7-GPU-Tegra3-arm-Release-Android',
350 'Perf-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-Android',
351 'Perf-Android-Clang-NexusPlayer-GPU-PowerVR-x86-Release-Android_Vulkan',
352 'Perf-Android-Clang-PixelC-GPU-TegraX1-arm64-Release-Android',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400353 'Perf-ChromeOS-Clang-Chromebook_C100p-GPU-MaliT764-arm-Release',
Kevin Lubickb6d09b72017-06-15 15:21:17 -0400354 'Perf-Chromecast-GCC-Chorizo-CPU-Cortex_A7-arm-Debug',
Kevin Lubickc78a2d72017-06-01 15:51:06 -0400355 'Perf-Chromecast-GCC-Chorizo-GPU-Cortex_A7-arm-Release',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400356 'Perf-Mac-Clang-MacMini6.2-CPU-AVX-x86_64-Release',
Robert Phillips985e1922017-05-25 07:56:01 -0400357 'Perf-Mac-Clang-MacMini6.2-GPU-IntelHD4000-x86_64-Debug-CommandBuffer',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400358 'Perf-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Release',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400359 'Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind',
360 ('Perf-Ubuntu-GCC-ShuttleA-GPU-GTX550Ti-x86_64-Release-Valgrind' +
361 '_AbandonGpuContext'),
Kevin Lubickfe079d42017-04-12 08:31:48 -0400362 'Perf-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Debug-Vulkan',
363 'Perf-Ubuntu16-Clang-NUC6i5SYK-GPU-IntelIris540-x86_64-Release',
Brian Osman6a1a5f72017-04-21 15:38:27 -0400364 'Perf-Win10-MSVC-AlphaR2-GPU-RadeonR9M470X-x86_64-Release-ANGLE',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400365 'Perf-Win10-MSVC-NUC6i5SYK-GPU-IntelIris540-x86_64-Release-ANGLE',
366 'Perf-Win10-MSVC-NUC6i5SYK-GPU-IntelIris540-x86_64-Release-Vulkan',
Ben Wagner38a56012017-04-28 17:13:32 -0400367 'Perf-Win10-MSVC-ShuttleC-GPU-GTX960-x86_64-Release-ANGLE',
Kevin Lubickfe079d42017-04-12 08:31:48 -0400368 'Perf-Win2k8-MSVC-GCE-CPU-AVX2-x86_64-Debug',
369 'Perf-Win2k8-MSVC-GCE-CPU-AVX2-x86_64-Release',
Eric Borenf9aa9e52017-04-10 09:56:10 -0400370 'Perf-iOS-Clang-iPadMini4-GPU-GX6450-arm-Release'
371]
borenet1ed2ae42016-07-26 11:52:17 -0700372
373
374def GenTests(api):
Eric Borenf9aa9e52017-04-10 09:56:10 -0400375 for builder in TEST_BUILDERS:
376 test = (
377 api.test(builder) +
378 api.properties(buildername=builder,
379 revision='abc123',
380 path_config='kitchen',
381 swarm_out_dir='[SWARM_OUT_DIR]') +
382 api.path.exists(
383 api.path['start_dir'].join('skia'),
384 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400385 'skimage', 'VERSION'),
Eric Borenf9aa9e52017-04-10 09:56:10 -0400386 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400387 'skp', 'VERSION'),
Eric Borenf9aa9e52017-04-10 09:56:10 -0400388 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Ben Wagnerf835c222017-04-30 11:14:51 -0400389 ) +
390 api.step_data('get swarming bot id',
391 stdout=api.raw_io.output('skia-bot-123')) +
392 api.step_data('get swarming task id',
393 stdout=api.raw_io.output('123456'))
Eric Borenf9aa9e52017-04-10 09:56:10 -0400394 )
Eric Borenf9aa9e52017-04-10 09:56:10 -0400395 if 'Win' in builder:
396 test += api.platform('win', 64)
Eric Boren4c7754c2017-04-10 08:19:10 -0400397
Eric Borenf9aa9e52017-04-10 09:56:10 -0400398 if 'Chromecast' in builder:
399 test += api.step_data(
400 'read chromecast ip',
401 stdout=api.raw_io.output('192.168.1.2:5555'))
402
403 if 'ChromeOS' in builder:
404 test += api.step_data(
405 'read chromeos ip',
406 stdout=api.raw_io.output('{"user_ip":"foo@127.0.0.1"}'))
407
408 yield test
Eric Boren4c7754c2017-04-10 08:19:10 -0400409
Kevin Lubickfe079d42017-04-12 08:31:48 -0400410 builder = 'Perf-Win10-MSVC-ShuttleB-GPU-IntelHD4600-x86_64-Release'
411 yield (
412 api.test('trybot') +
413 api.properties(buildername=builder,
414 revision='abc123',
415 path_config='kitchen',
416 swarm_out_dir='[SWARM_OUT_DIR]') +
417 api.properties(patch_storage='gerrit') +
418 api.properties.tryserver(
419 buildername=builder,
420 gerrit_project='skia',
421 gerrit_url='https://skia-review.googlesource.com/',
422 )+
423 api.path.exists(
424 api.path['start_dir'].join('skia'),
425 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
426 'skimage', 'VERSION'),
427 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
428 'skp', 'VERSION'),
429 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
430 'svg', 'VERSION'),
431 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
432 )
433 )
434
435 builder = 'Perf-Android-Clang-NexusPlayer-CPU-SSE4-x86-Debug-Android'
Eric Boren4c7754c2017-04-10 08:19:10 -0400436 yield (
437 api.test('failed_push') +
438 api.properties(buildername=builder,
Eric Boren4c7754c2017-04-10 08:19:10 -0400439 revision='abc123',
440 path_config='kitchen',
Eric Boren5de544b2017-01-12 08:46:20 -0500441 swarm_out_dir='[SWARM_OUT_DIR]') +
borenet1ed2ae42016-07-26 11:52:17 -0700442 api.path.exists(
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500443 api.path['start_dir'].join('skia'),
444 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400445 'skimage', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500446 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
Eric Boren4c7754c2017-04-10 08:19:10 -0400447 'skp', 'VERSION'),
448 api.path['start_dir'].join('skia', 'infra', 'bots', 'assets',
449 'svg', 'VERSION'),
Ravi Mistry9bcca6a2016-11-21 16:06:19 -0500450 api.path['start_dir'].join('tmp', 'uninteresting_hashes.txt')
Eric Boren4c7754c2017-04-10 08:19:10 -0400451 ) +
452 api.step_data('push [START_DIR]/skia/resources/* '+
453 '/sdcard/revenge_of_the_skiabot/resources', retcode=1)
borenetbfa5b452016-10-19 10:13:32 -0700454 )