OLD | NEW |
| (Empty) |
1 [ | |
2 { | |
3 "cmd": [ | |
4 "python", | |
5 "-u", | |
6 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
7 "[SLAVE_BUILD]/skia/infra/bots/assets/skp/VERSION", | |
8 "/path/to/tmp/" | |
9 ], | |
10 "name": "Get downloaded SKP VERSION" | |
11 }, | |
12 { | |
13 "cmd": [ | |
14 "python", | |
15 "-u", | |
16 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
17 "42", | |
18 "[SLAVE_BUILD]/tmp/SKP_VERSION" | |
19 ], | |
20 "name": "write SKP_VERSION" | |
21 }, | |
22 { | |
23 "cmd": [ | |
24 "python", | |
25 "-u", | |
26 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
27 "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION", | |
28 "/path/to/tmp/" | |
29 ], | |
30 "name": "Get downloaded skimage VERSION" | |
31 }, | |
32 { | |
33 "cmd": [ | |
34 "python", | |
35 "-u", | |
36 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
37 "42", | |
38 "[SLAVE_BUILD]/tmp/SK_IMAGE_VERSION" | |
39 ], | |
40 "name": "write SK_IMAGE_VERSION" | |
41 }, | |
42 { | |
43 "cmd": [ | |
44 "python", | |
45 "-u", | |
46 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
47 "[SLAVE_BUILD]/skia/infra/bots/assets/svg/VERSION", | |
48 "/path/to/tmp/" | |
49 ], | |
50 "name": "Get downloaded SVG VERSION" | |
51 }, | |
52 { | |
53 "cmd": [ | |
54 "python", | |
55 "-u", | |
56 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
57 "42", | |
58 "[SLAVE_BUILD]/tmp/SVG_VERSION" | |
59 ], | |
60 "name": "write SVG_VERSION" | |
61 }, | |
62 { | |
63 "cmd": [ | |
64 "[SLAVE_BUILD]/skia/tools/llvm_coverage_build", | |
65 "dm" | |
66 ], | |
67 "cwd": "[SLAVE_BUILD]/skia", | |
68 "env": { | |
69 "BUILDTYPE": "Coverage", | |
70 "CC": "/usr/bin/clang-3.6", | |
71 "CHROME_HEADLESS": "1", | |
72 "CXX": "/usr/bin/clang++-3.6", | |
73 "GYP_DEFINES": "skia_arch_type=x86_64 skia_clang_build=1 skia_gpu=0 skia_w
arnings_as_errors=0", | |
74 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
75 }, | |
76 "name": "build dm" | |
77 }, | |
78 { | |
79 "cmd": [ | |
80 "python", | |
81 "-u", | |
82 "\nimport os, sys\nfrom common import chromium_utils # Error? See https://
crbug.com/584783.\n\n\nif os.path.exists(sys.argv[1]):\n chromium_utils.RemoveD
irectory(sys.argv[1])\n", | |
83 "[SLAVE_BUILD]/out/coverage_results" | |
84 ], | |
85 "env": { | |
86 "PYTHONPATH": "[SLAVE_BUILD]/skia/infra/bots/.recipe_deps/build/scripts" | |
87 }, | |
88 "name": "rmtree coverage_results", | |
89 "~followup_annotations": [ | |
90 "@@@STEP_LOG_LINE@python.inline@@@@", | |
91 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", | |
92 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", | |
93 "@@@STEP_LOG_LINE@python.inline@@@@", | |
94 "@@@STEP_LOG_LINE@python.inline@@@@", | |
95 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", | |
96 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", | |
97 "@@@STEP_LOG_END@python.inline@@@" | |
98 ] | |
99 }, | |
100 { | |
101 "cmd": [ | |
102 "python", | |
103 "-u", | |
104 "\nimport sys, os\npath = sys.argv[1]\nmode = int(sys.argv[2])\nif not os.
path.isdir(path):\n if os.path.exists(path):\n print \"%s exists but is not
a dir\" % path\n sys.exit(1)\n os.makedirs(path, mode)\n", | |
105 "[SLAVE_BUILD]/out/coverage_results", | |
106 "511" | |
107 ], | |
108 "name": "makedirs coverage_results", | |
109 "~followup_annotations": [ | |
110 "@@@STEP_LOG_LINE@python.inline@@@@", | |
111 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", | |
112 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", | |
113 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", | |
114 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", | |
115 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", | |
116 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", | |
117 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", | |
118 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", | |
119 "@@@STEP_LOG_END@python.inline@@@" | |
120 ] | |
121 }, | |
122 { | |
123 "cmd": [ | |
124 "python", | |
125 "[SLAVE_BUILD]/skia/tools/llvm_coverage_run.py", | |
126 "dm", | |
127 "--undefok", | |
128 "--resourcePath", | |
129 "[SLAVE_BUILD]/skia/resources", | |
130 "--skps", | |
131 "[SLAVE_BUILD]/skp", | |
132 "--images", | |
133 "[SLAVE_BUILD]/skimage/dm", | |
134 "--colorImages", | |
135 "[SLAVE_BUILD]/skimage/colorspace", | |
136 "--nameByHash", | |
137 "--properties", | |
138 "gitHash", | |
139 "abc123", | |
140 "master", | |
141 "client.skia", | |
142 "builder", | |
143 "Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot", | |
144 "build_number", | |
145 "5", | |
146 "issue", | |
147 "500", | |
148 "patchset", | |
149 "1", | |
150 "patch_storage", | |
151 "rietveld", | |
152 "--svgs", | |
153 "[SLAVE_BUILD]/svg", | |
154 "--key", | |
155 "arch", | |
156 "x86_64", | |
157 "compiler", | |
158 "Clang", | |
159 "configuration", | |
160 "Coverage", | |
161 "cpu_or_gpu", | |
162 "CPU", | |
163 "cpu_or_gpu_value", | |
164 "AVX2", | |
165 "model", | |
166 "GCE", | |
167 "os", | |
168 "Ubuntu", | |
169 "--nogpu", | |
170 "--config", | |
171 "8888", | |
172 "gpu", | |
173 "gpusrgb", | |
174 "pdf", | |
175 "msaa16", | |
176 "565", | |
177 "f16", | |
178 "srgb", | |
179 "sp-8888", | |
180 "2ndpic-8888", | |
181 "lite-8888", | |
182 "serialize-8888", | |
183 "tiles_rt-8888", | |
184 "pic-8888", | |
185 "--src", | |
186 "tests", | |
187 "gm", | |
188 "image", | |
189 "colorImage", | |
190 "svg", | |
191 "--blacklist", | |
192 "f16", | |
193 "_", | |
194 "_", | |
195 "dstreadshuffle", | |
196 "f16", | |
197 "image", | |
198 "_", | |
199 "_", | |
200 "srgb", | |
201 "image", | |
202 "_", | |
203 "_", | |
204 "gpusrgb", | |
205 "image", | |
206 "_", | |
207 "_", | |
208 "serialize-8888", | |
209 "gm", | |
210 "_", | |
211 "bleed_image", | |
212 "serialize-8888", | |
213 "gm", | |
214 "_", | |
215 "c_gms", | |
216 "serialize-8888", | |
217 "gm", | |
218 "_", | |
219 "colortype", | |
220 "serialize-8888", | |
221 "gm", | |
222 "_", | |
223 "colortype_xfermodes", | |
224 "serialize-8888", | |
225 "gm", | |
226 "_", | |
227 "drawfilter", | |
228 "serialize-8888", | |
229 "gm", | |
230 "_", | |
231 "fontmgr_bounds_0.75_0", | |
232 "serialize-8888", | |
233 "gm", | |
234 "_", | |
235 "fontmgr_bounds_1_-0.25", | |
236 "serialize-8888", | |
237 "gm", | |
238 "_", | |
239 "fontmgr_bounds", | |
240 "serialize-8888", | |
241 "gm", | |
242 "_", | |
243 "fontmgr_match", | |
244 "serialize-8888", | |
245 "gm", | |
246 "_", | |
247 "fontmgr_iter", | |
248 "serialize-8888", | |
249 "gm", | |
250 "_", | |
251 "imagemasksubset", | |
252 "serialize-8888", | |
253 "gm", | |
254 "_", | |
255 "bitmapfilters", | |
256 "serialize-8888", | |
257 "gm", | |
258 "_", | |
259 "bitmapshaders", | |
260 "serialize-8888", | |
261 "gm", | |
262 "_", | |
263 "bleed", | |
264 "serialize-8888", | |
265 "gm", | |
266 "_", | |
267 "bleed_alpha_bmp", | |
268 "serialize-8888", | |
269 "gm", | |
270 "_", | |
271 "bleed_alpha_bmp_shader", | |
272 "serialize-8888", | |
273 "gm", | |
274 "_", | |
275 "convex_poly_clip", | |
276 "serialize-8888", | |
277 "gm", | |
278 "_", | |
279 "extractalpha", | |
280 "serialize-8888", | |
281 "gm", | |
282 "_", | |
283 "filterbitmap_checkerboard_32_32_g8", | |
284 "serialize-8888", | |
285 "gm", | |
286 "_", | |
287 "filterbitmap_image_mandrill_64", | |
288 "serialize-8888", | |
289 "gm", | |
290 "_", | |
291 "shadows", | |
292 "serialize-8888", | |
293 "gm", | |
294 "_", | |
295 "simpleaaclip_aaclip", | |
296 "serialize-8888", | |
297 "gm", | |
298 "_", | |
299 "composeshader_bitmap", | |
300 "serialize-8888", | |
301 "gm", | |
302 "_", | |
303 "scaled_tilemodes_npot", | |
304 "serialize-8888", | |
305 "gm", | |
306 "_", | |
307 "scaled_tilemodes", | |
308 "serialize-8888", | |
309 "gm", | |
310 "_", | |
311 "bleed_alpha_image", | |
312 "serialize-8888", | |
313 "gm", | |
314 "_", | |
315 "bleed_alpha_image_shader", | |
316 "sp-8888", | |
317 "gm", | |
318 "_", | |
319 "drawfilter", | |
320 "pic-8888", | |
321 "gm", | |
322 "_", | |
323 "drawfilter", | |
324 "2ndpic-8888", | |
325 "gm", | |
326 "_", | |
327 "drawfilter", | |
328 "lite-8888", | |
329 "gm", | |
330 "_", | |
331 "drawfilter", | |
332 "sp-8888", | |
333 "gm", | |
334 "_", | |
335 "image-cacherator-from-picture", | |
336 "pic-8888", | |
337 "gm", | |
338 "_", | |
339 "image-cacherator-from-picture", | |
340 "2ndpic-8888", | |
341 "gm", | |
342 "_", | |
343 "image-cacherator-from-picture", | |
344 "serialize-8888", | |
345 "gm", | |
346 "_", | |
347 "image-cacherator-from-picture", | |
348 "sp-8888", | |
349 "gm", | |
350 "_", | |
351 "image-cacherator-from-raster", | |
352 "pic-8888", | |
353 "gm", | |
354 "_", | |
355 "image-cacherator-from-raster", | |
356 "2ndpic-8888", | |
357 "gm", | |
358 "_", | |
359 "image-cacherator-from-raster", | |
360 "serialize-8888", | |
361 "gm", | |
362 "_", | |
363 "image-cacherator-from-raster", | |
364 "sp-8888", | |
365 "gm", | |
366 "_", | |
367 "image-cacherator-from-ctable", | |
368 "pic-8888", | |
369 "gm", | |
370 "_", | |
371 "image-cacherator-from-ctable", | |
372 "2ndpic-8888", | |
373 "gm", | |
374 "_", | |
375 "image-cacherator-from-ctable", | |
376 "serialize-8888", | |
377 "gm", | |
378 "_", | |
379 "image-cacherator-from-ctable", | |
380 "sp-8888", | |
381 "gm", | |
382 "_", | |
383 "gamut", | |
384 "pic-8888", | |
385 "gm", | |
386 "_", | |
387 "gamut", | |
388 "lite-8888", | |
389 "gm", | |
390 "_", | |
391 "gamut", | |
392 "2ndpic-8888", | |
393 "gm", | |
394 "_", | |
395 "gamut", | |
396 "serialize-8888", | |
397 "gm", | |
398 "_", | |
399 "gamut", | |
400 "--outResultsFile", | |
401 "[SLAVE_BUILD]/out/coverage_results/abc123.cov" | |
402 ], | |
403 "cwd": "[SLAVE_BUILD]/skia", | |
404 "env": { | |
405 "BUILDTYPE": "Coverage", | |
406 "CHROME_HEADLESS": "1", | |
407 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
408 }, | |
409 "name": "dm" | |
410 }, | |
411 { | |
412 "cmd": [ | |
413 "python", | |
414 "[SLAVE_BUILD]/skia/tools/parse_llvm_coverage.py", | |
415 "--report", | |
416 "[SLAVE_BUILD]/out/coverage_results/abc123.cov", | |
417 "--nanobench", | |
418 "[SLAVE_BUILD]/out/coverage_results/nanobench_abc123.json", | |
419 "--linebyline", | |
420 "[SLAVE_BUILD]/out/coverage_results/coverage_by_line_abc123.json", | |
421 "--key", | |
422 "arch", | |
423 "x86_64", | |
424 "compiler", | |
425 "Clang", | |
426 "configuration", | |
427 "Coverage", | |
428 "cpu_or_gpu", | |
429 "CPU", | |
430 "cpu_or_gpu_value", | |
431 "AVX2", | |
432 "model", | |
433 "GCE", | |
434 "os", | |
435 "Ubuntu", | |
436 "--properties", | |
437 "gitHash", | |
438 "abc123", | |
439 "master", | |
440 "client.skia", | |
441 "builder", | |
442 "Test-Ubuntu-Clang-GCE-CPU-AVX2-x86_64-Coverage-Trybot", | |
443 "build_number", | |
444 "5", | |
445 "issue", | |
446 "500", | |
447 "patchset", | |
448 "1", | |
449 "patch_storage", | |
450 "rietveld" | |
451 ], | |
452 "cwd": "[SLAVE_BUILD]/skia", | |
453 "env": { | |
454 "BUILDTYPE": "Coverage", | |
455 "CHROME_HEADLESS": "1", | |
456 "SKIA_OUT": "[SLAVE_BUILD]/out" | |
457 }, | |
458 "name": "Generate Coverage Data" | |
459 }, | |
460 { | |
461 "cmd": [ | |
462 "python", | |
463 "-u", | |
464 "\nimport json, os, sys\nif os.path.exists(sys.argv[1]) and os.path.isdir(
sys.argv[1]):\n with open(sys.argv[2], 'w') as f:\n json.dump(os.listdir(sys
.argv[1]), f)\n", | |
465 "[SLAVE_BUILD]/out/coverage_results", | |
466 "/path/to/tmp/json" | |
467 ], | |
468 "name": "listdir results_dir", | |
469 "~followup_annotations": [ | |
470 "@@@STEP_LOG_LINE@json.output@[@@@", | |
471 "@@@STEP_LOG_LINE@json.output@ \"file 1\", @@@", | |
472 "@@@STEP_LOG_LINE@json.output@ \"file 2\"@@@", | |
473 "@@@STEP_LOG_LINE@json.output@]@@@", | |
474 "@@@STEP_LOG_END@json.output@@@", | |
475 "@@@STEP_LOG_LINE@python.inline@@@@", | |
476 "@@@STEP_LOG_LINE@python.inline@import json, os, sys@@@", | |
477 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]) and os.path
.isdir(sys.argv[1]):@@@", | |
478 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[2], 'w') as f:@@@", | |
479 "@@@STEP_LOG_LINE@python.inline@ json.dump(os.listdir(sys.argv[1]), f)@
@@", | |
480 "@@@STEP_LOG_END@python.inline@@@" | |
481 ] | |
482 }, | |
483 { | |
484 "cmd": [ | |
485 "python", | |
486 "-u", | |
487 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
488 "[SLAVE_BUILD]/out/coverage_results/file 1", | |
489 "[CUSTOM_[SWARM_OUT_DIR]]" | |
490 ], | |
491 "name": "Copy to swarming out" | |
492 }, | |
493 { | |
494 "cmd": [ | |
495 "python", | |
496 "-u", | |
497 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", | |
498 "[SLAVE_BUILD]/out/coverage_results/file 2", | |
499 "[CUSTOM_[SWARM_OUT_DIR]]" | |
500 ], | |
501 "name": "Copy to swarming out (2)" | |
502 }, | |
503 { | |
504 "name": "$result", | |
505 "recipe_result": null, | |
506 "status_code": 0 | |
507 } | |
508 ] | |
OLD | NEW |