| [ |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[START_DIR]/skia/infra/bots/assets/android_ndk_linux/VERSION", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "Get android_ndk_linux VERSION" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "[START_DIR]/skia/bin/fetch-gn" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "fetch-gn" |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/skia/bin/gn", |
| "gen", |
| "[START_DIR]/build/out/Debug", |
| "--args=extra_cflags=[\"-O1\", \"-DDUMMY_ndk_version=42\"] ndk=\"[START_DIR]/android_ndk_linux\" target_cpu=\"None\"" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "name": "gn gen" |
| }, |
| { |
| "cmd": [ |
| "ninja", |
| "-k", |
| "0", |
| "-C", |
| "[START_DIR]/build/out/Debug" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "name": "ninja" |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "push", |
| "file.txt", |
| "file.txt" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "push file.txt file.txt" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "rmtree", |
| "results_dir" |
| ], |
| "infra_step": true, |
| "name": "rmtree results_dir" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "results_dir" |
| ], |
| "infra_step": true, |
| "name": "makedirs results_dir" |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "shell", |
| "rm", |
| "-rf", |
| "device_results_dir" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "rm device_results_dir" |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "shell", |
| "mkdir", |
| "-p", |
| "device_results_dir" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "mkdir device_results_dir" |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "shell", |
| "mkdir", |
| "-p", |
| "/sdcard/revenge_of_the_skiabot/resources" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "mkdir /sdcard/revenge_of_the_skiabot/resources", |
| "~followup_annotations": [ |
| "step returned non-zero exit code: 1", |
| "@@@STEP_EXCEPTION@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "kill-server" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "kill adb server after failure of 'mkdir /sdcard/revenge_of_the_skiabot/resources' (attempt 1)", |
| "timeout": 30 |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "wait-for-device" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "wait for device after failure of 'mkdir /sdcard/revenge_of_the_skiabot/resources' (attempt 1)", |
| "timeout": 180 |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "shell", |
| "mkdir", |
| "-p", |
| "/sdcard/revenge_of_the_skiabot/resources" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "mkdir /sdcard/revenge_of_the_skiabot/resources (attempt 2)", |
| "~followup_annotations": [ |
| "step returned non-zero exit code: 1", |
| "@@@STEP_EXCEPTION@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "kill-server" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "kill adb server after failure of 'mkdir /sdcard/revenge_of_the_skiabot/resources' (attempt 2)", |
| "timeout": 30 |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "wait-for-device" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "wait for device after failure of 'mkdir /sdcard/revenge_of_the_skiabot/resources' (attempt 2)", |
| "timeout": 180 |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "shell", |
| "mkdir", |
| "-p", |
| "/sdcard/revenge_of_the_skiabot/resources" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "mkdir /sdcard/revenge_of_the_skiabot/resources (attempt 3)", |
| "~followup_annotations": [ |
| "step returned non-zero exit code: 1", |
| "@@@STEP_EXCEPTION@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "\nimport os\nimport subprocess\nimport sys\nout = sys.argv[1]\nlog = subprocess.check_output(['/usr/bin/adb.1.0.35', 'logcat', '-d'])\nfor line in log.split('\\n'):\n tokens = line.split()\n if len(tokens) == 11 and tokens[-7] == 'F' and tokens[-3] == 'pc':\n addr, path = tokens[-2:]\n local = os.path.join(out, os.path.basename(path))\n if os.path.exists(local):\n sym = subprocess.check_output(['addr2line', '-Cfpe', local, addr])\n line = line.replace(addr, addr + ' ' + sym.strip())\n print line\n", |
| "[START_DIR]/build/out/Debug" |
| ], |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "dump log", |
| "timeout": 300, |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@python.inline@@@@", |
| "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| "@@@STEP_LOG_LINE@python.inline@import subprocess@@@", |
| "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| "@@@STEP_LOG_LINE@python.inline@out = sys.argv[1]@@@", |
| "@@@STEP_LOG_LINE@python.inline@log = subprocess.check_output(['/usr/bin/adb.1.0.35', 'logcat', '-d'])@@@", |
| "@@@STEP_LOG_LINE@python.inline@for line in log.split('\\n'):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ tokens = line.split()@@@", |
| "@@@STEP_LOG_LINE@python.inline@ if len(tokens) == 11 and tokens[-7] == 'F' and tokens[-3] == 'pc':@@@", |
| "@@@STEP_LOG_LINE@python.inline@ addr, path = tokens[-2:]@@@", |
| "@@@STEP_LOG_LINE@python.inline@ local = os.path.join(out, os.path.basename(path))@@@", |
| "@@@STEP_LOG_LINE@python.inline@ if os.path.exists(local):@@@", |
| "@@@STEP_LOG_LINE@python.inline@ sym = subprocess.check_output(['addr2line', '-Cfpe', local, addr])@@@", |
| "@@@STEP_LOG_LINE@python.inline@ line = line.replace(addr, addr + ' ' + sym.strip())@@@", |
| "@@@STEP_LOG_LINE@python.inline@ print line@@@", |
| "@@@STEP_LOG_END@python.inline@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n" |
| ], |
| "name": "get swarming bot id", |
| "stdout": "/path/to/tmp/", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@", |
| "@@@STEP_LOG_END@python.inline@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| " ", |
| "/home/chrome-bot/build123-m2--device5.force_quarantine" |
| ], |
| "infra_step": true, |
| "name": "Quarantining Bot" |
| }, |
| { |
| "cmd": [ |
| "/usr/bin/adb.1.0.35", |
| "kill-server" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "BUILDTYPE": "Debug", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", |
| "SKIA_OUT": "[START_DIR]/build/out" |
| }, |
| "infra_step": true, |
| "name": "kill adb server" |
| }, |
| { |
| "name": "$result", |
| "reason": "Infra Failure: Step('mkdir /sdcard/revenge_of_the_skiabot/resources (attempt 3)') returned 1", |
| "recipe_result": null, |
| "status_code": 1 |
| } |
| ] |