blob: b30d2ec0a5eb6bc602ed20695fa3e5f8a8e1e817 [file] [log] [blame]
[
{
"cmd": [],
"name": "checkout"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/checkout"
],
"infra_step": true,
"name": "checkout.ensure directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "checkout.install fuchsia/infra/repo",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/cipd/fuchsia/infra/repo/git_revision%3Ae58ece5f83ece5ddfd7f3ca5eebc3a887f6bcbdb"
],
"cwd": "[START_DIR]/checkout",
"infra_step": true,
"name": "checkout.install fuchsia/infra/repo.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[CACHE]/cipd/fuchsia/infra/repo/git_revision%3Ae58ece5f83ece5ddfd7f3ca5eebc3a887f6bcbdb",
"-ensure-file",
"fuchsia/infra/repo git_revision:e58ece5f83ece5ddfd7f3ca5eebc3a887f6bcbdb",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/checkout",
"infra_step": true,
"name": "checkout.install fuchsia/infra/repo.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:e58\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/infra/repo\"@@@",
"@@@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]/cipd/fuchsia/infra/repo/git_revision%3Ae58ece5f83ece5ddfd7f3ca5eebc3a887f6bcbdb/repo",
"init",
"--manifest-url",
"https://fuchsia.googlesource.com/foo",
"--manifest-branch",
"2d72510e447ab60a9728aeea2362d8be2cbd7789"
],
"cwd": "[START_DIR]/checkout",
"infra_step": true,
"name": "checkout.repo init https://fuchsia.googlesource.com/foo",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/infra/repo/git_revision%3Ae58ece5f83ece5ddfd7f3ca5eebc3a887f6bcbdb/repo",
"sync"
],
"cwd": "[START_DIR]/checkout",
"infra_step": true,
"name": "checkout.repo sync",
"timeout": 900,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"run-tests.sh",
"--cipd-yaml-manifest",
"[CLEANUP]/cipd_manifest_tmp_1"
],
"cwd": "[START_DIR]/checkout",
"name": "run run-tests.sh"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/cipd_manifest_tmp_1",
"/path/to/tmp/"
],
"cwd": "[START_DIR]/checkout",
"infra_step": true,
"name": "read CIPD yaml manifest",
"~followup_annotations": [
"@@@STEP_LOG_LINE@cipd_manifest_tmp_1@path/to/foo.yaml@@@",
"@@@STEP_LOG_LINE@cipd_manifest_tmp_1@path/to/bar.yaml@@@",
"@@@STEP_LOG_END@cipd_manifest_tmp_1@@@"
]
},
{
"cmd": [],
"name": "repo snapshot"
},
{
"cmd": [
"[CACHE]/cipd/fuchsia/infra/repo/git_revision%3Ae58ece5f83ece5ddfd7f3ca5eebc3a887f6bcbdb/repo",
"list"
],
"cwd": "[START_DIR]/checkout",
"infra_step": true,
"name": "repo snapshot.repo list",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/checkout/project/a",
"name": "repo snapshot.get project/a HEAD",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/checkout/project/b",
"name": "repo snapshot.get project/b HEAD",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"cipd",
"create",
"-pkg-def",
"[START_DIR]/checkout/path/to/foo.yaml",
"-hash-algo",
"sha256",
"-ref",
"latest",
"-tag",
"project_a:foo",
"-tag",
"project_b:foo",
"-json-output",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/checkout",
"name": "create foo.yaml",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"foo.yaml\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@STEP_LINK@40-chars-fake-of-the-package-instance_id@https://chrome-infra-packages.appspot.com/p/foo.yaml/+/40-chars-fake-of-the-package-instance_id@@@"
]
},
{
"cmd": [
"cipd",
"create",
"-pkg-def",
"[START_DIR]/checkout/path/to/bar.yaml",
"-hash-algo",
"sha256",
"-ref",
"latest",
"-tag",
"project_a:foo",
"-tag",
"project_b:foo",
"-json-output",
"/path/to/tmp/json"
],
"cwd": "[START_DIR]/checkout",
"name": "create bar.yaml",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"bar.yaml\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@STEP_LINK@40-chars-fake-of-the-package-instance_id@https://chrome-infra-packages.appspot.com/p/bar.yaml/+/40-chars-fake-of-the-package-instance_id@@@"
]
},
{
"name": "$result"
}
]