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

Side by Side Diff: infra/bots/recipes/swarm_test.expected/missing_SK_IMAGE_VERSION_device.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 "python",
296 "-u",
297 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
298 "[SLAVE_BUILD]/skia/infra/bots/assets/skimage/VERSION",
299 "/path/to/tmp/"
300 ],
301 "name": "Get downloaded skimage VERSION"
302 },
303 {
304 "cmd": [
305 "python",
306 "-u",
307 "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
308 "42",
309 "[SLAVE_BUILD]/tmp/SK_IMAGE_VERSION"
310 ],
311 "name": "write SK_IMAGE_VERSION"
312 },
313 {
314 "cmd": [
315 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
316 "shell",
317 "cat",
318 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SK_IMAGE_VERSION"
319 ],
320 "env": {
321 "BUILDTYPE": "Debug",
322 "CHROME_HEADLESS": "1",
323 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
324 "SKIA_OUT": "[SLAVE_BUILD]/out"
325 },
326 "name": "read SK_IMAGE_VERSION",
327 "stdout": "/path/to/tmp/",
328 "~followup_annotations": [
329 "step returned non-zero exit code: 1",
330 "@@@STEP_EXCEPTION@@@"
331 ]
332 },
333 {
334 "cmd": [
335 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
336 "shell",
337 "rm",
338 "-f",
339 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SK_IMAGE_VERSION"
340 ],
341 "env": {
342 "BUILDTYPE": "Debug",
343 "CHROME_HEADLESS": "1",
344 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
345 "SKIA_OUT": "[SLAVE_BUILD]/out"
346 },
347 "name": "rm SK_IMAGE_VERSION"
348 },
349 {
350 "cmd": [
351 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
352 "shell",
353 "rm",
354 "-r",
355 "/storage/emulated/legacy/skiabot/skia_images"
356 ],
357 "env": {
358 "BUILDTYPE": "Debug",
359 "CHROME_HEADLESS": "1",
360 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
361 "SKIA_OUT": "[SLAVE_BUILD]/out"
362 },
363 "name": "rmdir skia_images"
364 },
365 {
366 "cmd": [
367 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
368 "shell",
369 "if",
370 "[",
371 "-e",
372 "/storage/emulated/legacy/skiabot/skia_images",
373 "];",
374 "then",
375 "echo",
376 "FILE_EXISTS;",
377 "fi"
378 ],
379 "env": {
380 "BUILDTYPE": "Debug",
381 "CHROME_HEADLESS": "1",
382 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
383 "SKIA_OUT": "[SLAVE_BUILD]/out"
384 },
385 "name": "exists skia_images",
386 "stdout": "/path/to/tmp/"
387 },
388 {
389 "cmd": [
390 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
391 "shell",
392 "mkdir",
393 "-p",
394 "/storage/emulated/legacy/skiabot/skia_images"
395 ],
396 "env": {
397 "BUILDTYPE": "Debug",
398 "CHROME_HEADLESS": "1",
399 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
400 "SKIA_OUT": "[SLAVE_BUILD]/out"
401 },
402 "name": "mkdir skia_images"
403 },
404 {
405 "cmd": [
406 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_push_if_needed",
407 "--verbose",
408 "[SLAVE_BUILD]/skimage",
409 "/storage/emulated/legacy/skiabot/skia_images"
410 ],
411 "env": {
412 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
413 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
414 "BUILDTYPE": "Debug",
415 "CHROME_HEADLESS": "1",
416 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
417 "SKIA_ANDROID_VERBOSE_SETUP": "1",
418 "SKIA_OUT": "[SLAVE_BUILD]/out"
419 },
420 "name": "push skimage"
421 },
422 {
423 "cmd": [
424 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
425 "push",
426 "[SLAVE_BUILD]/tmp/SK_IMAGE_VERSION",
427 "/storage/emulated/legacy/skiabot/skia_tmp_dir/SK_IMAGE_VERSION"
428 ],
429 "env": {
430 "BUILDTYPE": "Debug",
431 "CHROME_HEADLESS": "1",
432 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
433 "SKIA_OUT": "[SLAVE_BUILD]/out"
434 },
435 "name": "push SK_IMAGE_VERSION"
436 },
437 {
438 "cmd": [
439 "python",
440 "-u",
441 "\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",
442 "[CUSTOM_[SWARM_OUT_DIR]]/dm"
443 ],
444 "env": {
445 "PYTHONPATH": "[SLAVE_BUILD]/skia/infra/bots/.recipe_deps/build/scripts"
446 },
447 "name": "rmtree dm",
448 "~followup_annotations": [
449 "@@@STEP_LOG_LINE@python.inline@@@@",
450 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@",
451 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error? See https://crbug.com/584783.@@@",
452 "@@@STEP_LOG_LINE@python.inline@@@@",
453 "@@@STEP_LOG_LINE@python.inline@@@@",
454 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@",
455 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[ 1])@@@",
456 "@@@STEP_LOG_END@python.inline@@@"
457 ]
458 },
459 {
460 "cmd": [
461 "python",
462 "-u",
463 "\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",
464 "[CUSTOM_[SWARM_OUT_DIR]]/dm",
465 "511"
466 ],
467 "name": "makedirs dm",
468 "~followup_annotations": [
469 "@@@STEP_LOG_LINE@python.inline@@@@",
470 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
471 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
472 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
473 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
474 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
475 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
476 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
477 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
478 "@@@STEP_LOG_END@python.inline@@@"
479 ]
480 },
481 {
482 "cmd": [
483 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
484 "shell",
485 "rm",
486 "-r",
487 "/storage/emulated/legacy/skiabot/skia_dm"
488 ],
489 "env": {
490 "BUILDTYPE": "Debug",
491 "CHROME_HEADLESS": "1",
492 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
493 "SKIA_OUT": "[SLAVE_BUILD]/out"
494 },
495 "name": "rmdir skia_dm"
496 },
497 {
498 "cmd": [
499 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
500 "shell",
501 "if",
502 "[",
503 "-e",
504 "/storage/emulated/legacy/skiabot/skia_dm",
505 "];",
506 "then",
507 "echo",
508 "FILE_EXISTS;",
509 "fi"
510 ],
511 "env": {
512 "BUILDTYPE": "Debug",
513 "CHROME_HEADLESS": "1",
514 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
515 "SKIA_OUT": "[SLAVE_BUILD]/out"
516 },
517 "name": "exists skia_dm",
518 "stdout": "/path/to/tmp/"
519 },
520 {
521 "cmd": [
522 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
523 "shell",
524 "mkdir",
525 "-p",
526 "/storage/emulated/legacy/skiabot/skia_dm"
527 ],
528 "env": {
529 "BUILDTYPE": "Debug",
530 "CHROME_HEADLESS": "1",
531 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
532 "SKIA_OUT": "[SLAVE_BUILD]/out"
533 },
534 "name": "mkdir skia_dm"
535 },
536 {
537 "cmd": [
538 "python",
539 "-u",
540 "\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",
541 "[SLAVE_BUILD]/tmp",
542 "511"
543 ],
544 "name": "makedirs tmp_dir",
545 "~followup_annotations": [
546 "@@@STEP_LOG_LINE@python.inline@@@@",
547 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@",
548 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@",
549 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@",
550 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@",
551 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@",
552 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" % path@@@",
553 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@",
554 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@",
555 "@@@STEP_LOG_END@python.inline@@@"
556 ]
557 },
558 {
559 "cmd": [
560 "python",
561 "-u",
562 "\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",
563 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt"
564 ],
565 "cwd": "[SLAVE_BUILD]/skia",
566 "env": {
567 "BUILDTYPE": "Debug",
568 "CHROME_HEADLESS": "1",
569 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
570 "SKIA_OUT": "[SLAVE_BUILD]/out"
571 },
572 "name": "get uninteresting hashes",
573 "~followup_annotations": [
574 "@@@STEP_LOG_LINE@python.inline@@@@",
575 "@@@STEP_LOG_LINE@python.inline@import contextlib@@@",
576 "@@@STEP_LOG_LINE@python.inline@import math@@@",
577 "@@@STEP_LOG_LINE@python.inline@import socket@@@",
578 "@@@STEP_LOG_LINE@python.inline@import sys@@@",
579 "@@@STEP_LOG_LINE@python.inline@import time@@@",
580 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@",
581 "@@@STEP_LOG_LINE@python.inline@@@@",
582 "@@@STEP_LOG_LINE@python.inline@HASHES_URL = 'https://gold.skia.org/_/hash es'@@@",
583 "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@",
584 "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@",
585 "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@",
586 "@@@STEP_LOG_LINE@python.inline@@@@",
587 "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@",
588 "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@",
589 "@@@STEP_LOG_LINE@python.inline@ try:@@@",
590 "@@@STEP_LOG_LINE@python.inline@ with contextlib.closing(@@@",
591 "@@@STEP_LOG_LINE@python.inline@ urllib2.urlopen(HASHES_URL, timeou t=TIMEOUT)) as w:@@@",
592 "@@@STEP_LOG_LINE@python.inline@ hashes = w.read()@@@",
593 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[1], 'w') as f:@@@ ",
594 "@@@STEP_LOG_LINE@python.inline@ f.write(hashes)@@@",
595 "@@@STEP_LOG_LINE@python.inline@ break@@@",
596 "@@@STEP_LOG_LINE@python.inline@ except Exception as e:@@@",
597 "@@@STEP_LOG_LINE@python.inline@ print 'Failed to get uninteresting has hes from %s:' % HASHES_URL@@@",
598 "@@@STEP_LOG_LINE@python.inline@ print e@@@",
599 "@@@STEP_LOG_LINE@python.inline@ if retry == RETRIES:@@@",
600 "@@@STEP_LOG_LINE@python.inline@ raise@@@",
601 "@@@STEP_LOG_LINE@python.inline@ waittime = WAIT_BASE * math.pow(2, ret ry)@@@",
602 "@@@STEP_LOG_LINE@python.inline@ print 'Retry in %d seconds.' % waittim e@@@",
603 "@@@STEP_LOG_LINE@python.inline@ time.sleep(waittime)@@@",
604 "@@@STEP_LOG_END@python.inline@@@"
605 ]
606 },
607 {
608 "cmd": [
609 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
610 "push",
611 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt",
612 "/storage/emulated/legacy/skiabot/skia_tmp_dir/uninteresting_hashes.txt"
613 ],
614 "env": {
615 "BUILDTYPE": "Debug",
616 "CHROME_HEADLESS": "1",
617 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
618 "SKIA_OUT": "[SLAVE_BUILD]/out"
619 },
620 "name": "push uninteresting_hashes.txt"
621 },
622 {
623 "cmd": [
624 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_run_skia",
625 "--verbose",
626 "--logcat",
627 "-d",
628 "arm_v7_neon",
629 "-t",
630 "Debug",
631 "dm",
632 "--undefok",
633 "--resourcePath",
634 "/storage/emulated/legacy/skiabot/skia_resources",
635 "--skps",
636 "/storage/emulated/legacy/skiabot/skia_skp/skps",
637 "--images",
638 "/storage/emulated/legacy/skiabot/skia_images/dm",
639 "--colorImages",
640 "/storage/emulated/legacy/skiabot/skia_images/colorspace",
641 "--nameByHash",
642 "--properties",
643 "gitHash",
644 "abc123",
645 "master",
646 "client.skia",
647 "builder",
648 "Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug",
649 "build_number",
650 "6",
651 "--key",
652 "arch",
653 "Arm7",
654 "compiler",
655 "GCC",
656 "configuration",
657 "Debug",
658 "cpu_or_gpu",
659 "GPU",
660 "cpu_or_gpu_value",
661 "Tegra3",
662 "model",
663 "Nexus7",
664 "os",
665 "Android",
666 "--uninterestingHashesFile",
667 "/storage/emulated/legacy/skiabot/skia_tmp_dir/uninteresting_hashes.txt",
668 "--writePath",
669 "/storage/emulated/legacy/skiabot/skia_dm",
670 "--nocpu",
671 "--dummy-flags"
672 ],
673 "env": {
674 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
675 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
676 "BUILDTYPE": "Debug",
677 "CHROME_HEADLESS": "1",
678 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
679 "SKIA_ANDROID_VERBOSE_SETUP": "1",
680 "SKIA_OUT": "[SLAVE_BUILD]/out"
681 },
682 "name": "dm"
683 },
684 {
685 "cmd": [
686 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_pull_if_needed",
687 "--verbose",
688 "/storage/emulated/legacy/skiabot/skia_dm",
689 "[CUSTOM_[SWARM_OUT_DIR]]/dm"
690 ],
691 "env": {
692 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
693 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
694 "BUILDTYPE": "Debug",
695 "CHROME_HEADLESS": "1",
696 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
697 "SKIA_ANDROID_VERBOSE_SETUP": "1",
698 "SKIA_OUT": "[SLAVE_BUILD]/out"
699 },
700 "name": "pull skia_dm"
701 },
702 {
703 "cmd": [
704 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
705 "shell",
706 "dumpsys",
707 "batteryproperties"
708 ],
709 "env": {
710 "BUILDTYPE": "Debug",
711 "CHROME_HEADLESS": "1",
712 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
713 "SKIA_OUT": "[SLAVE_BUILD]/out"
714 },
715 "name": "final battery stats"
716 },
717 {
718 "cmd": [
719 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
720 "reboot"
721 ],
722 "env": {
723 "BUILDTYPE": "Debug",
724 "CHROME_HEADLESS": "1",
725 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
726 "SKIA_OUT": "[SLAVE_BUILD]/out"
727 },
728 "name": "reboot"
729 },
730 {
731 "cmd": [
732 "sleep",
733 "10"
734 ],
735 "env": {
736 "BUILDTYPE": "Debug",
737 "CHROME_HEADLESS": "1",
738 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
739 "SKIA_OUT": "[SLAVE_BUILD]/out"
740 },
741 "name": "wait for reboot"
742 },
743 {
744 "cmd": [
745 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device"
746 ],
747 "env": {
748 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
749 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
750 "BUILDTYPE": "Debug",
751 "CHROME_HEADLESS": "1",
752 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
753 "SKIA_ANDROID_VERBOSE_SETUP": "1",
754 "SKIA_OUT": "[SLAVE_BUILD]/out"
755 },
756 "name": "wait for device (3)"
757 },
758 {
759 "cmd": [
760 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge"
761 ],
762 "env": {
763 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk",
764 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk",
765 "BUILDTYPE": "Debug",
766 "CHROME_HEADLESS": "1",
767 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
768 "SKIA_ANDROID_VERBOSE_SETUP": "1",
769 "SKIA_OUT": "[SLAVE_BUILD]/out"
770 },
771 "name": "wait for charge (3)"
772 },
773 {
774 "cmd": [
775 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb",
776 "kill-server"
777 ],
778 "env": {
779 "BUILDTYPE": "Debug",
780 "CHROME_HEADLESS": "1",
781 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0",
782 "SKIA_OUT": "[SLAVE_BUILD]/out"
783 },
784 "name": "kill-server"
785 },
786 {
787 "name": "$result",
788 "recipe_result": null,
789 "status_code": 0
790 }
791 ]
OLDNEW
« no previous file with comments | « infra/bots/recipes/swarm_test.expected/missing_SKP_VERSION_device.json ('k') | infra/bots/recipes/swarm_trigger.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698