| [ |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE[fuchsia::tree_closer].resources/tree_status.py", |
| "example.com", |
| "get" |
| ], |
| "infra_step": true, |
| "name": "get current tree status", |
| "~followup_annotations": [ |
| "@@@STEP_TEXT@throttled@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"date\": \"2020-06-20 09:59:00.000000\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"general_state\": \"throttled\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"key\": 12345@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@", |
| "@@@STEP_LINK@example.com@https://example.com@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "fetch luci-milo.cfg" |
| }, |
| { |
| "cmd": [ |
| "luci-auth", |
| "token", |
| "-lifetime", |
| "3m" |
| ], |
| "infra_step": true, |
| "name": "fetch luci-milo.cfg.get access token for default account", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::url]/resources/pycurl.py", |
| "--url", |
| "https://luci-config.appspot.com/_ah/api/config/v1/config_sets/projects/fuchsia/config/luci-milo.cfg", |
| "--status-json", |
| "/path/to/tmp/json", |
| "--outfile", |
| "/path/to/tmp/json", |
| "--headers-json", |
| "{\"Authorization\": \"Bearer extra.secret.token.should.not.be.logged\"}" |
| ], |
| "infra_step": true, |
| "name": "fetch luci-milo.cfg.get", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "check console health" |
| }, |
| { |
| "cmd": [ |
| "bb", |
| "ls", |
| "-host", |
| "cr-buildbucket.appspot.com", |
| "-json", |
| "-nopage", |
| "-n", |
| "5", |
| "-fields", |
| "builder,create_time,created_by,critical,end_time,id,input,number,output,start_time,status,steps.*.name,steps.*.status,summary_markdown,update_time", |
| "-predicate", |
| "{\"builder\": {\"bucket\": \"global.ci\", \"builder\": \"core.arm64-asan\", \"project\": \"fuchsia\"}, \"status\": \"ENDED_MASK\"}" |
| ], |
| "infra_step": true, |
| "name": "check console health.core.arm64-asan", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_END@raw_io.output_text@@@" |
| ] |
| }, |
| { |
| "name": "$result" |
| } |
| ] |