279 builder = 'BuildStats-Debian10-EMCC-wasm-Release-PathKit'
280 yield (
281 api.test('normal_bot') +
282 api.properties(buildername=builder,
283 repository='https://skia.googlesource.com/skia.git',
284 revision='abc123',
285 swarm_out_dir='[SWARM_OUT_DIR]',
286 path_config='kitchen') +
287 api.step_data('get swarming bot id',
288 stdout=api.raw_io.output('skia-bot-123')) +
289 api.step_data('get swarming task id',
290 stdout=api.raw_io.output('123456abc')) +
291 api.step_data('Analyze [START_DIR]/build/pathkit.js.mem',
292 stdout=api.raw_io.output(sample_web)) +
293 api.step_data('Analyze [START_DIR]/build/libskia.so',
294 stdout=api.raw_io.output(sample_cpp)) +
295 api.step_data('Analyze wasm',
296 stdout=api.raw_io.output(sample_wasm)) +
297 api.step_data('Analyze flutter',
298 stdout=api.raw_io.output(sample_flutter))
299 )
300
301 yield (
302 api.test('trybot') +
303 api.properties(buildername=builder,
304 repository='https://skia.googlesource.com/skia.git',
305 revision='abc123',
306 swarm_out_dir='[SWARM_OUT_DIR]',
307 patch_repo='https://skia.googlesource.com/skia.git',
308 path_config='kitchen') +
309 api.step_data('get swarming bot id',
310 stdout=api.raw_io.output('skia-bot-123')) +
311 api.step_data('get swarming task id',
312 stdout=api.raw_io.output('123456abc')) +
313 api.properties(patch_storage='gerrit') +
314 api.properties.tryserver(
315 buildername=builder,
316 gerrit_project='skia',
317 gerrit_url='https://skia-review.googlesource.com/',
318 ) +
319 api.step_data('Analyze [START_DIR]/build/pathkit.js.mem',
320 stdout=api.raw_io.output(sample_web)) +
321 api.step_data('Analyze [START_DIR]/build/libskia.so',
322 stdout=api.raw_io.output(sample_cpp)) +
323 api.step_data('Analyze wasm',
324 stdout=api.raw_io.output(sample_wasm)) +
325 api.step_data('Analyze flutter',
326 stdout=api.raw_io.output(sample_flutter))
327 )
328