| [ |
| { |
| "cmd": [], |
| "name": "get roll direction", |
| "~followup_annotations": [ |
| "@@@STEP_SUMMARY_TEXT@backward@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "merge-base", |
| "--is-ancestor", |
| "0000000000000000000000000000000000000000", |
| "1111111111111111111111111111111111111111" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "name": "get roll direction.is forward", |
| "timeout": 600.0, |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "git", |
| "merge-base", |
| "--is-ancestor", |
| "1111111111111111111111111111111111111111", |
| "0000000000000000000000000000000000000000" |
| ], |
| "cwd": "[START_DIR]/checkout", |
| "name": "get roll direction.is backward", |
| "timeout": 600.0, |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "cancelling roll", |
| "~followup_annotations": [ |
| "@@@STEP_SUMMARY_TEXT@not updating from 0000000 to 1111111 because 0000000 is newer than 1111111@@@", |
| "@@@STEP_LINK@0000000000000000000000000000000000000000@remote/+/0000000000000000000000000000000000000000@@@", |
| "@@@STEP_LINK@1111111111111111111111111111111111111111@remote/+/1111111111111111111111111111111111111111@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "ensure infra/tools/luci/gerrit/${platform}" |
| }, |
| { |
| "cmd": [], |
| "name": "ensure infra/tools/luci/gerrit/${platform}.get packages", |
| "~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::gerrit]/resources/cipd.ensure", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "ensure infra/tools/luci/gerrit/${platform}.get packages.read ensure file", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@cipd.ensure@infra/tools/luci/gerrit/${platform} version:pinned-version@@@", |
| "@@@STEP_LOG_END@cipd.ensure@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0o777", |
| "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07" |
| ], |
| "infra_step": true, |
| "name": "ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.ensure package directory", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07", |
| "-ensure-file", |
| "infra/tools/luci/gerrit/${platform} version:pinned-version", |
| "-max-threads", |
| "0", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "ensure infra/tools/luci/gerrit/${platform}.install infra/tools/luci/gerrit.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-version:pinned-v\",@@@", |
| "@@@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_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit", |
| "account-query", |
| "-host", |
| "https://pigweed-review.googlesource.com", |
| "-input", |
| "{\"params\": {\"q\": \"email:email@example.com\"}}", |
| "-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "email@example.com", |
| "timeout": 600, |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@json.output@[@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"_account_id\": 123@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@]@@@", |
| "@@@STEP_LOG_END@json.output@@@", |
| "@@@STEP_LOG_LINE@json.input@{@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"params\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"q\": \"email:email@example.com\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }@@@", |
| "@@@STEP_LOG_LINE@json.input@}@@@", |
| "@@@STEP_LOG_END@json.input@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit", |
| "account-query", |
| "-host", |
| "https://pigweed-review.googlesource.com", |
| "-input", |
| "{\"params\": {\"q\": \"email:nobody@google.com\"}}", |
| "-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "nobody@google.com", |
| "timeout": 600, |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@json.output@[]@@@", |
| "@@@STEP_LOG_END@json.output@@@", |
| "@@@STEP_LOG_LINE@json.input@{@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"params\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"q\": \"email:nobody@google.com\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }@@@", |
| "@@@STEP_LOG_LINE@json.input@}@@@", |
| "@@@STEP_LOG_END@json.input@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "CCing" |
| }, |
| { |
| "cmd": [], |
| "name": "CCing.cc user@example.com", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_SUMMARY_TEXT@CCing@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit", |
| "account-query", |
| "-host", |
| "https://pigweed-review.googlesource.com", |
| "-input", |
| "{\"params\": {\"q\": \"email:user@example.com\"}}", |
| "-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "CCing.cc user@example.com.user@example.com", |
| "timeout": 600, |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@json.output@[@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"_account_id\": 123@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@]@@@", |
| "@@@STEP_LOG_END@json.output@@@", |
| "@@@STEP_LOG_LINE@json.input@{@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"params\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"q\": \"email:user@example.com\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }@@@", |
| "@@@STEP_LOG_LINE@json.input@}@@@", |
| "@@@STEP_LOG_END@json.input@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "not CCing, domain excluded" |
| }, |
| { |
| "cmd": [], |
| "name": "not CCing, domain excluded.cc user@example.com", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_SUMMARY_TEXT@not CCing, domain excluded@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "not CCing, robot account" |
| }, |
| { |
| "cmd": [], |
| "name": "not CCing, robot account.cc robot@gserviceaccount.com", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_SUMMARY_TEXT@not CCing, robot account@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "not CCing, no account in Gerrit" |
| }, |
| { |
| "cmd": [], |
| "name": "not CCing, no account in Gerrit.cc nobody@google.com", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_SUMMARY_TEXT@not CCing, no account in Gerrit@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd_tool/infra/tools/luci/gerrit/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/gerrit", |
| "account-query", |
| "-host", |
| "https://pigweed-review.googlesource.com", |
| "-input", |
| "{\"params\": {\"q\": \"email:nobody@google.com\"}}", |
| "-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "not CCing, no account in Gerrit.cc nobody@google.com.nobody@google.com", |
| "timeout": 600, |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@json.output@[]@@@", |
| "@@@STEP_LOG_END@json.output@@@", |
| "@@@STEP_LOG_LINE@json.input@{@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"params\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"q\": \"email:nobody@google.com\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }@@@", |
| "@@@STEP_LOG_LINE@json.input@}@@@", |
| "@@@STEP_LOG_END@json.input@@@" |
| ] |
| }, |
| { |
| "name": "$result" |
| } |
| ] |