blob: c0cf609c4eabd0cd7be0ad4ecc073cd8c2caa9f2 [file] [log] [blame]
[
{
"cmd": [],
"name": "ensure_jiri"
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd/jiri",
"-ensure-file",
"fuchsia/tools/jiri/${platform} stable",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure_jiri.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-stable----------\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/tools/jiri/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": [],
"name": "ensure_packages"
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd",
"-ensure-file",
"fuchsia/tools/gndoc/${platform} latest",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure_packages.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-latest----------\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/tools/gndoc/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": [],
"name": "checkout"
},
{
"cmd": [],
"infra_step": true,
"name": "checkout.ensure_jiri",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd/jiri",
"-ensure-file",
"fuchsia/tools/jiri/${platform} stable",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "checkout.ensure_jiri.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-stable----------\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/tools/jiri/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/jiri/jiri",
"init",
"-vv",
"-time",
"-analytics-opt=false",
"-rewrite-sso-to-https=true",
"-cache",
"[CACHE]/git",
"-shared"
],
"infra_step": true,
"name": "checkout.jiri init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd/jiri/jiri",
"import",
"-vv",
"-time",
"-name",
"garnet",
"-revision",
"HEAD",
"fuchsia",
"https://fuchsia.googlesource.com/garnet"
],
"infra_step": true,
"name": "checkout.jiri import",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd/jiri/jiri",
"override",
"-vv",
"-time",
"-revision",
"2d72510e447ab60a9728aeea2362d8be2cbd7789",
"garnet",
"https://fuchsia.googlesource.com/garnet"
],
"infra_step": true,
"name": "checkout.jiri override",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd/jiri/jiri",
"update",
"-vv",
"-time",
"-autoupdate=false",
"-attempts=3",
"-run-hooks=false"
],
"infra_step": true,
"name": "checkout.jiri update",
"timeout": 2400,
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd/jiri/jiri",
"run-hooks",
"-vv",
"-time",
"-attempts=3"
],
"infra_step": true,
"name": "checkout.jiri run-hooks",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd/jiri/jiri",
"source-manifest",
"-vv",
"-time",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "checkout.jiri source-manifest",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output[source manifest]@{@@@",
"@@@STEP_LOG_LINE@json.output[source manifest]@ \"directories\": {@@@",
"@@@STEP_LOG_LINE@json.output[source manifest]@ \"manifest\": {@@@",
"@@@STEP_LOG_LINE@json.output[source manifest]@ \"git_checkout\": {@@@",
"@@@STEP_LOG_LINE@json.output[source manifest]@ \"repo_url\": \"https://fuchsia.googlesource.com/manifest\", @@@",
"@@@STEP_LOG_LINE@json.output[source manifest]@ \"revision\": \"4c2b0da3c06341db5cebe4d02c78c93c3b2bd78b\"@@@",
"@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
"@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
"@@@STEP_LOG_LINE@json.output[source manifest]@ }@@@",
"@@@STEP_LOG_LINE@json.output[source manifest]@}@@@",
"@@@STEP_LOG_END@json.output[source manifest]@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd/jiri/jiri",
"snapshot",
"-vv",
"-time",
"[CLEANUP]/jiri.snapshot"
],
"infra_step": true,
"name": "checkout.jiri snapshot",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"python",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/jiri.snapshot",
"/path/to/tmp/"
],
"infra_step": true,
"name": "checkout.read snapshot",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@snapshot_contents@@@@",
"@@@STEP_LOG_END@snapshot_contents@@@"
]
},
{
"cmd": [],
"name": "gndoc"
},
{
"cmd": [
"[START_DIR]/cipd/jiri/jiri",
"project",
"-vv",
"-time",
"-json-output",
"[CLEANUP]/projects.json"
],
"name": "gndoc.jiri project",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@[@@@",
"@@@STEP_LOG_LINE@json.output@ {@@@",
"@@@STEP_LOG_LINE@json.output@ \"name\": \"build\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"path\": \"/path/to/build\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"relativePath\": \"build\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"remote\": \"https://fuchsia.googlesource.com/build\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@]@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"[START_DIR]/buildtools/gn",
"gen",
"[START_DIR]/root_build_dir",
"--args=target_cpu=\"arm64\" fuchsia_packages=[\"garnet/packages/default\"]"
],
"name": "gndoc.gn gen (arm64)",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/buildtools/gn",
"args",
"[START_DIR]/root_build_dir",
"--list",
"--json"
],
"name": "gndoc.gn args --list (arm64)",
"stdout": "[CLEANUP]/arm64.json",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/buildtools/gn",
"gen",
"[START_DIR]/root_build_dir",
"--args=target_cpu=\"x64\" fuchsia_packages=[\"garnet/packages/default\"]"
],
"name": "gndoc.gn gen (x64)",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/buildtools/gn",
"args",
"[START_DIR]/root_build_dir",
"--list",
"--json"
],
"name": "gndoc.gn args --list (x64)",
"stdout": "[CLEANUP]/x64.json",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd/gndoc",
"-key",
"target_cpu",
"-out",
"[START_DIR]/garnet/docs/gen/build_arguments.md",
"-s",
"[CLEANUP]/projects.json",
"-in",
"[CLEANUP]/arm64.json",
"-in",
"[CLEANUP]/x64.json"
],
"name": "gndoc.gndoc",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "ensure_gerrit"
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd/gerrit",
"-ensure-file",
"infra/tools/luci/gerrit/${platform} latest",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "ensure_gerrit.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-latest----------\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/gerrit/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": [
"git",
"ls-files",
"--modified",
"--deleted",
"--exclude-standard"
],
"cwd": "[START_DIR]/garnet",
"name": "check for no-op commit",
"stdout": "/path/to/tmp/",
"~followup_annotations": [
"@@@STEP_LOG_LINE@stdout@hello@@@",
"@@@STEP_LOG_END@stdout@@@"
]
},
{
"cmd": [
"git",
"diff"
],
"cwd": "[START_DIR]/garnet",
"name": "git diff",
"stdout": "/path/to/tmp/"
},
{
"cmd": [
"git",
"hash-object",
"a diff"
],
"cwd": "[START_DIR]/garnet",
"name": "git hash-object",
"stdout": "/path/to/tmp/"
},
{
"cmd": [
"git",
"commit",
"-m",
"[gndoc] Update GN build arguments documentation\n\nTest: CQ\n\nChange-Id: Iabc123\n",
"-a"
],
"cwd": "[START_DIR]/garnet",
"name": "git commit"
},
{
"cmd": [
"git",
"push",
"origin",
"HEAD:refs/for/master"
],
"cwd": "[START_DIR]/garnet",
"name": "git push",
"~followup_annotations": [
"@@@STEP_LINK@gerrit link@https://fuchsia-review.googlesource.com/q/Iabc123@@@"
]
},
{
"cmd": [
"[START_DIR]/cipd/gerrit/gerrit",
"set-review",
"-host",
"https://fuchsia-review.googlesource.com",
"-input",
"{\"change_id\": \"garnet~master~Iabc123\", \"input\": {\"labels\": {\"Code-Review\": 2, \"Commit-Queue\": 2}}, \"revision_id\": \"current\"}",
"-output",
"/path/to/tmp/json"
],
"name": "submit to commit queue",
"~followup_annotations": [
"@@@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": [
"[START_DIR]/cipd/gerrit/gerrit",
"change-detail",
"-host",
"https://fuchsia-review.googlesource.com",
"-input",
"{\"change_id\": \"garnet~master~Iabc123\"}",
"-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "check if done (0)",
"~followup_annotations": [
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"labels\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"Commit-Queue\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"approved\": {}@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"status\": \"MERGED\"@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"jsonResult": null,
"name": "$result"
}
]