blob: f5f70ce91571e779190b77c1aa1f18d9109c3f78 [file] [log] [blame]
[
{
"cmd": [],
"name": "collect builds",
"~followup_annotations": [
"@@@STEP_LINK@fake_job0 (success)@https://ci.chromium.org/swarming/task/task_id0?server=None@@@",
"@@@STEP_LINK@fake_job1 (success)@https://ci.chromium.org/swarming/task/task_id1?server=None@@@"
]
},
{
"cmd": [],
"name": "collect builds.install infra/tools/luci/swarming",
"~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/infra/tools/luci/swarming/swarming_module_pin"
],
"infra_step": true,
"name": "collect builds.install infra/tools/luci/swarming.ensure package directory",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"cipd",
"ensure",
"-root",
"[START_DIR]/cipd_tool/infra/tools/luci/swarming/swarming_module_pin",
"-ensure-file",
"infra/tools/luci/swarming/${platform} swarming_module_pin",
"-max-threads",
"0",
"-json-output",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "collect builds.install infra/tools/luci/swarming.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-swarming_module_\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/swarming/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/swarming/swarming_module_pin/swarming",
"collect",
"-server",
"https://example.swarmingserver.appspot.com",
"-task-summary-json",
"/path/to/tmp/json",
"-task-output-stdout",
"json",
"-output-dir",
"[CLEANUP]",
"task_id0",
"task_id1"
],
"cost": {
"cpu": 100,
"disk": 0,
"memory": 50,
"net": 0
},
"infra_step": true,
"name": "collect builds.collect",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"task_id0\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"output\": \"hello world!\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"outputs\": [], @@@",
"@@@STEP_LOG_LINE@json.output@ \"results\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"bot_id\": \"vm-123\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"cas_output_root\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"cas_instance\": \"projects/example-project/instances/default_instance\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"digest\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"hash\": \"24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"size_bytes\": \"73\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"duration\": 62.35, @@@",
"@@@STEP_LOG_LINE@json.output@ \"exit_code\": \"0\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"name\": \"my_task_0\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"resultdb_info\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"invocation\": \"invocations/some-inv-name\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"state\": \"COMPLETED\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"task_id\": \"task_id0\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"task_id1\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"output\": \"hello world!\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"outputs\": [], @@@",
"@@@STEP_LOG_LINE@json.output@ \"results\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"bot_id\": \"vm-123\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"cas_output_root\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"cas_instance\": \"projects/example-project/instances/default_instance\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"digest\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"hash\": \"24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"size_bytes\": \"73\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"duration\": 62.35, @@@",
"@@@STEP_LOG_LINE@json.output@ \"exit_code\": \"0\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"name\": \"my_task_1\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"resultdb_info\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"invocation\": \"invocations/some-inv-name\"@@@",
"@@@STEP_LOG_LINE@json.output@ }, @@@",
"@@@STEP_LOG_LINE@json.output@ \"state\": \"COMPLETED\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"task_id\": \"task_id1\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@STEP_LOG_LINE@task stdout+stderr: my_task_0@hello world!@@@",
"@@@STEP_LOG_END@task stdout+stderr: my_task_0@@@",
"@@@STEP_LOG_LINE@task stdout+stderr: my_task_1@hello world!@@@",
"@@@STEP_LOG_END@task stdout+stderr: my_task_1@@@",
"@@@STEP_LINK@task cas outputs: my_task_0@https://cas-viewer.appspot.com/projects/example-project/instances/default_instance/blobs/24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca/73/tree@@@",
"@@@STEP_LINK@task cas outputs: my_task_1@https://cas-viewer.appspot.com/projects/example-project/instances/default_instance/blobs/24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca/73/tree@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/task_id0/build.proto.json",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "collect builds.read build.proto.json",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@build.proto.json@{@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"builder\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"bucket\": \"ci\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"builder\": \"builder\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"project\": \"project\"@@@",
"@@@STEP_LOG_LINE@build.proto.json@ },@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"create_time\": \"2018-05-25T23:50:17Z\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"created_by\": \"user:luci-scheduler@appspot.gserviceaccount.com\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"id\": \"1000\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"infra\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"resultdb\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"invocation\": \"invocations/build:1000\"@@@",
"@@@STEP_LOG_LINE@build.proto.json@ },@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"swarming\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"priority\": 30@@@",
"@@@STEP_LOG_LINE@build.proto.json@ }@@@",
"@@@STEP_LOG_LINE@build.proto.json@ },@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"input\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"gitiles_commit\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"host\": \"chromium.googlesource.com\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"id\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"project\": \"project\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"ref\": \"refs/heads/main\"@@@",
"@@@STEP_LOG_LINE@build.proto.json@ }@@@",
"@@@STEP_LOG_LINE@build.proto.json@ }@@@",
"@@@STEP_LOG_LINE@build.proto.json@}@@@",
"@@@STEP_LOG_END@build.proto.json@@@"
]
},
{
"cmd": [
"vpython3",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CLEANUP]/task_id1/build.proto.json",
"/path/to/tmp/json"
],
"infra_step": true,
"name": "collect builds.read build.proto.json (2)",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@build.proto.json@{@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"builder\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"bucket\": \"ci\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"builder\": \"builder\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"project\": \"project\"@@@",
"@@@STEP_LOG_LINE@build.proto.json@ },@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"create_time\": \"2018-05-25T23:50:17Z\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"created_by\": \"user:luci-scheduler@appspot.gserviceaccount.com\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"id\": \"1001\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"infra\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"resultdb\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"invocation\": \"invocations/build:1001\"@@@",
"@@@STEP_LOG_LINE@build.proto.json@ },@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"swarming\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"priority\": 30@@@",
"@@@STEP_LOG_LINE@build.proto.json@ }@@@",
"@@@STEP_LOG_LINE@build.proto.json@ },@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"input\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"gitiles_commit\": {@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"host\": \"chromium.googlesource.com\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"id\": \"2d72510e447ab60a9728aeea2362d8be2cbd7789\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"project\": \"project\",@@@",
"@@@STEP_LOG_LINE@build.proto.json@ \"ref\": \"refs/heads/main\"@@@",
"@@@STEP_LOG_LINE@build.proto.json@ }@@@",
"@@@STEP_LOG_LINE@build.proto.json@ }@@@",
"@@@STEP_LOG_LINE@build.proto.json@}@@@",
"@@@STEP_LOG_END@build.proto.json@@@"
]
},
{
"name": "$result"
}
]