| [ |
| { |
| "cmd": [], |
| "name": "run external tests", |
| "~followup_annotations": [ |
| "@@@STEP_LINK@tap_tests@http://test/tap-id@@@", |
| "@@@STEP_LINK@guitar_tests_0@http://fusion2/guitar-project-id1@@@", |
| "@@@STEP_LINK@guitar_tests_1@http://fusion2/guitar-project-id2@@@", |
| "@@@STEP_FAILURE@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "run external tests.ensure fuchsia_internal/infra/fxt/${platform}", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "run external tests.ensure fuchsia_internal/infra/fxt/${platform}.get packages", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "vpython3", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "RECIPE_MODULE[fuchsia::fxt]/resources/cipd.ensure", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "run external tests.ensure fuchsia_internal/infra/fxt/${platform}.get packages.read ensure file", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@3@@@", |
| "@@@STEP_LOG_LINE@cipd.ensure@fuchsia_internal/infra/fxt/${platform} version:pinned-version@@@", |
| "@@@STEP_LOG_END@cipd.ensure@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "run external tests.ensure fuchsia_internal/infra/fxt/${platform}.install fuchsia_internal/infra/fxt", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "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/fuchsia_internal/infra/fxt/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07" |
| ], |
| "infra_step": true, |
| "name": "run external tests.ensure fuchsia_internal/infra/fxt/${platform}.install fuchsia_internal/infra/fxt.ensure package directory", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@3@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd_tool/fuchsia_internal/infra/fxt/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07", |
| "-ensure-file", |
| "fuchsia_internal/infra/fxt/${platform} version:pinned-version", |
| "-max-threads", |
| "0", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "run external tests.ensure fuchsia_internal/infra/fxt/${platform}.install fuchsia_internal/infra/fxt.ensure_installed", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@3@@@", |
| "@@@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\": \"fuchsia_internal/infra/fxt/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/fuchsia_internal/infra/fxt/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/fxt", |
| "launch", |
| "-gcs-bucket", |
| "foo-bucket", |
| "-namespace", |
| "123456", |
| "-json-output", |
| "/path/to/tmp/json", |
| "-sdk", |
| "-tap-project", |
| "tap-project1", |
| "-tap-project", |
| "tap-project2", |
| "-guitar-config-json", |
| "{\"projectfoo\": \"bar\"}", |
| "-guitar-test-filter-expr", |
| "deps(//baz)", |
| "-presubmit", |
| "-use-staging-host" |
| ], |
| "name": "run external tests.launch", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"change_num\": 12345,@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"guitar_project_request_ids\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"guitar-project-id1\",@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"guitar-project-id2\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ ],@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"presubmit_token\": \"abcd1234\",@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"tap_request_id\": \"tap-id\",@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"workspace\": \"test-ws\"@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@", |
| "@@@STEP_LINK@changelist@http://cl/12345@@@", |
| "@@@STEP_LINK@tap_tests@http://test/tap-id@@@", |
| "@@@STEP_LINK@guitar_tests_0@http://fusion2/guitar-project-id1@@@", |
| "@@@STEP_LINK@guitar_tests_1@http://fusion2/guitar-project-id2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd_tool/fuchsia_internal/infra/fxt/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/fxt", |
| "monitor", |
| "-timeout", |
| "2400", |
| "-tap-request-id", |
| "tap-id", |
| "-guitar-project-request-id", |
| "guitar-project-id1", |
| "-guitar-project-request-id", |
| "guitar-project-id2", |
| "-presubmit-token", |
| "abcd1234", |
| "-workspace", |
| "test-ws", |
| "-use-staging-host" |
| ], |
| "name": "run external tests.monitor", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_FAILURE@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd_tool/fuchsia_internal/infra/fxt/0e548aa33f8113a45a5b3b62201e114e98e63d00f97296912380138f44597b07/fxt", |
| "cleanup", |
| "-workspace", |
| "test-ws", |
| "-use-staging-host" |
| ], |
| "infra_step": true, |
| "name": "run external tests.cleanup", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "failure": { |
| "failure": {}, |
| "humanReason": "external tests failed\n\nsee [Tap tests UI](http://test/tap-id)\n\nsee [Guitar tests UI](http://fusion2/guitar-project-id1)\n\nsee [Guitar tests UI](http://fusion2/guitar-project-id2)\n\nsee [Fusion UI](http://fusion2/presubmit/12345)\n\nand/or [Critique UI](http://cl/12345/analysis)" |
| }, |
| "name": "$result" |
| } |
| ] |