OLD | NEW |
(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 }, |
| 329 { |
| 330 "cmd": [ |
| 331 "python", |
| 332 "-u", |
| 333 "\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", |
| 334 "[CUSTOM_[SWARM_OUT_DIR]]/dm" |
| 335 ], |
| 336 "env": { |
| 337 "PYTHONPATH": "[SLAVE_BUILD]/skia/infra/bots/.recipe_deps/build/scripts" |
| 338 }, |
| 339 "name": "rmtree dm", |
| 340 "~followup_annotations": [ |
| 341 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 342 "@@@STEP_LOG_LINE@python.inline@import os, sys@@@", |
| 343 "@@@STEP_LOG_LINE@python.inline@from common import chromium_utils # Error?
See https://crbug.com/584783.@@@", |
| 344 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 345 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 346 "@@@STEP_LOG_LINE@python.inline@if os.path.exists(sys.argv[1]):@@@", |
| 347 "@@@STEP_LOG_LINE@python.inline@ chromium_utils.RemoveDirectory(sys.argv[
1])@@@", |
| 348 "@@@STEP_LOG_END@python.inline@@@" |
| 349 ] |
| 350 }, |
| 351 { |
| 352 "cmd": [ |
| 353 "python", |
| 354 "-u", |
| 355 "\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", |
| 356 "[CUSTOM_[SWARM_OUT_DIR]]/dm", |
| 357 "511" |
| 358 ], |
| 359 "name": "makedirs dm", |
| 360 "~followup_annotations": [ |
| 361 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 362 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 363 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 364 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 365 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 366 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 367 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
| 368 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 369 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 370 "@@@STEP_LOG_END@python.inline@@@" |
| 371 ] |
| 372 }, |
| 373 { |
| 374 "cmd": [ |
| 375 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
| 376 "shell", |
| 377 "rm", |
| 378 "-r", |
| 379 "/storage/emulated/legacy/skiabot/skia_dm" |
| 380 ], |
| 381 "env": { |
| 382 "BUILDTYPE": "Debug", |
| 383 "CHROME_HEADLESS": "1", |
| 384 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 385 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 386 }, |
| 387 "name": "rmdir skia_dm" |
| 388 }, |
| 389 { |
| 390 "cmd": [ |
| 391 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
| 392 "shell", |
| 393 "if", |
| 394 "[", |
| 395 "-e", |
| 396 "/storage/emulated/legacy/skiabot/skia_dm", |
| 397 "];", |
| 398 "then", |
| 399 "echo", |
| 400 "FILE_EXISTS;", |
| 401 "fi" |
| 402 ], |
| 403 "env": { |
| 404 "BUILDTYPE": "Debug", |
| 405 "CHROME_HEADLESS": "1", |
| 406 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 407 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 408 }, |
| 409 "name": "exists skia_dm", |
| 410 "stdout": "/path/to/tmp/" |
| 411 }, |
| 412 { |
| 413 "cmd": [ |
| 414 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
| 415 "shell", |
| 416 "mkdir", |
| 417 "-p", |
| 418 "/storage/emulated/legacy/skiabot/skia_dm" |
| 419 ], |
| 420 "env": { |
| 421 "BUILDTYPE": "Debug", |
| 422 "CHROME_HEADLESS": "1", |
| 423 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 424 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 425 }, |
| 426 "name": "mkdir skia_dm" |
| 427 }, |
| 428 { |
| 429 "cmd": [ |
| 430 "python", |
| 431 "-u", |
| 432 "\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", |
| 433 "[SLAVE_BUILD]/tmp", |
| 434 "511" |
| 435 ], |
| 436 "name": "makedirs tmp_dir", |
| 437 "~followup_annotations": [ |
| 438 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 439 "@@@STEP_LOG_LINE@python.inline@import sys, os@@@", |
| 440 "@@@STEP_LOG_LINE@python.inline@path = sys.argv[1]@@@", |
| 441 "@@@STEP_LOG_LINE@python.inline@mode = int(sys.argv[2])@@@", |
| 442 "@@@STEP_LOG_LINE@python.inline@if not os.path.isdir(path):@@@", |
| 443 "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(path):@@@", |
| 444 "@@@STEP_LOG_LINE@python.inline@ print \"%s exists but is not a dir\" %
path@@@", |
| 445 "@@@STEP_LOG_LINE@python.inline@ sys.exit(1)@@@", |
| 446 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(path, mode)@@@", |
| 447 "@@@STEP_LOG_END@python.inline@@@" |
| 448 ] |
| 449 }, |
| 450 { |
| 451 "cmd": [ |
| 452 "python", |
| 453 "-u", |
| 454 "\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", |
| 455 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt" |
| 456 ], |
| 457 "cwd": "[SLAVE_BUILD]/skia", |
| 458 "env": { |
| 459 "BUILDTYPE": "Debug", |
| 460 "CHROME_HEADLESS": "1", |
| 461 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 462 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 463 }, |
| 464 "name": "get uninteresting hashes", |
| 465 "~followup_annotations": [ |
| 466 "step returned non-zero exit code: 1", |
| 467 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 468 "@@@STEP_LOG_LINE@python.inline@import contextlib@@@", |
| 469 "@@@STEP_LOG_LINE@python.inline@import math@@@", |
| 470 "@@@STEP_LOG_LINE@python.inline@import socket@@@", |
| 471 "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| 472 "@@@STEP_LOG_LINE@python.inline@import time@@@", |
| 473 "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", |
| 474 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 475 "@@@STEP_LOG_LINE@python.inline@HASHES_URL = 'https://gold.skia.org/_/hash
es'@@@", |
| 476 "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@", |
| 477 "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@", |
| 478 "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@", |
| 479 "@@@STEP_LOG_LINE@python.inline@@@@", |
| 480 "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@", |
| 481 "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@", |
| 482 "@@@STEP_LOG_LINE@python.inline@ try:@@@", |
| 483 "@@@STEP_LOG_LINE@python.inline@ with contextlib.closing(@@@", |
| 484 "@@@STEP_LOG_LINE@python.inline@ urllib2.urlopen(HASHES_URL, timeou
t=TIMEOUT)) as w:@@@", |
| 485 "@@@STEP_LOG_LINE@python.inline@ hashes = w.read()@@@", |
| 486 "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[1], 'w') as f:@@@
", |
| 487 "@@@STEP_LOG_LINE@python.inline@ f.write(hashes)@@@", |
| 488 "@@@STEP_LOG_LINE@python.inline@ break@@@", |
| 489 "@@@STEP_LOG_LINE@python.inline@ except Exception as e:@@@", |
| 490 "@@@STEP_LOG_LINE@python.inline@ print 'Failed to get uninteresting has
hes from %s:' % HASHES_URL@@@", |
| 491 "@@@STEP_LOG_LINE@python.inline@ print e@@@", |
| 492 "@@@STEP_LOG_LINE@python.inline@ if retry == RETRIES:@@@", |
| 493 "@@@STEP_LOG_LINE@python.inline@ raise@@@", |
| 494 "@@@STEP_LOG_LINE@python.inline@ waittime = WAIT_BASE * math.pow(2, ret
ry)@@@", |
| 495 "@@@STEP_LOG_LINE@python.inline@ print 'Retry in %d seconds.' % waittim
e@@@", |
| 496 "@@@STEP_LOG_LINE@python.inline@ time.sleep(waittime)@@@", |
| 497 "@@@STEP_LOG_END@python.inline@@@", |
| 498 "@@@STEP_EXCEPTION@@@" |
| 499 ] |
| 500 }, |
| 501 { |
| 502 "cmd": [ |
| 503 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
| 504 "push", |
| 505 "[SLAVE_BUILD]/tmp/uninteresting_hashes.txt", |
| 506 "/storage/emulated/legacy/skiabot/skia_tmp_dir/uninteresting_hashes.txt" |
| 507 ], |
| 508 "env": { |
| 509 "BUILDTYPE": "Debug", |
| 510 "CHROME_HEADLESS": "1", |
| 511 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 512 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 513 }, |
| 514 "name": "push uninteresting_hashes.txt" |
| 515 }, |
| 516 { |
| 517 "cmd": [ |
| 518 "[SLAVE_BUILD]/skia/platform_tools/android/bin/android_run_skia", |
| 519 "--verbose", |
| 520 "--logcat", |
| 521 "-d", |
| 522 "arm_v7_neon", |
| 523 "-t", |
| 524 "Debug", |
| 525 "dm", |
| 526 "--undefok", |
| 527 "--resourcePath", |
| 528 "/storage/emulated/legacy/skiabot/skia_resources", |
| 529 "--skps", |
| 530 "/storage/emulated/legacy/skiabot/skia_skp/skps", |
| 531 "--images", |
| 532 "/storage/emulated/legacy/skiabot/skia_images/dm", |
| 533 "--colorImages", |
| 534 "/storage/emulated/legacy/skiabot/skia_images/colorspace", |
| 535 "--nameByHash", |
| 536 "--properties", |
| 537 "gitHash", |
| 538 "abc123", |
| 539 "master", |
| 540 "client.skia", |
| 541 "builder", |
| 542 "Test-Android-GCC-Nexus7-GPU-Tegra3-Arm7-Debug", |
| 543 "build_number", |
| 544 "6", |
| 545 "--key", |
| 546 "arch", |
| 547 "Arm7", |
| 548 "compiler", |
| 549 "GCC", |
| 550 "configuration", |
| 551 "Debug", |
| 552 "cpu_or_gpu", |
| 553 "GPU", |
| 554 "cpu_or_gpu_value", |
| 555 "Tegra3", |
| 556 "model", |
| 557 "Nexus7", |
| 558 "os", |
| 559 "Android", |
| 560 "--uninterestingHashesFile", |
| 561 "/storage/emulated/legacy/skiabot/skia_tmp_dir/uninteresting_hashes.txt", |
| 562 "--writePath", |
| 563 "/storage/emulated/legacy/skiabot/skia_dm", |
| 564 "--nocpu", |
| 565 "--dummy-flags" |
| 566 ], |
| 567 "env": { |
| 568 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
| 569 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
| 570 "BUILDTYPE": "Debug", |
| 571 "CHROME_HEADLESS": "1", |
| 572 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 573 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
| 574 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 575 }, |
| 576 "name": "dm" |
| 577 }, |
| 578 { |
| 579 "cmd": [ |
| 580 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_pull_if_needed", |
| 581 "--verbose", |
| 582 "/storage/emulated/legacy/skiabot/skia_dm", |
| 583 "[CUSTOM_[SWARM_OUT_DIR]]/dm" |
| 584 ], |
| 585 "env": { |
| 586 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
| 587 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
| 588 "BUILDTYPE": "Debug", |
| 589 "CHROME_HEADLESS": "1", |
| 590 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 591 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
| 592 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 593 }, |
| 594 "name": "pull skia_dm" |
| 595 }, |
| 596 { |
| 597 "cmd": [ |
| 598 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
| 599 "shell", |
| 600 "dumpsys", |
| 601 "batteryproperties" |
| 602 ], |
| 603 "env": { |
| 604 "BUILDTYPE": "Debug", |
| 605 "CHROME_HEADLESS": "1", |
| 606 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 607 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 608 }, |
| 609 "name": "final battery stats" |
| 610 }, |
| 611 { |
| 612 "cmd": [ |
| 613 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
| 614 "reboot" |
| 615 ], |
| 616 "env": { |
| 617 "BUILDTYPE": "Debug", |
| 618 "CHROME_HEADLESS": "1", |
| 619 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 620 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 621 }, |
| 622 "name": "reboot" |
| 623 }, |
| 624 { |
| 625 "cmd": [ |
| 626 "sleep", |
| 627 "10" |
| 628 ], |
| 629 "env": { |
| 630 "BUILDTYPE": "Debug", |
| 631 "CHROME_HEADLESS": "1", |
| 632 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 633 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 634 }, |
| 635 "name": "wait for reboot" |
| 636 }, |
| 637 { |
| 638 "cmd": [ |
| 639 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_device" |
| 640 ], |
| 641 "env": { |
| 642 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
| 643 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
| 644 "BUILDTYPE": "Debug", |
| 645 "CHROME_HEADLESS": "1", |
| 646 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 647 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
| 648 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 649 }, |
| 650 "name": "wait for device (3)" |
| 651 }, |
| 652 { |
| 653 "cmd": [ |
| 654 "[SLAVE_BUILD]/skia/platform_tools/android/bin/adb_wait_for_charge" |
| 655 ], |
| 656 "env": { |
| 657 "ANDROID_HOME": "[SLAVE_BUILD]/android_sdk/android-sdk", |
| 658 "ANDROID_SDK_ROOT": "[SLAVE_BUILD]/android_sdk/android-sdk", |
| 659 "BUILDTYPE": "Debug", |
| 660 "CHROME_HEADLESS": "1", |
| 661 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 662 "SKIA_ANDROID_VERBOSE_SETUP": "1", |
| 663 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 664 }, |
| 665 "name": "wait for charge (3)" |
| 666 }, |
| 667 { |
| 668 "cmd": [ |
| 669 "[SLAVE_BUILD]/android_sdk/android-sdk/platform-tools/adb", |
| 670 "kill-server" |
| 671 ], |
| 672 "env": { |
| 673 "BUILDTYPE": "Debug", |
| 674 "CHROME_HEADLESS": "1", |
| 675 "GYP_DEFINES": "skia_arch_type=arm skia_warnings_as_errors=0", |
| 676 "SKIA_OUT": "[SLAVE_BUILD]/out" |
| 677 }, |
| 678 "name": "kill-server" |
| 679 }, |
| 680 { |
| 681 "name": "$result", |
| 682 "recipe_result": null, |
| 683 "status_code": 0 |
| 684 } |
| 685 ] |
OLD | NEW |