| [ |
| { |
| "cmd": [], |
| "name": "ensure gerrit" |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "RECIPE_MODULE[fuchsia::gerrit]/resources/tool_manifest.json", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "ensure gerrit.read manifest", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@tool_manifest.json@{@@@", |
| "@@@STEP_LOG_LINE@tool_manifest.json@ \"path\": \"path/to/gerrit\",@@@", |
| "@@@STEP_LOG_LINE@tool_manifest.json@ \"version\": \"version:pinned-version\"@@@", |
| "@@@STEP_LOG_LINE@tool_manifest.json@}@@@", |
| "@@@STEP_LOG_END@tool_manifest.json@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "ensure gerrit.install path/to/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", |
| "0777", |
| "[START_DIR]/cipd_tool/path/to/gerrit/version%3Apinned-version" |
| ], |
| "infra_step": true, |
| "name": "ensure gerrit.install path/to/gerrit.ensure package directory", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd_tool/path/to/gerrit/version%3Apinned-version", |
| "-ensure-file", |
| "path/to/gerrit version:pinned-version", |
| "-max-threads", |
| "0", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "ensure gerrit.install path/to/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\": \"path/to/gerrit\"@@@", |
| "@@@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/path/to/gerrit/version%3Apinned-version/gerrit", |
| "change-query", |
| "-host", |
| "https://fuchsia-review.googlesource.com", |
| "-input", |
| "{\"params\": {\"o\": [\"MESSAGES\"], \"q\": \"is:open -is:wip (label:Api-Review=need OR label:Api-Review+1) -age:1h directory:sdk\"}}", |
| "-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "get eligible changes", |
| "timeout": 120.0, |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@json.output@[@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"_number\": 1000, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"id\": \"myProject~main~1000\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"messages\": [], @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"project\": \"myProject\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"_number\": 1001, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"id\": \"myProject~main~1001\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"messages\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"message\": \"\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"message\": \"nothing\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"project\": \"myProject\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"_number\": 1002, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"author\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"date\": \"2012-04-24 18:08:08.000000000\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"email\": \"akbiggs@google.com\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"name\": \"Alexander Biggs\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"tz\": 120@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"id\": \"myProject~main~1002\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"messages\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"message\": \"\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"message\": \"nothing\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"project\": \"myProject\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"_number\": 1003, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"id\": \"myProject~main~1003\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"messages\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"message\": \"\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"message\": \"\\nPlease run `fx lsc presubmit` on API+1 changes. See http://go/run-fx-lsc-presubmit.\\n\\nNote that the LSC tryjobs are non-blocking. You will need to check the results manually.\\n\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"tag\": \"autogenerated:suggest-fx-lsc\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"message\": \"nothing\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"project\": \"myProject\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"_number\": 1004, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"id\": \"myProject~main~1004\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"messages\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"message\": \"Different from current FX_LSC_MESSAGE\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"tag\": \"autogenerated:suggest-fx-lsc\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"project\": \"myProject\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\"@@@", |
| "@@@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@ \"o\": [@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"MESSAGES\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ ], @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"q\": \"is:open -is:wip (label:Api-Review=need OR label:Api-Review+1) -age:1h directory:sdk\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }@@@", |
| "@@@STEP_LOG_LINE@json.input@}@@@", |
| "@@@STEP_LOG_END@json.input@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd_tool/path/to/gerrit/version%3Apinned-version/gerrit", |
| "set-review", |
| "-host", |
| "https://fuchsia-review.googlesource.com", |
| "-input", |
| "{\"change_id\": \"myProject~main~1000\", \"input\": {\"message\": \"\\nPlease run `fx lsc presubmit` on API+1 changes. See http://go/run-fx-lsc-presubmit.\\n\\nNote that the LSC tryjobs are non-blocking. You will need to check the results manually.\\n\", \"notify\": \"OWNER\", \"tag\": \"autogenerated:suggest-fx-lsc\"}, \"revision_id\": \"current\"}", |
| "-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "add fx lsc message to 1000", |
| "timeout": 600, |
| "~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)@@@", |
| "@@@STEP_LOG_LINE@json.input@{@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"change_id\": \"myProject~main~1000\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"input\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"message\": \"\\nPlease run `fx lsc presubmit` on API+1 changes. See http://go/run-fx-lsc-presubmit.\\n\\nNote that the LSC tryjobs are non-blocking. You will need to check the results manually.\\n\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"notify\": \"OWNER\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"tag\": \"autogenerated:suggest-fx-lsc\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }, @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"revision_id\": \"current\"@@@", |
| "@@@STEP_LOG_LINE@json.input@}@@@", |
| "@@@STEP_LOG_END@json.input@@@", |
| "@@@STEP_LINK@gerrit link@https://fuchsia-review.googlesource.com/q/myProject~main~1000@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd_tool/path/to/gerrit/version%3Apinned-version/gerrit", |
| "set-review", |
| "-host", |
| "https://fuchsia-review.googlesource.com", |
| "-input", |
| "{\"change_id\": \"myProject~main~1001\", \"input\": {\"message\": \"\\nPlease run `fx lsc presubmit` on API+1 changes. See http://go/run-fx-lsc-presubmit.\\n\\nNote that the LSC tryjobs are non-blocking. You will need to check the results manually.\\n\", \"notify\": \"OWNER\", \"tag\": \"autogenerated:suggest-fx-lsc\"}, \"revision_id\": \"current\"}", |
| "-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "add fx lsc message to 1001", |
| "timeout": 600, |
| "~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)@@@", |
| "@@@STEP_LOG_LINE@json.input@{@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"change_id\": \"myProject~main~1001\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"input\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"message\": \"\\nPlease run `fx lsc presubmit` on API+1 changes. See http://go/run-fx-lsc-presubmit.\\n\\nNote that the LSC tryjobs are non-blocking. You will need to check the results manually.\\n\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"notify\": \"OWNER\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"tag\": \"autogenerated:suggest-fx-lsc\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }, @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"revision_id\": \"current\"@@@", |
| "@@@STEP_LOG_LINE@json.input@}@@@", |
| "@@@STEP_LOG_END@json.input@@@", |
| "@@@STEP_LINK@gerrit link@https://fuchsia-review.googlesource.com/q/myProject~main~1001@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd_tool/path/to/gerrit/version%3Apinned-version/gerrit", |
| "set-review", |
| "-host", |
| "https://fuchsia-review.googlesource.com", |
| "-input", |
| "{\"change_id\": \"myProject~main~1002\", \"input\": {\"comments\": {\"/PATCHSET_LEVEL\": [{\"message\": \"\\n`fx lsc presubmit` must be run on API+1 changes. Please run `fx lsc presubmit` and then resolve this comment. See http://go/run-fx-lsc-presubmit.\\n\\nNote that the LSC tryjobs are non-blocking. You will need to check the results manually.\\n\", \"unresolved\": true}]}, \"message\": \"\\nPlease run `fx lsc presubmit` on API+1 changes. See http://go/run-fx-lsc-presubmit.\\n\\nNote that the LSC tryjobs are non-blocking. You will need to check the results manually.\\n\", \"notify\": \"OWNER\", \"tag\": \"autogenerated:suggest-fx-lsc\"}, \"revision_id\": \"current\"}", |
| "-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "add fx lsc message V2 to 1002", |
| "timeout": 600, |
| "~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)@@@", |
| "@@@STEP_LOG_LINE@json.input@{@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"change_id\": \"myProject~main~1002\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"input\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"comments\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"/PATCHSET_LEVEL\": [@@@", |
| "@@@STEP_LOG_LINE@json.input@ {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"message\": \"\\n`fx lsc presubmit` must be run on API+1 changes. Please run `fx lsc presubmit` and then resolve this comment. See http://go/run-fx-lsc-presubmit.\\n\\nNote that the LSC tryjobs are non-blocking. You will need to check the results manually.\\n\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"unresolved\": true@@@", |
| "@@@STEP_LOG_LINE@json.input@ }@@@", |
| "@@@STEP_LOG_LINE@json.input@ ]@@@", |
| "@@@STEP_LOG_LINE@json.input@ }, @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"message\": \"\\nPlease run `fx lsc presubmit` on API+1 changes. See http://go/run-fx-lsc-presubmit.\\n\\nNote that the LSC tryjobs are non-blocking. You will need to check the results manually.\\n\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"notify\": \"OWNER\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"tag\": \"autogenerated:suggest-fx-lsc\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }, @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"revision_id\": \"current\"@@@", |
| "@@@STEP_LOG_LINE@json.input@}@@@", |
| "@@@STEP_LOG_END@json.input@@@", |
| "@@@STEP_LINK@gerrit link@https://fuchsia-review.googlesource.com/q/myProject~main~1002@@@" |
| ] |
| }, |
| { |
| "name": "$result" |
| } |
| ] |