blob: 89067d8155ae33aa1b4549e0af7e22d529e5bf19 [file] [log] [blame]
[
{
"cmd": [
"touch",
"[CLEANUP]/cas-example_tmp_1/a"
],
"name": "touch a"
},
{
"cmd": [
"touch",
"[CLEANUP]/cas-example_tmp_1/b"
],
"name": "touch b"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CLEANUP]/cas-example_tmp_1/sub/dir"
],
"infra_step": true,
"name": "mkdirs"
},
{
"cmd": [
"touch",
"[CLEANUP]/cas-example_tmp_1/sub/dir/d"
],
"name": "touch d"
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"RECIPE_MODULE[recipe_engine::cas]/resources/infra.sha1",
"/path/to/tmp/"
],
"infra_step": true,
"name": "read infra revision",
"~followup_annotations": [
"@@@STEP_LOG_LINE@infra.sha1@git_revision:mock_infra_git_revision@@@",
"@@@STEP_LOG_END@infra.sha1@@@"
]
},
{
"cmd": [],
"name": "install infra/tools/luci/cas"
},
{
"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/infra/tools/luci/cas/git_revision%3Amock_infra_git_revision"
],
"infra_step": true,
"name": "install infra/tools/luci/cas.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/infra/tools/luci/cas/git_revision%3Amock_infra_git_revision",
"-ensure-file",
"infra/tools/luci/cas/${platform} git_revision:mock_infra_git_revision",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "install infra/tools/luci/cas.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-git_revision:moc\",@@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/cas/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": [
"[START_DIR]/cipd_tool/infra/tools/luci/cas/git_revision%3Amock_infra_git_revision/cas",
"archive",
"-cas-instance",
"projects/example-cas-server/instances/default_instance",
"-dump-digest",
"/path/to/tmp/",
"-paths-json",
"[[\"[CLEANUP]/cas-example_tmp_1\", \"a\"], [\"[CLEANUP]/cas-example_tmp_1\", \"b\"], [\"[CLEANUP]/cas-example_tmp_1\", \"sub\"]]"
],
"infra_step": true,
"name": "archive",
"~followup_annotations": [
"@@@STEP_LINK@CAS UI@https://cas-viewer.appspot.com/projects/example-cas-server/instances/default_instance/blobs/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/0/tree@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/infra/tools/luci/cas/git_revision%3Amock_infra_git_revision/cas",
"archive",
"-cas-instance",
"projects/other-cas-server/instances/instance",
"-dump-digest",
"/path/to/tmp/",
"-paths-json",
"[[\"[CLEANUP]/cas-example_tmp_1\", \".\"]]",
"-log-level",
"debug"
],
"infra_step": true,
"name": "archive directory",
"timeout": 60,
"~followup_annotations": [
"@@@STEP_LINK@CAS UI@https://cas-viewer.appspot.com/projects/other-cas-server/instances/instance/blobs/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/0/tree@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd_tool/infra/tools/luci/cas/git_revision%3Amock_infra_git_revision/cas",
"download",
"-cas-instance",
"projects/example-cas-server/instances/default_instance",
"-digest",
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855/0",
"-dir",
"[CLEANUP]/cas-output_tmp_1"
],
"infra_step": true,
"name": "download"
},
{
"name": "$result"
}
]