blob: f82bed81f1a88bd7c9f2486c5607d3f1f2578449 [file] [log] [blame]
[
{
"cmd": [],
"name": "check latest versions AEMU"
},
{
"cmd": [],
"name": "check latest versions AEMU.ensure luci-auth",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"RECIPE_MODULE[fuchsia::android_downloader]/resources/luci_auth/tool_manifest.json",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "check latest versions AEMU.ensure luci-auth.read manifest",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@{@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"path\": \"path/to/luci-auth\",@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"version\": \"version:pinned-version\"@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@}@@@",
"@@@STEP_LOG_END@tool_manifest.json@@@"
]
},
{
"cmd": [],
"name": "check latest versions AEMU.ensure luci-auth.install path/to/luci-auth",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/cipd_tool/path/to/luci-auth/version%3Apinned-version"
],
"infra_step": true,
"name": "check latest versions AEMU.ensure luci-auth.install path/to/luci-auth.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/path/to/luci-auth/version%3Apinned-version",
"-ensure-file",
"path/to/luci-auth version:pinned-version",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "check latest versions AEMU.ensure luci-auth.install path/to/luci-auth.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@",
"@@@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-version:pinned-v\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"path/to/luci-auth\"@@@",
"@@@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": "check latest versions AEMU.ensure aemu",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"RECIPE_MODULE[fuchsia::android_downloader]/resources/android_downloader/tool_manifest.json",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "check latest versions AEMU.ensure aemu.read manifest",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@{@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"path\": \"path/to/aemu\",@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"version\": \"version:pinned-version\"@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@}@@@",
"@@@STEP_LOG_END@tool_manifest.json@@@"
]
},
{
"cmd": [],
"name": "check latest versions AEMU.ensure aemu.install path/to/aemu",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/cipd_tool/path/to/aemu/version%3Apinned-version"
],
"infra_step": true,
"name": "check latest versions AEMU.ensure aemu.install path/to/aemu.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/path/to/aemu/version%3Apinned-version",
"-ensure-file",
"path/to/aemu version:pinned-version",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "check latest versions AEMU.ensure aemu.install path/to/aemu.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@",
"@@@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-version:pinned-v\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"path/to/aemu\"@@@",
"@@@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": [
"[START_DIR]/cipd_tool/path/to/luci-auth/version%3Apinned-version/luci-auth",
"context",
"-scopes",
"https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/firebase https://www.googleapis.com/auth/gerritcodereview https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/androidbuild.internal",
"-act-as-service-account",
"aemu-artifact-mover@fuchsia-cloud-api-for-test.iam.gserviceaccount.com",
"--",
"[START_DIR]/cipd_tool/path/to/aemu/version%3Apinned-version/aemu",
"-find_bid",
"-branch",
"aosp-emu-master-dev",
"-artifact",
"emulator-linux_x64_internal,sdk-repo-linux-emulator-{bid}.zip",
"-artifact",
"emulator-linux_aarch64,sdk-repo-linux_aarch64-emulator-{bid}.zip",
"-artifact",
"emulator-mac_x64,sdk-repo-darwin-emulator-{bid}.zip",
"-artifact",
"emulator-mac_aarch64,sdk-repo-darwin_aarch64-emulator-{bid}.zip"
],
"name": "check latest versions AEMU.get latest bid from Android build for AEMU",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"cipd",
"search",
"fuchsia/third_party/android/aemu/release/linux-amd64",
"-tag",
"bid:1234567",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd search fuchsia/third_party/android/aemu/release/linux-amd64 bid:1234567",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": []@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [],
"name": "download AEMU artifacts and upload to CIPD",
"~followup_annotations": [
"@@@STEP_EXCEPTION@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/1234567"
],
"infra_step": true,
"name": "download AEMU artifacts and upload to CIPD.ensure download dir",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/luci-auth/version%3Apinned-version/luci-auth",
"context",
"-scopes",
"https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/firebase https://www.googleapis.com/auth/gerritcodereview https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/androidbuild.internal",
"-act-as-service-account",
"aemu-artifact-mover@fuchsia-cloud-api-for-test.iam.gserviceaccount.com",
"--",
"[START_DIR]/cipd_tool/path/to/aemu/version%3Apinned-version/aemu",
"-bid",
"1234567",
"-output",
"[CLEANUP]/1234567",
"-branch",
"aosp-emu-master-dev",
"-artifact",
"emulator-linux_x64_internal,sdk-repo-linux-emulator-{bid}.zip",
"-artifact",
"emulator-linux_aarch64,sdk-repo-linux_aarch64-emulator-{bid}.zip",
"-artifact",
"emulator-mac_x64,sdk-repo-darwin-emulator-{bid}.zip",
"-artifact",
"emulator-mac_aarch64,sdk-repo-darwin_aarch64-emulator-{bid}.zip"
],
"name": "download AEMU artifacts and upload to CIPD.download bid: 1234567",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CLEANUP]/1234567"
],
"infra_step": true,
"name": "download AEMU artifacts and upload to CIPD.list downloaded targets",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@listdir@[CLEANUP]/1234567/emulator-linux_aarch64@@@",
"@@@STEP_LOG_LINE@listdir@[CLEANUP]/1234567/emulator-linux_x64_internal@@@",
"@@@STEP_LOG_LINE@listdir@[CLEANUP]/1234567/emulator-mac_aarch64@@@",
"@@@STEP_LOG_LINE@listdir@[CLEANUP]/1234567/emulator-mac_x64@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CLEANUP]/1234567/emulator-linux_aarch64"
],
"infra_step": true,
"name": "download AEMU artifacts and upload to CIPD.list target in emulator-linux_aarch64",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@listdir@[CLEANUP]/1234567/emulator-linux_aarch64/invalid_file.json@@@",
"@@@STEP_LOG_LINE@listdir@[CLEANUP]/1234567/emulator-linux_aarch64/sdk-repo-linux-emulator-1234567.zip@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"failure": {
"humanReason": "Invalid file invalid_file.json. Expected a .zip file"
},
"name": "$result"
}
]