blob: 596f87fbb2a03927f0581f5e2f548770b8b7ae16 [file] [log] [blame]
[
{
"cmd": [],
"name": "ensure image"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image.init fuchsia_image cache",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image.check image cache content",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/buildargs.gn@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/qemu-kernel.kernel@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/storage-full.blk@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/zircon-a.zbi@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image.set image files",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/buildargs.gn@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/qemu-kernel.kernel@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/storage-full.blk@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/storage-sparse.blk@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/zircon-a.zbi@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/zircon-r.zbi@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [],
"name": "ensure packages"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/builder/0.20200101.0.1/fuchsia_packages/linux_intel_64"
],
"infra_step": true,
"name": "ensure packages.init fuchsia_packages cache",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CACHE]/builder/0.20200101.0.1/fuchsia_packages/linux_intel_64"
],
"infra_step": true,
"name": "ensure packages.check packages cache content",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [],
"name": "ensure packages.ensure gsutil",
"~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::gsutil]/resources/tool_manifest.json",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure packages.ensure gsutil.read manifest",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@{@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"path\": \"path/to/gsutil\",@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"version\": \"version:pinned-version\"@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@}@@@",
"@@@STEP_LOG_END@tool_manifest.json@@@"
]
},
{
"cmd": [],
"name": "ensure packages.ensure gsutil.install path/to/gsutil",
"~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/gsutil/version%3Apinned-version"
],
"infra_step": true,
"name": "ensure packages.ensure gsutil.install path/to/gsutil.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/path/to/gsutil/version%3Apinned-version",
"-ensure-file",
"path/to/gsutil version:pinned-version",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure packages.ensure gsutil.install path/to/gsutil.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/gsutil\"@@@",
"@@@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": [
"vpython",
"-vpython-spec",
"RECIPE_MODULE[fuchsia::gsutil]/resources/gsutil.vpython",
"[START_DIR]/cipd_tool/path/to/gsutil/version%3Apinned-version/gsutil",
"-o",
"GSUtil:software_update_check_period=0",
"cp",
"gs://fuchsia/development/0.20200101.0.1/packages/qemu-x64.tar.gz",
"[CACHE]/builder/0.20200101.0.1/fuchsia_packages/linux_intel_64"
],
"infra_step": true,
"name": "ensure packages.gsutil cp",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "ensure packages.ensure bsdtar",
"~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::tar]/resources/tool_manifest.json",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure packages.ensure bsdtar.read manifest",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@{@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"path\": \"path/to/bsdtar\",@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@ \"version\": \"version:pinned-version\"@@@",
"@@@STEP_LOG_LINE@tool_manifest.json@}@@@",
"@@@STEP_LOG_END@tool_manifest.json@@@"
]
},
{
"cmd": [],
"name": "ensure packages.ensure bsdtar.install path/to/bsdtar",
"~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/bsdtar/version%3Apinned-version"
],
"infra_step": true,
"name": "ensure packages.ensure bsdtar.install path/to/bsdtar.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@3@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/path/to/bsdtar/version%3Apinned-version",
"-ensure-file",
"path/to/bsdtar version:pinned-version",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure packages.ensure bsdtar.install path/to/bsdtar.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/bsdtar\"@@@",
"@@@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/bsdtar/version%3Apinned-version/bsdtar",
"--extract",
"--verbose",
"-f",
"[CACHE]/builder/0.20200101.0.1/fuchsia_packages/linux_intel_64/qemu-x64.tar.gz",
"-C",
"[CACHE]/builder/0.20200101.0.1/fuchsia_packages/linux_intel_64"
],
"infra_step": true,
"name": "ensure packages.extract package tar.gz",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "ensure image (2)"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image (2).init fuchsia_image cache",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image (2).check image cache content",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [
"vpython",
"-vpython-spec",
"RECIPE_MODULE[fuchsia::gsutil]/resources/gsutil.vpython",
"[START_DIR]/cipd_tool/path/to/gsutil/version%3Apinned-version/gsutil",
"-o",
"GSUtil:software_update_check_period=0",
"cp",
"gs://fuchsia/development/0.20200101.0.1/images/qemu-x64.tgz",
"[CLEANUP]/fuchsia_image_tmp_tmp_1"
],
"infra_step": true,
"name": "ensure image (2).gsutil cp",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/bsdtar/version%3Apinned-version/bsdtar",
"--extract",
"--verbose",
"-f",
"[CLEANUP]/fuchsia_image_tmp_tmp_1/qemu-x64.tgz",
"-C",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image (2).extract image tgz",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image (2).set image files",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/buildargs.gn@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/qemu-kernel.kernel@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/storage-full.blk@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/storage-sparse.blk@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/zircon-a.zbi@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/zircon-r.zbi@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [],
"name": "ensure sdk"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/builder/0.20200101.0.1/fuchsia_sdk/linux_intel_64"
],
"infra_step": true,
"name": "ensure sdk.init fuchsia_sdk cache",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CACHE]/builder/0.20200101.0.1/fuchsia_sdk/linux_intel_64"
],
"infra_step": true,
"name": "ensure sdk.check sdk cache content",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [
"vpython",
"-vpython-spec",
"RECIPE_MODULE[fuchsia::gsutil]/resources/gsutil.vpython",
"[START_DIR]/cipd_tool/path/to/gsutil/version%3Apinned-version/gsutil",
"-o",
"GSUtil:software_update_check_period=0",
"cp",
"gs://fuchsia/development/0.20200101.0.1/sdk/linux-amd64/gn.tar.gz",
"[CLEANUP]/fuchsia_sdk_tmp_tmp_1"
],
"infra_step": true,
"name": "ensure sdk.gsutil cp",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/bsdtar/version%3Apinned-version/bsdtar",
"--extract",
"--verbose",
"-f",
"[CLEANUP]/fuchsia_sdk_tmp_tmp_1/gn.tar.gz",
"-C",
"[CACHE]/builder/0.20200101.0.1/fuchsia_sdk/linux_intel_64"
],
"infra_step": true,
"name": "ensure sdk.extract sdk gz",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[CACHE]/builder/0.20200101.0.1/fuchsia_sdk/linux_intel_64/tools/x64/zbi",
"--output",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/zircon-a.zbi",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/zircon-a.zbi",
"--entry",
"data/ssh/authorized_keys=[CACHE]"
],
"name": "authorize zbi"
},
{
"cmd": [],
"name": "ensure image (3)"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image (3).init fuchsia_image cache",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image (3).check image cache content",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [
"vpython",
"-vpython-spec",
"RECIPE_MODULE[fuchsia::gsutil]/resources/gsutil.vpython",
"[START_DIR]/cipd_tool/path/to/gsutil/version%3Apinned-version/gsutil",
"-o",
"GSUtil:software_update_check_period=0",
"cp",
"gs://fuchsia/development/0.20200101.0.1/images/qemu-x64.tgz",
"[CLEANUP]/fuchsia_image_tmp_tmp_2"
],
"infra_step": true,
"name": "ensure image (3).gsutil cp",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/path/to/bsdtar/version%3Apinned-version/bsdtar",
"--extract",
"--verbose",
"-f",
"[CLEANUP]/fuchsia_image_tmp_tmp_2/qemu-x64.tgz",
"-C",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image (3).extract image tgz",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"listdir",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64"
],
"infra_step": true,
"name": "ensure image (3).set image files",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/buildargs.gn@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/qemu-kernel.kernel@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/storage-full.blk@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/storage-sparse.blk@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/zircon-a.zbi@@@",
"@@@STEP_LOG_LINE@listdir@[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/zircon-r.zbi@@@",
"@@@STEP_LOG_END@listdir@@@"
]
},
{
"cmd": [
"[CACHE]",
"--output",
"[CACHE]",
"[CACHE]/builder/0.20200101.0.1/fuchsia_image/linux_intel_64/zircon-a.zbi",
"--entry",
"data/ssh/authorized_keys=[CACHE]"
],
"name": "authorize zbi (2)"
},
{
"name": "$result"
}
]