| [ |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[START_DIR]/garnet" |
| ], |
| "infra_step": true, |
| "name": "makedirs" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "init" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "git init" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "remote", |
| "add", |
| "origin", |
| "https://fuchsia.googlesource.com/garnet" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "git remote" |
| }, |
| { |
| "cmd": [], |
| "name": "cache" |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[CACHE]/git/fuchsia.googlesource.com-garnet" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "infra_step": true, |
| "name": "cache.makedirs", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "init", |
| "--bare" |
| ], |
| "cwd": "[CACHE]/git/fuchsia.googlesource.com-garnet", |
| "name": "cache.git init", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "remote.origin.url", |
| "https://fuchsia.googlesource.com/garnet" |
| ], |
| "cwd": "[CACHE]/git/fuchsia.googlesource.com-garnet", |
| "name": "cache.remote set-url", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "config", |
| "--replace-all", |
| "remote.origin.fetch", |
| "+refs/heads/*:refs/heads/*", |
| "\\+refs/heads/\\*:.*" |
| ], |
| "cwd": "[CACHE]/git/fuchsia.googlesource.com-garnet", |
| "name": "cache.git config", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "--prune", |
| "--tags", |
| "origin" |
| ], |
| "cwd": "[CACHE]/git/fuchsia.googlesource.com-garnet", |
| "name": "cache.git fetch", |
| "~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", |
| "[START_DIR]/garnet/.git/objects/info" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "infra_step": true, |
| "name": "cache.makedirs object/info", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[CACHE]/git/fuchsia.googlesource.com-garnet/objects\n", |
| "[START_DIR]/garnet/.git/objects/info/alternates" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "infra_step": true, |
| "name": "cache.alternates", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@alternates@[CACHE]/git/fuchsia.googlesource.com-garnet/objects@@@", |
| "@@@STEP_LOG_END@alternates@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "fetch", |
| "--tags", |
| "origin", |
| "master" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "git fetch" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "checkout", |
| "-f", |
| "FETCH_HEAD" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "git checkout" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "rev-parse", |
| "HEAD" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "git rev-parse" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "clean", |
| "-f", |
| "-d", |
| "-x" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "git clean" |
| }, |
| { |
| "cmd": [], |
| "name": "submodule" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "sync" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "submodule.git submodule sync", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "submodule", |
| "update", |
| "--init" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "submodule.git submodule update", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "ls-files", |
| "--modified", |
| "--deleted", |
| "--exclude-standard" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "check for no-op commit", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@stdout@hello@@@", |
| "@@@STEP_LOG_END@stdout@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "diff" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "git diff" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "hash-object", |
| "a diff" |
| ], |
| "cwd": "[START_DIR]/garnet", |
| "name": "git hash-object" |
| }, |
| { |
| "cmd": [ |
| "git", |
| "commit", |
| "-m", |
| "hello world!\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": [], |
| "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": [ |
| "[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": [], |
| "name": "check for completion" |
| }, |
| { |
| "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 for completion.check if done (0)", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@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@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "read_manifest_project_name" |
| }, |
| { |
| "cmd": [], |
| "name": "read_manifest_project_name.ensure jiri", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd/jiri", |
| "-ensure-file", |
| "fuchsia/tools/jiri/${platform} git_revision:60436c301224231cb99be41ce937dfc223bee272", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "read_manifest_project_name.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-git_revision:604\", @@@", |
| "@@@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", |
| "manifest", |
| "-vv", |
| "-time", |
| "-j=50", |
| "-element", |
| "project_name", |
| "-template", |
| "\n {\n \"gerrithost\": \"{{.GerritHost}}\",\n \"githooks\": \"{{.GitHooks}}\",\n \"historydepth\": \"{{.HistoryDepth}}\",\n \"name\": \"{{.Name}}\",\n \"path\": \"{{.Path}}\",\n \"remote\": \"{{.Remote}}\",\n \"remotebranch\": \"{{.RemoteBranch}}\",\n \"revision\": \"{{.Revision}}\"\n }\n ", |
| "manifest" |
| ], |
| "name": "read_manifest_project_name.jiri manifest", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"remote\": \"https://fuchsia.googlesource.com/mock/remote\"@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd/jiri/jiri", |
| "edit", |
| "-vv", |
| "-time", |
| "-j=50", |
| "-json-output", |
| "/path/to/tmp/json", |
| "-project", |
| "project_name=revision", |
| "manifest" |
| ], |
| "name": "jiri edit project_name", |
| "~followup_annotations": [ |
| "@@@STEP_TEXT@manifest up-to-date, nothing to roll@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"projects\": []@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd/jiri/jiri", |
| "edit", |
| "-vv", |
| "-time", |
| "-j=50", |
| "-json-output", |
| "/path/to/tmp/json", |
| "-package", |
| "package_name=git_revision:revision", |
| "manifest" |
| ], |
| "name": "jiri edit package_name", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"packages\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"new_version\": \"git_revision:def456\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"old_version\": \"git_revision:abc123\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ ]@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "name": "$result" |
| } |
| ] |