| [ |
| { |
| "cmd": [], |
| "name": "download avd package" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[CACHE]/builder/avd" |
| ], |
| "infra_step": true, |
| "name": "download avd package.Ensure avd cache", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[CACHE]/builder/avd", |
| "-ensure-file", |
| "chromium/tools/android/avd/linux-amd64 1EQ8d87vhYyuBlCFZU8po6bpNXScHFB-9PGR27JlIS8C", |
| "-max-threads", |
| "0", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "cwd": "[CACHE]/builder/avd", |
| "env_suffixes": { |
| "DEPOT_TOOLS_UPDATE": [ |
| "0" |
| ], |
| "PATH": [ |
| "RECIPE_REPO[depot_tools]" |
| ] |
| }, |
| "name": "download avd package.ensure_installed", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-1EQ8d87vhYyuBlCF\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"chromium/tools/android/avd/linux-amd64\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ ]@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "start avd" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "[CACHE]/builder/avd/src/tools/android/avd/avd.py", |
| "install", |
| "--avd-config", |
| "[CACHE]/builder/avd/src/tools/android/avd/proto/generic_android31.textpb" |
| ], |
| "cwd": "[CACHE]/builder/avd", |
| "env": { |
| "ADB_PATH": "[CACHE]/builder/avd/src/third_party/android_sdk/public/platform-tools/adb", |
| "AVD_ROOT": "[CACHE]/builder/avd" |
| }, |
| "env_prefixes": { |
| "PATH": [ |
| "[CACHE]/builder/avd/src/third_party/android_sdk/public/platform-tools" |
| ] |
| }, |
| "env_suffixes": { |
| "DEPOT_TOOLS_UPDATE": [ |
| "0" |
| ], |
| "PATH": [ |
| "RECIPE_REPO[depot_tools]" |
| ] |
| }, |
| "name": "start avd.Install Android emulator (API level 31)", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_END@raw_io.output_text@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "[CACHE]/builder/avd/src/tools/android/avd/avd.py", |
| "start", |
| "--no-read-only", |
| "--wipe-data", |
| "--writable-system", |
| "--debug-tags", |
| "all", |
| "--avd-config", |
| "[CACHE]/builder/avd/src/tools/android/avd/proto/generic_android31.textpb" |
| ], |
| "cwd": "[CACHE]/builder/avd", |
| "env": { |
| "ADB_PATH": "[CACHE]/builder/avd/src/third_party/android_sdk/public/platform-tools/adb", |
| "AVD_ROOT": "[CACHE]/builder/avd" |
| }, |
| "env_prefixes": { |
| "PATH": [ |
| "[CACHE]/builder/avd/src/third_party/android_sdk/public/platform-tools" |
| ] |
| }, |
| "env_suffixes": { |
| "DEPOT_TOOLS_UPDATE": [ |
| "0" |
| ], |
| "PATH": [ |
| "RECIPE_REPO[depot_tools]" |
| ] |
| }, |
| "name": "start avd.Start Android emulator (API level 31)", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@raw_io.output_text@android_31_google_apis_x86|emulator-5554 started (pid: 17687)@@@", |
| "@@@STEP_LOG_END@raw_io.output_text@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "avd setup" |
| }, |
| { |
| "cmd": [ |
| "chmod", |
| "755", |
| "RECIPE_MODULE[flutter::android_virtual_device]/resources/avd_setup.sh" |
| ], |
| "cwd": "[CACHE]/builder/avd", |
| "env": { |
| "ADB_PATH": "[CACHE]/builder/avd/src/third_party/android_sdk/public/platform-tools/adb", |
| "AVD_ROOT": "[CACHE]/builder/avd", |
| "EMULATOR_PID": "17687" |
| }, |
| "env_prefixes": { |
| "PATH": [ |
| "[CACHE]/builder/avd/src/third_party/android_sdk/public/platform-tools" |
| ] |
| }, |
| "infra_step": true, |
| "name": "avd setup.Set execute permission", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "RECIPE_MODULE[flutter::android_virtual_device]/resources/avd_setup.sh", |
| "[CACHE]/builder/avd/src/third_party/android_sdk/public/platform-tools/adb" |
| ], |
| "cwd": "[CACHE]/builder/avd", |
| "env": { |
| "ADB_PATH": "[CACHE]/builder/avd/src/third_party/android_sdk/public/platform-tools/adb", |
| "AVD_ROOT": "[CACHE]/builder/avd", |
| "EMULATOR_PID": "17687" |
| }, |
| "env_prefixes": { |
| "PATH": [ |
| "[CACHE]/builder/avd/src/third_party/android_sdk/public/platform-tools" |
| ] |
| }, |
| "infra_step": true, |
| "name": "avd setup.avd_setup.sh", |
| "timeout": 3600, |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@test_stdout@@@@", |
| "@@@STEP_LOG_END@test_stdout@@@", |
| "@@@STEP_LOG_LINE@test_stderr@@@@", |
| "@@@STEP_LOG_END@test_stderr@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "kill and cleanup avd" |
| }, |
| { |
| "cmd": [ |
| "kill", |
| "-9", |
| "17687" |
| ], |
| "name": "kill and cleanup avd.Kill emulator cleanup", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "ps", |
| "-axww" |
| ], |
| "name": "kill and cleanup avd.list processes", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_END@raw_io.output_text@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "kill", |
| "-9", |
| "12345" |
| ], |
| "name": "kill and cleanup avd.Kill zombie processes", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "name": "$result" |
| } |
| ] |