blob: ede42ff877c57e1d5cba140faf425049b22f35ad [file] [log] [blame]
[
{
"cmd": [],
"name": "download build artifacts"
},
{
"cmd": [],
"name": "download build artifacts.ensure isolated",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/isolated_client",
"-ensure-file",
"infra/tools/luci/isolated/${platform} git_revision:305e79001db1846906c7136d90a863bee5bd3bfc",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "download build artifacts.ensure isolated.ensure_installed",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@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-git_revision:305\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/isolated/resolved-platform\"@@@",
"@@@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": [
"[CACHE]/isolated_client/isolated",
"download",
"-verbose",
"-isolate-server",
"https://example.isolateserver.appspot.com",
"-isolated",
"abc",
"-output-dir",
"[CLEANUP]/build-artifacts_tmp_1"
],
"infra_step": true,
"name": "download build artifacts.download build_artifacts",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"python",
"-u",
"\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
"[CLEANUP]/build-artifacts_tmp_1/args.json",
"/path/to/tmp/json"
],
"name": "download build artifacts.read args.json",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"board\": \"boards/x64.gni\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"build_type\": \"build_type\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"product\": \"products/core.gni\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"target\": \"x64\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"variants\": []@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"python",
"-u",
"\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
"[CLEANUP]/build-artifacts_tmp_1/images.json",
"/path/to/tmp/json"
],
"name": "download build artifacts.read images.json",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"netboot\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"bootserver_netboot\": [@@@",
"@@@STEP_LOG_LINE@json.output@ \"--boot\"@@@",
"@@@STEP_LOG_LINE@json.output@ ], @@@",
"@@@STEP_LOG_LINE@json.output@ \"name\": \"netboot\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"path\": \"netboot.zbi\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"type\": \"zbi\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"zircon-a\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"bootserver_pave\": [@@@",
"@@@STEP_LOG_LINE@json.output@ \"--boot\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"--zircona\"@@@",
"@@@STEP_LOG_LINE@json.output@ ], @@@",
"@@@STEP_LOG_LINE@json.output@ \"name\": \"zircon-a\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"path\": \"fuchsia.zbi\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"type\": \"zbi\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"python",
"-u",
"\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n",
"[CLEANUP]/build-artifacts_tmp_1/shards.json",
"/path/to/tmp/json"
],
"name": "download build artifacts.load test shards",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_END@json.output (invalid)@@@",
"@@@STEP_LOG_LINE@json.output (exception)@No JSON object could be decoded@@@",
"@@@STEP_LOG_END@json.output (exception)@@@"
]
},
{
"cmd": [],
"name": "isolate build artifacts"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"{\n \"variants\": [], \n \"product\": \"products/core.gni\", \n \"target\": \"x64\", \n \"board\": \"boards/x64.gni\", \n \"build_type\": \"build_type\"\n}",
"[START_DIR]/args.json"
],
"infra_step": true,
"name": "isolate build artifacts.write args.json",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@args.json@{@@@",
"@@@STEP_LOG_LINE@args.json@ \"variants\": [], @@@",
"@@@STEP_LOG_LINE@args.json@ \"product\": \"products/core.gni\", @@@",
"@@@STEP_LOG_LINE@args.json@ \"target\": \"x64\", @@@",
"@@@STEP_LOG_LINE@args.json@ \"board\": \"boards/x64.gni\", @@@",
"@@@STEP_LOG_LINE@args.json@ \"build_type\": \"build_type\"@@@",
"@@@STEP_LOG_LINE@args.json@}@@@",
"@@@STEP_LOG_END@args.json@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"{\n \"netboot\": {\n \"path\": \"netboot.zbi\", \n \"bootserver_netboot\": [\n \"--boot\"\n ], \n \"type\": \"zbi\", \n \"name\": \"netboot\"\n }, \n \"zircon-a\": {\n \"path\": \"fuchsia.zbi\", \n \"type\": \"zbi\", \n \"name\": \"zircon-a\", \n \"bootserver_pave\": [\n \"--boot\", \n \"--zircona\"\n ]\n }\n}",
"[START_DIR]/images.json"
],
"infra_step": true,
"name": "isolate build artifacts.write images.json",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@images.json@{@@@",
"@@@STEP_LOG_LINE@images.json@ \"netboot\": {@@@",
"@@@STEP_LOG_LINE@images.json@ \"path\": \"netboot.zbi\", @@@",
"@@@STEP_LOG_LINE@images.json@ \"bootserver_netboot\": [@@@",
"@@@STEP_LOG_LINE@images.json@ \"--boot\"@@@",
"@@@STEP_LOG_LINE@images.json@ ], @@@",
"@@@STEP_LOG_LINE@images.json@ \"type\": \"zbi\", @@@",
"@@@STEP_LOG_LINE@images.json@ \"name\": \"netboot\"@@@",
"@@@STEP_LOG_LINE@images.json@ }, @@@",
"@@@STEP_LOG_LINE@images.json@ \"zircon-a\": {@@@",
"@@@STEP_LOG_LINE@images.json@ \"path\": \"fuchsia.zbi\", @@@",
"@@@STEP_LOG_LINE@images.json@ \"type\": \"zbi\", @@@",
"@@@STEP_LOG_LINE@images.json@ \"name\": \"zircon-a\", @@@",
"@@@STEP_LOG_LINE@images.json@ \"bootserver_pave\": [@@@",
"@@@STEP_LOG_LINE@images.json@ \"--boot\", @@@",
"@@@STEP_LOG_LINE@images.json@ \"--zircona\"@@@",
"@@@STEP_LOG_LINE@images.json@ ]@@@",
"@@@STEP_LOG_LINE@images.json@ }@@@",
"@@@STEP_LOG_LINE@images.json@}@@@",
"@@@STEP_LOG_END@images.json@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[]",
"[START_DIR]/shards.json"
],
"infra_step": true,
"name": "isolate build artifacts.write shards.json",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@shards.json@[]@@@",
"@@@STEP_LOG_END@shards.json@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/symlink.py",
"--link-json",
"{\"[CLEANUP]/build-artifacts_tmp_1/arm64/botanist\": [\"[CLEANUP]/build_artifacts_tmp_2/arm64/botanist\"], \"[CLEANUP]/build-artifacts_tmp_1/arm64/testrunner\": [\"[CLEANUP]/build_artifacts_tmp_2/arm64/testrunner\"], \"[CLEANUP]/build-artifacts_tmp_1/authorized_key\": [\"[CLEANUP]/build_artifacts_tmp_2/authorized_key\"], \"[CLEANUP]/build-artifacts_tmp_1/bootserver\": [\"[CLEANUP]/build_artifacts_tmp_2/bootserver\"], \"[CLEANUP]/build-artifacts_tmp_1/covargs\": [\"[CLEANUP]/build_artifacts_tmp_2/covargs\"], \"[CLEANUP]/build-artifacts_tmp_1/fuchsia.zbi\": [\"[CLEANUP]/build_artifacts_tmp_2/fuchsia.zbi\"], \"[CLEANUP]/build-artifacts_tmp_1/ids.txt\": [\"[CLEANUP]/build_artifacts_tmp_2/ids.txt\"], \"[CLEANUP]/build-artifacts_tmp_1/llvm-symbolizer\": [\"[CLEANUP]/build_artifacts_tmp_2/llvm-symbolizer\"], \"[CLEANUP]/build-artifacts_tmp_1/llvm_cov\": [\"[CLEANUP]/build_artifacts_tmp_2/llvm_cov\"], \"[CLEANUP]/build-artifacts_tmp_1/llvm_profdata\": [\"[CLEANUP]/build_artifacts_tmp_2/llvm_profdata\"], \"[CLEANUP]/build-artifacts_tmp_1/minfs\": [\"[CLEANUP]/build_artifacts_tmp_2/minfs\"], \"[CLEANUP]/build-artifacts_tmp_1/netboot.zbi\": [\"[CLEANUP]/build_artifacts_tmp_2/netboot.zbi\"], \"[CLEANUP]/build-artifacts_tmp_1/private_key\": [\"[CLEANUP]/build_artifacts_tmp_2/private_key\"], \"[CLEANUP]/build-artifacts_tmp_1/symbolize_tool\": [\"[CLEANUP]/build_artifacts_tmp_2/symbolize_tool\"], \"[CLEANUP]/build-artifacts_tmp_1/tests.json\": [\"[CLEANUP]/build_artifacts_tmp_2/tests.json\"], \"[CLEANUP]/build-artifacts_tmp_1/x64/botanist\": [\"[CLEANUP]/build_artifacts_tmp_2/x64/botanist\"], \"[CLEANUP]/build-artifacts_tmp_1/x64/testrunner\": [\"[CLEANUP]/build_artifacts_tmp_2/x64/testrunner\"], \"[CLEANUP]/build-artifacts_tmp_1/zbi\": [\"[CLEANUP]/build_artifacts_tmp_2/zbi\"], \"[START_DIR]/args.json\": [\"[CLEANUP]/build_artifacts_tmp_2/args.json\"], \"[START_DIR]/images.json\": [\"[CLEANUP]/build_artifacts_tmp_2/images.json\"], \"[START_DIR]/shards.json\": [\"[CLEANUP]/build_artifacts_tmp_2/shards.json\"]}"
],
"infra_step": true,
"name": "isolate build artifacts.create_links",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[CACHE]/isolated_client/isolated",
"archive",
"-verbose",
"-isolate-server",
"https://example.isolateserver.appspot.com",
"-namespace",
"default-gzip",
"-dump-hash",
"/path/to/tmp/",
"-dirs",
"[CLEANUP]/build_artifacts_tmp_2:."
],
"infra_step": true,
"name": "isolate build artifacts.isolate",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LINK@isolated UI@https://example.isolateserver.appspot.com/browse?namespace=default-gzip&hash=%5Bdummy+hash%5D@@@"
]
},
{
"name": "$result"
}
]