| [ |
| { |
| "cmd": [], |
| "name": "install infra/tools/luci/swarming" |
| }, |
| { |
| "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": "install infra/tools/luci/swarming.ensure package directory", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "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": "install infra/tools/luci/swarming.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-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", |
| "spawn-tasks", |
| "-server", |
| "https://example.swarmingserver.appspot.com", |
| "-json-input", |
| "{\"requests\": [{\"name\": \"flutter_fuchsia_unittests\", \"priority\": \"100\", \"service_account\": \"\", \"task_slices\": [{\"expiration_secs\": \"3600\", \"properties\": {\"cas_input_root\": {\"cas_instance\": \"projects/example-cas-server/instances/default_instance\", \"digest\": {\"hash\": \"cas_hash\", \"size_bytes\": \"0\"}}, \"command\": [\"./run_tests.sh\", \"image_name\", \"packages_name\"], \"containment\": {\"containment_type\": \"AUTO\"}, \"dimensions\": [{\"key\": \"pool\", \"value\": \"luci.flutter.tests\"}], \"env\": [], \"env_prefixes\": [], \"execution_timeout_secs\": \"3600\", \"grace_period_secs\": \"30\", \"idempotent\": true, \"io_timeout_secs\": \"3600\", \"outputs\": [], \"relative_cwd\": \"\"}, \"wait_for_capacity\": false}]}]}", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "Trigger Tests", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"tasks\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"request\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"name\": \"task1\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"task_id\": \"0\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"task_result\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"resultdb_info\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"invocation\": \"invocations/0\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"request\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"name\": \"task2\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"task_id\": \"1\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"task_result\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"resultdb_info\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"invocation\": \"invocations/1\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@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@@@", |
| "@@@STEP_LOG_LINE@json.input@{@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"requests\": [@@@", |
| "@@@STEP_LOG_LINE@json.input@ {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"name\": \"flutter_fuchsia_unittests\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"priority\": \"100\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"service_account\": \"\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"task_slices\": [@@@", |
| "@@@STEP_LOG_LINE@json.input@ {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"expiration_secs\": \"3600\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"properties\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"cas_input_root\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"cas_instance\": \"projects/example-cas-server/instances/default_instance\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"digest\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"hash\": \"cas_hash\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"size_bytes\": \"0\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }@@@", |
| "@@@STEP_LOG_LINE@json.input@ }, @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"command\": [@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"./run_tests.sh\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"image_name\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"packages_name\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ ], @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"containment\": {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"containment_type\": \"AUTO\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }, @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"dimensions\": [@@@", |
| "@@@STEP_LOG_LINE@json.input@ {@@@", |
| "@@@STEP_LOG_LINE@json.input@ \"key\": \"pool\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"value\": \"luci.flutter.tests\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }@@@", |
| "@@@STEP_LOG_LINE@json.input@ ], @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"env\": [], @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"env_prefixes\": [], @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"execution_timeout_secs\": \"3600\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"grace_period_secs\": \"30\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"idempotent\": true, @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"io_timeout_secs\": \"3600\", @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"outputs\": [], @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"relative_cwd\": \"\"@@@", |
| "@@@STEP_LOG_LINE@json.input@ }, @@@", |
| "@@@STEP_LOG_LINE@json.input@ \"wait_for_capacity\": false@@@", |
| "@@@STEP_LOG_LINE@json.input@ }@@@", |
| "@@@STEP_LOG_LINE@json.input@ ]@@@", |
| "@@@STEP_LOG_LINE@json.input@ }@@@", |
| "@@@STEP_LOG_LINE@json.input@ ]@@@", |
| "@@@STEP_LOG_LINE@json.input@}@@@", |
| "@@@STEP_LOG_END@json.input@@@", |
| "@@@STEP_LINK@task UI: task1@https://example.swarmingserver.appspot.com/task?id=0@@@", |
| "@@@STEP_LINK@task UI: task2@https://example.swarmingserver.appspot.com/task?id=1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "ensure-directory", |
| "--mode", |
| "0777", |
| "[CLEANUP]/fuchsia_test_output" |
| ], |
| "infra_step": true, |
| "name": "swarming 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]/fuchsia_test_output", |
| "-timeout", |
| "30m", |
| "0", |
| "1" |
| ], |
| "cost": { |
| "cpu": 100, |
| "disk": 0, |
| "memory": 50, |
| "net": 0 |
| }, |
| "infra_step": true, |
| "name": "collect", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"0\": {@@@", |
| "@@@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\": \"task1\", @@@", |
| "@@@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\": \"0\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"1\": {@@@", |
| "@@@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\": \"1\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"name\": \"task2\", @@@", |
| "@@@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\": \"1\"@@@", |
| "@@@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: task1@hello world!@@@", |
| "@@@STEP_LOG_END@task stdout+stderr: task1@@@", |
| "@@@STEP_LOG_LINE@task stdout+stderr: task2@hello world!@@@", |
| "@@@STEP_LOG_END@task stdout+stderr: task2@@@", |
| "@@@STEP_LINK@task cas outputs: task1@https://cas-viewer.appspot.com/projects/example-project/instances/default_instance/blobs/24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca/73/tree@@@", |
| "@@@STEP_LINK@task cas outputs: task2@https://cas-viewer.appspot.com/projects/example-project/instances/default_instance/blobs/24b2420bc49d8b8fdc1d011a163708927532b37dc9f91d7d8d6877e3a86559ca/73/tree@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "display tasks", |
| "~followup_annotations": [ |
| "@@@STEP_FAILURE@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "display tasks.task1", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LINK@0@https://example.swarmingserver.appspot.com/task?id=0@@@", |
| "@@@STEP_WARNINGS@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "display tasks.task2", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LINK@1@https://example.swarmingserver.appspot.com/task?id=1@@@", |
| "@@@STEP_FAILURE@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "display tasks.build(s) failed", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_TEXT@step failures: task2@@@", |
| "@@@STEP_FAILURE@@@" |
| ] |
| }, |
| { |
| "failure": { |
| "failure": {}, |
| "humanReason": "Step('display tasks.build(s) failed') (retcode: 0)" |
| }, |
| "name": "$result" |
| } |
| ] |