| [ |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::vars]/resources/get_env_var.py", |
| "SWARMING_BOT_ID" |
| ], |
| "name": "get swarming bot id" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "push", |
| "file.txt", |
| "file.txt" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "push file.txt file.txt" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "test", |
| "-f", |
| "file.txt" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "check if file.txt exists" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "cat", |
| "file.txt" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "read file.txt" |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py", |
| "/opt/infra-android/tools/adb", |
| "file.txt" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "rm file.txt" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-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": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0o777", |
| "results_dir" |
| ], |
| "infra_step": true, |
| "name": "makedirs results_dir" |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py", |
| "/opt/infra-android/tools/adb", |
| "device_results_dir" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "rm device_results_dir" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "mkdir", |
| "-p", |
| "device_results_dir" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "mkdir device_results_dir" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "mkdir", |
| "-p", |
| "/sdcard/revenge_of_the_skiabot/resources" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "mkdir /sdcard/revenge_of_the_skiabot/resources" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "push", |
| "[START_DIR]/build/nanobench", |
| "/data/local/tmp/" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "push nanobench" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "glob", |
| "[START_DIR]/skia/resources", |
| "*" |
| ], |
| "infra_step": true, |
| "name": "ls [START_DIR]/skia/resources/*", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/skia/resources/bar.jpg@@@", |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/skia/resources/foo.png@@@", |
| "@@@STEP_LOG_END@glob@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "push", |
| "[START_DIR]/skia/resources/bar.jpg", |
| "[START_DIR]/skia/resources/foo.png", |
| "/sdcard/revenge_of_the_skiabot/resources" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "push [START_DIR]/skia/resources/* /sdcard/revenge_of_the_skiabot/resources" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[START_DIR]/skia/infra/bots/assets/skp/VERSION", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "Get skp VERSION", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@VERSION@42@@@", |
| "@@@STEP_LOG_END@VERSION@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "42", |
| "[START_DIR]/tmp/SKP_VERSION" |
| ], |
| "infra_step": true, |
| "name": "write SKP_VERSION", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@SKP_VERSION@42@@@", |
| "@@@STEP_LOG_END@SKP_VERSION@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "test", |
| "-f", |
| "/sdcard/revenge_of_the_skiabot/SKP_VERSION" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "check if /sdcard/revenge_of_the_skiabot/SKP_VERSION exists" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "cat", |
| "/sdcard/revenge_of_the_skiabot/SKP_VERSION" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "read /sdcard/revenge_of_the_skiabot/SKP_VERSION" |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py", |
| "/opt/infra-android/tools/adb", |
| "/sdcard/revenge_of_the_skiabot/SKP_VERSION" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "rm /sdcard/revenge_of_the_skiabot/SKP_VERSION" |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py", |
| "/opt/infra-android/tools/adb", |
| "/sdcard/revenge_of_the_skiabot/skps" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "rm /sdcard/revenge_of_the_skiabot/skps" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "mkdir", |
| "-p", |
| "/sdcard/revenge_of_the_skiabot/skps" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "mkdir /sdcard/revenge_of_the_skiabot/skps" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "glob", |
| "[START_DIR]/skp", |
| "*" |
| ], |
| "infra_step": true, |
| "name": "ls [START_DIR]/skp/*", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/skp/bar.jpg@@@", |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/skp/foo.png@@@", |
| "@@@STEP_LOG_END@glob@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "push", |
| "[START_DIR]/skp/bar.jpg", |
| "[START_DIR]/skp/foo.png", |
| "/sdcard/revenge_of_the_skiabot/skps" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "push [START_DIR]/skp/* /sdcard/revenge_of_the_skiabot/skps" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "push", |
| "[START_DIR]/tmp/SKP_VERSION", |
| "/sdcard/revenge_of_the_skiabot/SKP_VERSION" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "push [START_DIR]/tmp/SKP_VERSION /sdcard/revenge_of_the_skiabot/SKP_VERSION" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[START_DIR]/skia/infra/bots/assets/skimage/VERSION", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "Get skimage VERSION", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@VERSION@42@@@", |
| "@@@STEP_LOG_END@VERSION@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "42", |
| "[START_DIR]/tmp/SK_IMAGE_VERSION" |
| ], |
| "infra_step": true, |
| "name": "write SK_IMAGE_VERSION", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@SK_IMAGE_VERSION@42@@@", |
| "@@@STEP_LOG_END@SK_IMAGE_VERSION@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "test", |
| "-f", |
| "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "check if /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION exists" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "cat", |
| "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "read /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py", |
| "/opt/infra-android/tools/adb", |
| "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "rm /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py", |
| "/opt/infra-android/tools/adb", |
| "/sdcard/revenge_of_the_skiabot/images" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "rm /sdcard/revenge_of_the_skiabot/images" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "mkdir", |
| "-p", |
| "/sdcard/revenge_of_the_skiabot/images" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "mkdir /sdcard/revenge_of_the_skiabot/images" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "glob", |
| "[START_DIR]/skimage", |
| "*" |
| ], |
| "infra_step": true, |
| "name": "ls [START_DIR]/skimage/*", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/skimage/bar.jpg@@@", |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/skimage/foo.png@@@", |
| "@@@STEP_LOG_END@glob@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "push", |
| "[START_DIR]/skimage/bar.jpg", |
| "[START_DIR]/skimage/foo.png", |
| "/sdcard/revenge_of_the_skiabot/images" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "push [START_DIR]/skimage/* /sdcard/revenge_of_the_skiabot/images" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "push", |
| "[START_DIR]/tmp/SK_IMAGE_VERSION", |
| "/sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "push [START_DIR]/tmp/SK_IMAGE_VERSION /sdcard/revenge_of_the_skiabot/SK_IMAGE_VERSION" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[START_DIR]/skia/infra/bots/assets/svg/VERSION", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "Get svg VERSION", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@VERSION@42@@@", |
| "@@@STEP_LOG_END@VERSION@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "42", |
| "[START_DIR]/tmp/SVG_VERSION" |
| ], |
| "infra_step": true, |
| "name": "write SVG_VERSION", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@SVG_VERSION@42@@@", |
| "@@@STEP_LOG_END@SVG_VERSION@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "test", |
| "-f", |
| "/sdcard/revenge_of_the_skiabot/SVG_VERSION" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "check if /sdcard/revenge_of_the_skiabot/SVG_VERSION exists" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "cat", |
| "/sdcard/revenge_of_the_skiabot/SVG_VERSION" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "read /sdcard/revenge_of_the_skiabot/SVG_VERSION" |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py", |
| "/opt/infra-android/tools/adb", |
| "/sdcard/revenge_of_the_skiabot/SVG_VERSION" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "rm /sdcard/revenge_of_the_skiabot/SVG_VERSION" |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::flavor]/resources/remove_file_on_device.py", |
| "/opt/infra-android/tools/adb", |
| "/sdcard/revenge_of_the_skiabot/svgs" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "rm /sdcard/revenge_of_the_skiabot/svgs" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "shell", |
| "mkdir", |
| "-p", |
| "/sdcard/revenge_of_the_skiabot/svgs" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "mkdir /sdcard/revenge_of_the_skiabot/svgs" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "glob", |
| "[START_DIR]/svg", |
| "*" |
| ], |
| "infra_step": true, |
| "name": "ls [START_DIR]/svg/*", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/svg/bar.jpg@@@", |
| "@@@STEP_LOG_LINE@glob@[START_DIR]/svg/foo.png@@@", |
| "@@@STEP_LOG_END@glob@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "push", |
| "[START_DIR]/svg/bar.jpg", |
| "[START_DIR]/svg/foo.png", |
| "/sdcard/revenge_of_the_skiabot/svgs" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "push [START_DIR]/svg/* /sdcard/revenge_of_the_skiabot/svgs" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "push", |
| "[START_DIR]/tmp/SVG_VERSION", |
| "/sdcard/revenge_of_the_skiabot/SVG_VERSION" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "push [START_DIR]/tmp/SVG_VERSION /sdcard/revenge_of_the_skiabot/SVG_VERSION" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "set -x; LD_LIBRARY_PATH=/data/local/tmp/ /data/local/tmp/nanobench --some-flag; echo $? >/data/local/tmp/rc", |
| "[START_DIR]/tmp/nanobench.sh" |
| ], |
| "infra_step": true, |
| "name": "write nanobench.sh", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@nanobench.sh@set -x; LD_LIBRARY_PATH=/data/local/tmp/ /data/local/tmp/nanobench --some-flag; echo $? >/data/local/tmp/rc@@@", |
| "@@@STEP_LOG_END@nanobench.sh@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "push", |
| "[START_DIR]/tmp/nanobench.sh", |
| "/data/local/tmp/" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "push nanobench.sh" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "logcat", |
| "-c" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "clear log" |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::flavor]/resources/run_sh.py", |
| "/data/local/tmp/", |
| "nanobench.sh", |
| "/opt/infra-android/tools/adb" |
| ], |
| "name": "nanobench" |
| }, |
| { |
| "cmd": [], |
| "name": "adb pull" |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "pull", |
| "/sdcard/revenge_of_the_skiabot/perf", |
| "[CLEANUP]/adb_pull_tmp_1" |
| ], |
| "cwd": "[START_DIR]/skia", |
| "env": { |
| "ADB_VENDOR_KEYS": "/home/chrome-bot/.android/chrome_infrastructure_adbkey", |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "adb pull.pull /sdcard/revenge_of_the_skiabot/perf", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "glob", |
| "[CLEANUP]/adb_pull_tmp_1", |
| "perf/*" |
| ], |
| "infra_step": true, |
| "name": "adb pull.list pulled files", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@glob@[CLEANUP]/adb_pull_tmp_1/1.png@@@", |
| "@@@STEP_LOG_LINE@glob@[CLEANUP]/adb_pull_tmp_1/2.png@@@", |
| "@@@STEP_LOG_END@glob@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[CLEANUP]/adb_pull_tmp_1/1.png", |
| "[START_DIR]/[SWARM_OUT_DIR]" |
| ], |
| "infra_step": true, |
| "name": "adb pull.copy 1.png", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[CLEANUP]/adb_pull_tmp_1/2.png", |
| "[START_DIR]/[SWARM_OUT_DIR]" |
| ], |
| "infra_step": true, |
| "name": "adb pull.copy 2.png", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "reboot" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "adb reboot device", |
| "timeout": 30 |
| }, |
| { |
| "cmd": [ |
| "/opt/infra-android/tools/adb", |
| "wait-for-device", |
| "shell", |
| "while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "name": "wait for device after rebooting", |
| "timeout": 180 |
| }, |
| { |
| "cmd": [ |
| "python3", |
| "RECIPE_MODULE[skia::flavor]/resources/dump_adb_log.py", |
| "[START_DIR]/build", |
| "/opt/infra-android/tools/adb" |
| ], |
| "env": { |
| "CHROME_HEADLESS": "1", |
| "PATH": "<PATH>:RECIPE_REPO[depot_tools]" |
| }, |
| "infra_step": true, |
| "name": "dump log", |
| "timeout": 300 |
| }, |
| { |
| "name": "$result" |
| } |
| ] |