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

Side by Side Diff: infra/bots/recipes/swarm_test.expected/download_and_push_skps.json

Issue 2175373002: Move Skia recipes from build repo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address more comments Created 4 years, 4 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
(Empty)
1 [
2 {
3 "cmd": [
4 "python",
5 "-u",
6 "[SLAVE_BUILD]/skia/tools/buildbot_spec.py",
7 "/path/to/tmp/json",
8 "Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug"
9 ],
10 "cwd": "[SLAVE_BUILD]/skia",
11 "name": "exec buildbot_spec.py",
12 "~followup_annotations": [
13 "@@@STEP_LOG_LINE@json.output@{@@@",
14 "@@@STEP_LOG_LINE@json.output@ \"build_targets\": [@@@",
15 "@@@STEP_LOG_LINE@json.output@ \"dm\", @@@",
16 "@@@STEP_LOG_LINE@json.output@ \"nanobench\"@@@",
17 "@@@STEP_LOG_LINE@json.output@ ], @@@",
18 "@@@STEP_LOG_LINE@json.output@ \"builder_cfg\": {@@@",
19 "@@@STEP_LOG_LINE@json.output@ \"arch\": \"Arm7\", @@@",
20 "@@@STEP_LOG_LINE@json.output@ \"compiler\": \"GCC\", @@@",
21 "@@@STEP_LOG_LINE@json.output@ \"configuration\": \"Debug\", @@@",
22 "@@@STEP_LOG_LINE@json.output@ \"cpu_or_gpu\": \"GPU\", @@@",
23 "@@@STEP_LOG_LINE@json.output@ \"cpu_or_gpu_value\": \"Tegra3\", @@@",
24 "@@@STEP_LOG_LINE@json.output@ \"is_trybot\": false, @@@",
25 "@@@STEP_LOG_LINE@json.output@ \"model\": \"Nexus7\", @@@",
26 "@@@STEP_LOG_LINE@json.output@ \"os\": \"Android\", @@@",
27 "@@@STEP_LOG_LINE@json.output@ \"role\": \"Test\"@@@",
28 "@@@STEP_LOG_LINE@json.output@ }, @@@",
29 "@@@STEP_LOG_LINE@json.output@ \"configuration\": \"Debug\", @@@",
30 "@@@STEP_LOG_LINE@json.output@ \"device_cfg\": \"arm_v7_neon\", @@@",
31 "@@@STEP_LOG_LINE@json.output@ \"dm_flags\": [@@@",
32 "@@@STEP_LOG_LINE@json.output@ \"--dummy-flags\"@@@",
33 "@@@STEP_LOG_LINE@json.output@ ], @@@",
34 "@@@STEP_LOG_LINE@json.output@ \"do_perf_steps\": true, @@@",
35 "@@@STEP_LOG_LINE@json.output@ \"do_test_steps\": true, @@@",
36 "@@@STEP_LOG_LINE@json.output@ \"env\": {@@@",
37 "@@@STEP_LOG_LINE@json.output@ \"GYP_DEFINES\": \"skia_arch_type=arm sk ia_warnings_as_errors=0\"@@@",
38 "@@@STEP_LOG_LINE@json.output@ }, @@@",
39 "@@@STEP_LOG_LINE@json.output@ \"nanobench_flags\": [@@@",
40 "@@@STEP_LOG_LINE@json.output@ \"--dummy-flags\"@@@",
41 "@@@STEP_LOG_LINE@json.output@ ], @@@",
42 "@@@STEP_LOG_LINE@json.output@ \"product.board\": \"grouper\", @@@",
43 "@@@STEP_LOG_LINE@json.output@ \"upload_dm_results\": true, @@@",
44 "@@@STEP_LOG_LINE@json.output@ \"upload_perf_results\": false@@@",
45 "@@@STEP_LOG_LINE@json.output@}@@@",
46 "@@@STEP_LOG_END@json.output@@@"
47 ]
48 },
49 {
50 "cmd": [
51 "which",
52 "adb"
53 ],
54 "name": "which adb",
55 "stdout": "/path/to/tmp/",
56 "~followup_annotations": [
57 "step returned non-zero exit code: 1",
58 "@@@STEP_EXCEPTION@@@"
59 ]
60 },
61 {
62 "cmd": [
63 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device"
64 ],
65 "env": {
66 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
67 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
68 "BUILDTYPE": "Debug",
69 "CHROME_HEADLESS": "1",
70 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
71 "SKIA_ANDROID_VERBOSE_SETUP": "1",
72 "SKIA_OUT": "[SLAVE_BUILD]/out"
73 },
74 "name": "wait for device (1)"
75 },
76 {
77 "cmd": [
78 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge"
79 ],
80 "env": {
81 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
82 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
83 "BUILDTYPE": "Debug",
84 "CHROME_HEADLESS": "1",
85 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
86 "SKIA_ANDROID_VERBOSE_SETUP": "1",
87 "SKIA_OUT": "[SLAVE_BUILD]/out"
88 },
89 "name": "wait for charge (1)"
90 },
91 {
92 "cmd": [
93 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
94 "shell",
95 "echo",
96 "$EXTERNAL_STORAGE"
97 ],
98 "env": {
99 "BUILDTYPE": "Debug",
100 "CHROME_HEADLESS": "1",
101 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
102 "SKIA_OUT": "[SLAVE_BUILD]/out"
103 },
104 "name": "get EXTERNAL_STORAGE dir",
105 "stdout": "/path/to/tmp/"
106 },
107 {
108 "cmd": [
109 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
110 "root"
111 ],
112 "env": {
113 "BUILDTYPE": "Debug",
114 "CHROME_HEADLESS": "1",
115 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
116 "SKIA_OUT": "[SLAVE_BUILD]/out"
117 },
118 "name": "adb root",
119 "stdout": "/path/to/tmp/"
120 },
121 {
122 "cmd": [
123 "sleep",
124 "10"
125 ],
126 "env": {
127 "BUILDTYPE": "Debug",
128 "CHROME_HEADLESS": "1",
129 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
130 "SKIA_OUT": "[SLAVE_BUILD]/out"
131 },
132 "name": "wait"
133 },
134 {
135 "cmd": [
136 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device"
137 ],
138 "env": {
139 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
140 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
141 "BUILDTYPE": "Debug",
142 "CHROME_HEADLESS": "1",
143 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
144 "SKIA_ANDROID_VERBOSE_SETUP": "1",
145 "SKIA_OUT": "[SLAVE_BUILD]/out"
146 },
147 "name": "wait for device (2)"
148 },
149 {
150 "cmd": [
151 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge"
152 ],
153 "env": {
154 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
155 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
156 "BUILDTYPE": "Debug",
157 "CHROME_HEADLESS": "1",
158 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
159 "SKIA_ANDROID_VERBOSE_SETUP": "1",
160 "SKIA_OUT": "[SLAVE_BUILD]/out"
161 },
162 "name": "wait for charge (2)"
163 },
164 {
165 "cmd": [
166 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_kill_skia",
167 "--verbose"
168 ],
169 "env": {
170 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
171 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
172 "BUILDTYPE": "Debug",
173 "CHROME_HEADLESS": "1",
174 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
175 "SKIA_ANDROID_VERBOSE_SETUP": "1",
176 "SKIA_OUT": "[SLAVE_BUILD]/out"
177 },
178 "name": "kill skia"
179 },
180 {
181 "cmd": [
182 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
183 "shell",
184 "stop"
185 ],
186 "env": {
187 "BUILDTYPE": "Debug",
188 "CHROME_HEADLESS": "1",
189 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
190 "SKIA_OUT": "[SLAVE_BUILD]/out"
191 },
192 "name": "stop shell"
193 },
194 {
195 "cmd": [
196 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
197 "shell",
198 "dumpsys",
199 "batteryproperties"
200 ],
201 "env": {
202 "BUILDTYPE": "Debug",
203 "CHROME_HEADLESS": "1",
204 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
205 "SKIA_OUT": "[SLAVE_BUILD]/out"
206 },
207 "name": "starting battery stats"
208 },
209 {
210 "cmd": [
211 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
212 "shell",
213 "cat",
214 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
215 ],
216 "env": {
217 "BUILDTYPE": "Debug",
218 "CHROME_HEADLESS": "1",
219 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
220 "SKIA_OUT": "[SLAVE_BUILD]/out"
221 },
222 "name": "cat scaling_governor"
223 },
224 {
225 "cmd": [
226 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
227 "shell",
228 "cat",
229 "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq"
230 ],
231 "env": {
232 "BUILDTYPE": "Debug",
233 "CHROME_HEADLESS": "1",
234 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
235 "SKIA_OUT": "[SLAVE_BUILD]/out"
236 },
237 "name": "cat cpu_freq"
238 },
239 {
240 "cmd": [
241 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_push_if_needed",
242 "--verbose",
243 "[SLAVE_BUILD]/skia/resources",
244 "/storage/emulated/legacy/skiabot/skia_resources"
245 ],
246 "env": {
247 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
248 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
249 "BUILDTYPE": "Debug",
250 "CHROME_HEADLESS": "1",
251 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
252 "SKIA_ANDROID_VERBOSE_SETUP": "1",
253 "SKIA_OUT": "[SLAVE_BUILD]/out"
254 },
255 "name": "push resources"
256 },
257 {
258 "cmd": [
259 "python",
260 "-u",
261 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
262 "[SLAVE_BUILD]/skia/infra/bots/assets/skp/VERSION",
263 "/path/to/tmp/"
264 ],
265 "name": "Get downloaded SKP VERSION"
266 },
267 {
268 "cmd": [
269 "python",
270 "-u",
271 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
272 "42",
273 "[SLAVE_BUILD]/tmp/SKP_VERSION"
274 ],
275 "name": "write SKP_VERSION"
276 },
277 {
278 "cmd": [
279 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
280 "shell",
281 "cat",
282 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SKP_VERSION"
283 ],
284 "env": {
285 "BUILDTYPE": "Debug",
286 "CHROME_HEADLESS": "1",
287 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
288 "SKIA_OUT": "[SLAVE_BUILD]/out"
289 },
290 "name": "read SKP_VERSION",
291 "stdout": "/path/to/tmp/"
292 },
293 {
294 "cmd": [
295 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
296 "shell",
297 "rm",
298 "-f",
299 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SKP_VERSION"
300 ],
301 "env": {
302 "BUILDTYPE": "Debug",
303 "CHROME_HEADLESS": "1",
304 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
305 "SKIA_OUT": "[SLAVE_BUILD]/out"
306 },
307 "name": "rm SKP_VERSION"
308 },
309 {
310 "cmd": [
311 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
312 "shell",
313 "rm",
314 "-r",
315 "/storage/emulated/legacy/skiabot/skia_skp/skps"
316 ],
317 "env": {
318 "BUILDTYPE": "Debug",
319 "CHROME_HEADLESS": "1",
320 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
321 "SKIA_OUT": "[SLAVE_BUILD]/out"
322 },
323 "name": "rmdir skps"
324 },
325 {
326 "cmd": [
327 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
328 "shell",
329 "if",
330 "[",
331 "-e",
332 "/storage/emulated/legacy/skiabot/skia_skp/skps",
333 "];",
334 "then",
335 "echo",
336 "FILE_EXISTS;",
337 "fi"
338 ],
339 "env": {
340 "BUILDTYPE": "Debug",
341 "CHROME_HEADLESS": "1",
342 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
343 "SKIA_OUT": "[SLAVE_BUILD]/out"
344 },
345 "name": "exists skps",
346 "stdout": "/path/to/tmp/"
347 },
348 {
349 "cmd": [
350 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
351 "shell",
352 "mkdir",
353 "-p",
354 "/storage/emulated/legacy/skiabot/skia_skp/skps"
355 ],
356 "env": {
357 "BUILDTYPE": "Debug",
358 "CHROME_HEADLESS": "1",
359 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
360 "SKIA_OUT": "[SLAVE_BUILD]/out"
361 },
362 "name": "mkdir skps"
363 },
364 {
365 "cmd": [
366 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_push_if_needed",
367 "--verbose",
368 "[SLAVE_BUILD]/skp",
369 "/storage/emulated/legacy/skiabot/skia_skp/skps"
370 ],
371 "env": {
372 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
373 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
374 "BUILDTYPE": "Debug",
375 "CHROME_HEADLESS": "1",
376 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
377 "SKIA_ANDROID_VERBOSE_SETUP": "1",
378 "SKIA_OUT": "[SLAVE_BUILD]/out"
379 },
380 "name": "push skp"
381 },
382 {
383 "cmd": [
384 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
385 "push",
386 "[SLAVE_BUILD]/tmp/SKP_VERSION",
387 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SKP_VERSION"
388 ],
389 "env": {
390 "BUILDTYPE": "Debug",
391 "CHROME_HEADLESS": "1",
392 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
393 "SKIA_OUT": "[SLAVE_BUILD]/out"
394 },
395 "name": "push SKP_VERSION"
396 },
397 {
398 "cmd": [
399 "python",
400 "-u",
401 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
402 "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION",
403 "/path/to/tmp/"
404 ],
405 "name": "Get downloaded skimage VERSION"
406 },
407 {
408 "cmd": [
409 "python",
410 "-u",
411 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
412 "42",
413 "[SLAVE_BUILD]/tmp/SK_IMAGE_VERSION"
414 ],
415 "name": "write SK_IMAGE_VERSION"
416 },
417 {
418 "cmd": [
419 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
420 "shell",
421 "cat",
422 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SK_IMAGE_VERSION"
423 ],
424 "env": {
425 "BUILDTYPE": "Debug",
426 "CHROME_HEADLESS": "1",
427 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
428 "SKIA_OUT": "[SLAVE_BUILD]/out"
429 },
430 "name": "read SK_IMAGE_VERSION",
431 "stdout": "/path/to/tmp/"
432 },
433 {
434 "cmd": [
435 "python",
436 "-u",
437 "\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",
438 "[CUSTOM_[SWARM_OUT_DIR]]/dm"
439 ],
440 "env": {
441 "PYTHONPATH": "[SLAVE_BUILD]/skia/infra/bots/.recipe_deps/build/scripts"
442 },
443 "name": "rmtree dm",
444 "~followup_annotations": [
445 "@@@STEP_LOG_LINE@python.inline@@@@",
446 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
447 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
448 "@@@STEP_LOG_LINE@python.inline@@@@",
449 "@@@STEP_LOG_LINE@python.inline@@@@",
450 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
451 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
452 "@@@STEP_LOG_END@python.inline@@@"
453 ]
454 },
455 {
456 "cmd": [
457 "python",
458 "-u",
459 "\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",
460 "[CUSTOM_[SWARM_OUT_DIR]]/dm",
461 "511"
462 ],
463 "name": "makedirs dm",
464 "~followup_annotations": [
465 "@@@STEP_LOG_LINE@python.inline@@@@",
466 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
467 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
468 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
469 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
470 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
471 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
472 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
473 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
474 "@@@STEP_LOG_END@python.inline@@@"
475 ]
476 },
477 {
478 "cmd": [
479 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
480 "shell",
481 "rm",
482 "-r",
483 "/storage/emulated/legacy/skiabot/skia_dm"
484 ],
485 "env": {
486 "BUILDTYPE": "Debug",
487 "CHROME_HEADLESS": "1",
488 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
489 "SKIA_OUT": "[SLAVE_BUILD]/out"
490 },
491 "name": "rmdir skia_dm"
492 },
493 {
494 "cmd": [
495 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
496 "shell",
497 "if",
498 "[",
499 "-e",
500 "/storage/emulated/legacy/skiabot/skia_dm",
501 "];",
502 "then",
503 "echo",
504 "FILE_EXISTS;",
505 "fi"
506 ],
507 "env": {
508 "BUILDTYPE": "Debug",
509 "CHROME_HEADLESS": "1",
510 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
511 "SKIA_OUT": "[SLAVE_BUILD]/out"
512 },
513 "name": "exists skia_dm",
514 "stdout": "/path/to/tmp/"
515 },
516 {
517 "cmd": [
518 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
519 "shell",
520 "mkdir",
521 "-p",
522 "/storage/emulated/legacy/skiabot/skia_dm"
523 ],
524 "env": {
525 "BUILDTYPE": "Debug",
526 "CHROME_HEADLESS": "1",
527 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
528 "SKIA_OUT": "[SLAVE_BUILD]/out"
529 },
530 "name": "mkdir skia_dm"
531 },
532 {
533 "cmd": [
534 "python",
535 "-u",
536 "\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",
537 "[SLAVE_BUILD]/tmp",
538 "511"
539 ],
540 "name": "makedirs tmp_dir",
541 "~followup_annotations": [
542 "@@@STEP_LOG_LINE@python.inline@@@@",
543 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
544 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
545 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
546 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
547 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
548 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
549 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
550 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
551 "@@@STEP_LOG_END@python.inline@@@"
552 ]
553 },
554 {
555 "cmd": [
556 "python",
557 "-u",
558 "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\ nimport urllib2\n\nHASHES_URL = 'https://gold.skia.org/_/hashes'\nRETRIES = 5\nT IMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in r ange(RETRIES):\n try:\n with contextlib.closing(\n urllib2.urlopen(HA SHES_URL, timeout=TIMEOUT)) as w:\n hashes = w.read()\n with open(sys. argv[1], 'w') as f:\n f.write(hashes)\n break\n except Exception as e:\n print 'Failed to get uninteresting hashes from %s:' % HASHES_URL\n print e\n if retry == RETRIES:\n raise\n waittime = WAIT_BASE * math .pow(2, retry)\n print 'Retry in %d seconds.' % waittime\n time.sleep(wait time)\n",
559 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt"
560 ],
561 "cwd": "[SLAVE_BUILD]/skia",
562 "env": {
563 "BUILDTYPE": "Debug",
564 "CHROME_HEADLESS": "1",
565 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
566 "SKIA_OUT": "[SLAVE_BUILD]/out"
567 },
568 "name": "get uninteresting hashes",
569 "~followup_annotations": [
570 "@@@STEP_LOG_LINE@python.inline@@@@",
571 "@@@STEP_LOG_LINE@python.inline@import contextlib@@@",
572 "@@@STEP_LOG_LINE@python.inline@import math@@@",
573 "@@@STEP_LOG_LINE@python.inline@import socket@@@",
574 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
575 "@@@STEP_LOG_LINE@python.inline@import time@@@",
576 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@",
577 "@@@STEP_LOG_LINE@python.inline@@@@",
578 "@@@STEP_LOG_LINE@python.inline@HASHES_URL = 'https://gold.skia.org/_/hash es'@@@",
579 "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@",
580 "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@",
581 "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@",
582 "@@@STEP_LOG_LINE@python.inline@@@@",
583 "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@",
584 "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@",
585 "@@@STEP_LOG_LINE@python.inline@ try:@@@",
586 "@@@STEP_LOG_LINE@python.inline@ with contextlib.closing(@@@",
587 "@@@STEP_LOG_LINE@python.inline@ urllib2.urlopen(HASHES_URL, timeou t=TIMEOUT)) as w:@@@",
588 "@@@STEP_LOG_LINE@python.inline@ hashes = w.read()@@@",
589 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[1], 'w') as f:@@@ ",
590 "@@@STEP_LOG_LINE@python.inline@ f.write(hashes)@@@",
591 "@@@STEP_LOG_LINE@python.inline@ break@@@",
592 "@@@STEP_LOG_LINE@python.inline@ except Exception as e:@@@",
593 "@@@STEP_LOG_LINE@python.inline@ print 'Failed to get uninteresting has hes from %s:' % HASHES_URL@@@",
594 "@@@STEP_LOG_LINE@python.inline@ print e@@@",
595 "@@@STEP_LOG_LINE@python.inline@ if retry == RETRIES:@@@",
596 "@@@STEP_LOG_LINE@python.inline@ raise@@@",
597 "@@@STEP_LOG_LINE@python.inline@ waittime = WAIT_BASE * math.pow(2, ret ry)@@@",
598 "@@@STEP_LOG_LINE@python.inline@ print 'Retry in %d seconds.' % waittim e@@@",
599 "@@@STEP_LOG_LINE@python.inline@ time.sleep(waittime)@@@",
600 "@@@STEP_LOG_END@python.inline@@@"
601 ]
602 },
603 {
604 "cmd": [
605 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
606 "push",
607 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt",
608 "/storage/emulated/legacy/skiabot/skia_tmp_dir/uninteresting_hashes.txt"
609 ],
610 "env": {
611 "BUILDTYPE": "Debug",
612 "CHROME_HEADLESS": "1",
613 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
614 "SKIA_OUT": "[SLAVE_BUILD]/out"
615 },
616 "name": "push uninteresting_hashes.txt"
617 },
618 {
619 "cmd": [
620 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_run_skia",
621 "--verbose",
622 "--logcat",
623 "-d",
624 "arm_v7_neon",
625 "-t",
626 "Debug",
627 "dm",
628 "--undefok",
629 "--resourcePath",
630 "/storage/emulated/legacy/skiabot/skia_resources",
631 "--skps",
632 "/storage/emulated/legacy/skiabot/skia_skp/skps",
633 "--images",
634 "/storage/emulated/legacy/skiabot/skia_images/dm",
635 "--colorImages",
636 "/storage/emulated/legacy/skiabot/skia_images/colorspace",
637 "--nameByHash",
638 "--properties",
639 "gitHash",
640 "abc123",
641 "master",
642 "client.skia",
643 "builder",
644 "Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug",
645 "build_number",
646 "6",
647 "--key",
648 "arch",
649 "Arm7",
650 "compiler",
651 "GCC",
652 "configuration",
653 "Debug",
654 "cpu_or_gpu",
655 "GPU",
656 "cpu_or_gpu_value",
657 "Tegra3",
658 "model",
659 "Nexus7",
660 "os",
661 "Android",
662 "--uninterestingHashesFile",
663 "/storage/emulated/legacy/skiabot/skia_tmp_dir/uninteresting_hashes.txt",
664 "--writePath",
665 "/storage/emulated/legacy/skiabot/skia_dm",
666 "--nocpu",
667 "--dummy-flags"
668 ],
669 "env": {
670 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
671 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
672 "BUILDTYPE": "Debug",
673 "CHROME_HEADLESS": "1",
674 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
675 "SKIA_ANDROID_VERBOSE_SETUP": "1",
676 "SKIA_OUT": "[SLAVE_BUILD]/out"
677 },
678 "name": "dm"
679 },
680 {
681 "cmd": [
682 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_pull_if_needed",
683 "--verbose",
684 "/storage/emulated/legacy/skiabot/skia_dm",
685 "[CUSTOM_[SWARM_OUT_DIR]]/dm"
686 ],
687 "env": {
688 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
689 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
690 "BUILDTYPE": "Debug",
691 "CHROME_HEADLESS": "1",
692 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
693 "SKIA_ANDROID_VERBOSE_SETUP": "1",
694 "SKIA_OUT": "[SLAVE_BUILD]/out"
695 },
696 "name": "pull skia_dm"
697 },
698 {
699 "cmd": [
700 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
701 "shell",
702 "dumpsys",
703 "batteryproperties"
704 ],
705 "env": {
706 "BUILDTYPE": "Debug",
707 "CHROME_HEADLESS": "1",
708 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
709 "SKIA_OUT": "[SLAVE_BUILD]/out"
710 },
711 "name": "final battery stats"
712 },
713 {
714 "cmd": [
715 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
716 "reboot"
717 ],
718 "env": {
719 "BUILDTYPE": "Debug",
720 "CHROME_HEADLESS": "1",
721 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
722 "SKIA_OUT": "[SLAVE_BUILD]/out"
723 },
724 "name": "reboot"
725 },
726 {
727 "cmd": [
728 "sleep",
729 "10"
730 ],
731 "env": {
732 "BUILDTYPE": "Debug",
733 "CHROME_HEADLESS": "1",
734 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
735 "SKIA_OUT": "[SLAVE_BUILD]/out"
736 },
737 "name": "wait for reboot"
738 },
739 {
740 "cmd": [
741 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device"
742 ],
743 "env": {
744 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
745 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
746 "BUILDTYPE": "Debug",
747 "CHROME_HEADLESS": "1",
748 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
749 "SKIA_ANDROID_VERBOSE_SETUP": "1",
750 "SKIA_OUT": "[SLAVE_BUILD]/out"
751 },
752 "name": "wait for device (3)"
753 },
754 {
755 "cmd": [
756 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge"
757 ],
758 "env": {
759 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
760 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
761 "BUILDTYPE": "Debug",
762 "CHROME_HEADLESS": "1",
763 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
764 "SKIA_ANDROID_VERBOSE_SETUP": "1",
765 "SKIA_OUT": "[SLAVE_BUILD]/out"
766 },
767 "name": "wait for charge (3)"
768 },
769 {
770 "cmd": [
771 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
772 "kill-server"
773 ],
774 "env": {
775 "BUILDTYPE": "Debug",
776 "CHROME_HEADLESS": "1",
777 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
778 "SKIA_OUT": "[SLAVE_BUILD]/out"
779 },
780 "name": "kill-server"
781 },
782 {
783 "name": "$result",
784 "recipe_result": null,
785 "status_code": 0
786 }
787 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698