| [ |
| { |
| "cmd": [], |
| "name": "download build artifacts" |
| }, |
| { |
| "cmd": [], |
| "name": "download build artifacts.ensure isolated", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[CACHE]/isolated_client", |
| "-ensure-file", |
| "infra/tools/luci/isolated/${platform} git_revision:81f8525a0214a266d8ad33d072a7b23c89d51752", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "download build artifacts.ensure isolated.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-git_revision:81f\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/luci/isolated/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": [ |
| "[CACHE]/isolated_client/isolated", |
| "download", |
| "-verbose", |
| "-isolate-server", |
| "https://example.isolateserver.appspot.com", |
| "-isolated", |
| "abc", |
| "-output-dir", |
| "[CLEANUP]/build-artifacts_tmp_1" |
| ], |
| "infra_step": true, |
| "name": "download build artifacts.download build_artifacts", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| "[CLEANUP]/build-artifacts_tmp_1/args.json", |
| "/path/to/tmp/json" |
| ], |
| "name": "download build artifacts.read args.json", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"build_type\": \"release\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"target\": \"arm64\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"variants\": []@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| "[CLEANUP]/build-artifacts_tmp_1/images.json", |
| "/path/to/tmp/json" |
| ], |
| "name": "download build artifacts.read images.json", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@json.output@{@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"netboot\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"bootserver_netboot\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"--boot\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"name\": \"netboot\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"path\": \"netboot.zbi\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"type\": \"zbi\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"zircon-a\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"bootserver_pave\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"--boot\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"--zircona\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"name\": \"zircon-a\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"path\": \"fuchsia.zbi\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"type\": \"zbi\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "\nimport shutil\nimport sys\nshutil.copy(sys.argv[1], sys.argv[2])\n", |
| "[CLEANUP]/build-artifacts_tmp_1/shards.json", |
| "/path/to/tmp/json" |
| ], |
| "name": "download build artifacts.load test shards", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@json.output@[@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"environment\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"dimensions\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"device_type\": \"QEMU\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"name\": \"Vim2\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"tests\": [@@@", |
| "@@@STEP_LOG_LINE@json.output@ {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"name\": \"test\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"os\": \"linux\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"path\": \"/path/to/test\"@@@", |
| "@@@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": [], |
| "name": "isolate build artifacts" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "{\n \"variants\": [], \n \"target\": \"arm64\", \n \"build_type\": \"release\"\n}", |
| "[START_DIR]/args.json" |
| ], |
| "infra_step": true, |
| "name": "isolate build artifacts.write args.json", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@args.json@{@@@", |
| "@@@STEP_LOG_LINE@args.json@ \"variants\": [], @@@", |
| "@@@STEP_LOG_LINE@args.json@ \"target\": \"arm64\", @@@", |
| "@@@STEP_LOG_LINE@args.json@ \"build_type\": \"release\"@@@", |
| "@@@STEP_LOG_LINE@args.json@}@@@", |
| "@@@STEP_LOG_END@args.json@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "{\n \"netboot\": {\n \"path\": \"netboot.zbi\", \n \"bootserver_netboot\": [\n \"--boot\"\n ], \n \"type\": \"zbi\", \n \"name\": \"netboot\"\n }, \n \"zircon-a\": {\n \"path\": \"fuchsia.zbi\", \n \"type\": \"zbi\", \n \"name\": \"zircon-a\", \n \"bootserver_pave\": [\n \"--boot\", \n \"--zircona\"\n ]\n }\n}", |
| "[START_DIR]/images.json" |
| ], |
| "infra_step": true, |
| "name": "isolate build artifacts.write images.json", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@images.json@{@@@", |
| "@@@STEP_LOG_LINE@images.json@ \"netboot\": {@@@", |
| "@@@STEP_LOG_LINE@images.json@ \"path\": \"netboot.zbi\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"bootserver_netboot\": [@@@", |
| "@@@STEP_LOG_LINE@images.json@ \"--boot\"@@@", |
| "@@@STEP_LOG_LINE@images.json@ ], @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"type\": \"zbi\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"name\": \"netboot\"@@@", |
| "@@@STEP_LOG_LINE@images.json@ }, @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"zircon-a\": {@@@", |
| "@@@STEP_LOG_LINE@images.json@ \"path\": \"fuchsia.zbi\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"type\": \"zbi\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"name\": \"zircon-a\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"bootserver_pave\": [@@@", |
| "@@@STEP_LOG_LINE@images.json@ \"--boot\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"--zircona\"@@@", |
| "@@@STEP_LOG_LINE@images.json@ ]@@@", |
| "@@@STEP_LOG_LINE@images.json@ }@@@", |
| "@@@STEP_LOG_LINE@images.json@}@@@", |
| "@@@STEP_LOG_END@images.json@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[\n {\n \"environment\": {\n \"dimensions\": {\n \"device_type\": \"QEMU\"\n }\n }, \n \"tests\": [\n {\n \"path\": \"/path/to/test\", \n \"os\": \"linux\", \n \"name\": \"test\"\n }\n ], \n \"name\": \"Vim2\"\n }\n]", |
| "[START_DIR]/shards.json" |
| ], |
| "infra_step": true, |
| "name": "isolate build artifacts.write shards.json", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@shards.json@[@@@", |
| "@@@STEP_LOG_LINE@shards.json@ {@@@", |
| "@@@STEP_LOG_LINE@shards.json@ \"environment\": {@@@", |
| "@@@STEP_LOG_LINE@shards.json@ \"dimensions\": {@@@", |
| "@@@STEP_LOG_LINE@shards.json@ \"device_type\": \"QEMU\"@@@", |
| "@@@STEP_LOG_LINE@shards.json@ }@@@", |
| "@@@STEP_LOG_LINE@shards.json@ }, @@@", |
| "@@@STEP_LOG_LINE@shards.json@ \"tests\": [@@@", |
| "@@@STEP_LOG_LINE@shards.json@ {@@@", |
| "@@@STEP_LOG_LINE@shards.json@ \"path\": \"/path/to/test\", @@@", |
| "@@@STEP_LOG_LINE@shards.json@ \"os\": \"linux\", @@@", |
| "@@@STEP_LOG_LINE@shards.json@ \"name\": \"test\"@@@", |
| "@@@STEP_LOG_LINE@shards.json@ }@@@", |
| "@@@STEP_LOG_LINE@shards.json@ ], @@@", |
| "@@@STEP_LOG_LINE@shards.json@ \"name\": \"Vim2\"@@@", |
| "@@@STEP_LOG_LINE@shards.json@ }@@@", |
| "@@@STEP_LOG_LINE@shards.json@]@@@", |
| "@@@STEP_LOG_END@shards.json@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/symlink.py", |
| "--link-json", |
| "{\"/path/to/test\": [\"/path/to/test\"], \"[CLEANUP]/build-artifacts_tmp_1/amber-files\": [\"[CLEANUP]/build_artifacts_tmp_2/amber-files\"], \"[CLEANUP]/build-artifacts_tmp_1/authorized_key\": [\"[CLEANUP]/build_artifacts_tmp_2/authorized_key\"], \"[CLEANUP]/build-artifacts_tmp_1/fuchsia.zbi\": [\"[CLEANUP]/build_artifacts_tmp_2/fuchsia.zbi\"], \"[CLEANUP]/build-artifacts_tmp_1/ids.txt\": [\"[CLEANUP]/build_artifacts_tmp_2/ids.txt\"], \"[CLEANUP]/build-artifacts_tmp_1/llvm_cov\": [\"[CLEANUP]/build_artifacts_tmp_2/llvm_cov\"], \"[CLEANUP]/build-artifacts_tmp_1/llvm_profdata\": [\"[CLEANUP]/build_artifacts_tmp_2/llvm_profdata\"], \"[CLEANUP]/build-artifacts_tmp_1/llvm_symbolizer\": [\"[CLEANUP]/build_artifacts_tmp_2/llvm_symbolizer\"], \"[CLEANUP]/build-artifacts_tmp_1/minfs\": [\"[CLEANUP]/build_artifacts_tmp_2/minfs\"], \"[CLEANUP]/build-artifacts_tmp_1/netboot.zbi\": [\"[CLEANUP]/build_artifacts_tmp_2/netboot.zbi\"], \"[CLEANUP]/build-artifacts_tmp_1/private_key\": [\"[CLEANUP]/build_artifacts_tmp_2/private_key\"], \"[CLEANUP]/build-artifacts_tmp_1/symbolize_tool\": [\"[CLEANUP]/build_artifacts_tmp_2/symbolize_tool\"], \"[CLEANUP]/build-artifacts_tmp_1/zbi\": [\"[CLEANUP]/build_artifacts_tmp_2/zbi\"], \"[START_DIR]/args.json\": [\"[CLEANUP]/build_artifacts_tmp_2/args.json\"], \"[START_DIR]/images.json\": [\"[CLEANUP]/build_artifacts_tmp_2/images.json\"], \"[START_DIR]/shards.json\": [\"[CLEANUP]/build_artifacts_tmp_2/shards.json\"]}" |
| ], |
| "infra_step": true, |
| "name": "isolate build artifacts.create_links", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[CACHE]/isolated_client/isolated", |
| "archive", |
| "-verbose", |
| "-isolate-server", |
| "https://example.isolateserver.appspot.com", |
| "-namespace", |
| "default-gzip", |
| "-dump-hash", |
| "/path/to/tmp/", |
| "-dirs", |
| "[CLEANUP]/build_artifacts_tmp_2:." |
| ], |
| "infra_step": true, |
| "name": "isolate build artifacts.isolate", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LINK@isolated UI@https://example.isolateserver.appspot.com/browse?namespace=default-gzip&hash=%5Bdummy+hash%5D@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "shard Vim2" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "/path/to/test\n", |
| "[CLEANUP]/tests-Vim2" |
| ], |
| "infra_step": true, |
| "name": "shard Vim2.write test list", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@tests-Vim2@/path/to/test@@@", |
| "@@@STEP_LOG_END@tests-Vim2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "mkdir /tmp/infra-test-output\nwaitfor class=block topo=/dev/sys/pci/00:06.0/virtio-block/block timeout=60000\nmount /dev/sys/pci/00:06.0/virtio-block/block /tmp/infra-test-output\nruntests -o /tmp/infra-test-output -f /boot/infra/shard.run\numount /tmp/infra-test-output\ndm poweroff", |
| "[CLEANUP]/runcmds-Vim2" |
| ], |
| "infra_step": true, |
| "name": "shard Vim2.write runcmds", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@runcmds-Vim2@mkdir /tmp/infra-test-output@@@", |
| "@@@STEP_LOG_LINE@runcmds-Vim2@waitfor class=block topo=/dev/sys/pci/00:06.0/virtio-block/block timeout=60000@@@", |
| "@@@STEP_LOG_LINE@runcmds-Vim2@mount /dev/sys/pci/00:06.0/virtio-block/block /tmp/infra-test-output@@@", |
| "@@@STEP_LOG_LINE@runcmds-Vim2@runtests -o /tmp/infra-test-output -f /boot/infra/shard.run@@@", |
| "@@@STEP_LOG_LINE@runcmds-Vim2@umount /tmp/infra-test-output@@@", |
| "@@@STEP_LOG_LINE@runcmds-Vim2@dm poweroff@@@", |
| "@@@STEP_LOG_END@runcmds-Vim2@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[CLEANUP]/build-artifacts_tmp_1/zbi", |
| "-o", |
| "[CLEANUP]/build-artifacts_tmp_1/fuchsia-Vim2.zbi", |
| "[CLEANUP]/build-artifacts_tmp_1/fuchsia.zbi", |
| "-e", |
| "infra/runcmds=[CLEANUP]/runcmds-Vim2", |
| "-e", |
| "infra/shard.run=[CLEANUP]/tests-Vim2" |
| ], |
| "name": "shard Vim2.create zbi", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[CLEANUP]/build-artifacts_tmp_1/minfs", |
| "[CLEANUP]/isolate_tmp_4/output.fs@2G", |
| "create" |
| ], |
| "name": "shard Vim2.create test image", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[\n {\n \"path\": \"netboot.zbi\", \n \"bootserver_netboot\": [\n \"--boot\"\n ], \n \"type\": \"zbi\", \n \"name\": \"netboot\"\n }, \n {\n \"path\": \"fuchsia-Vim2.zbi\", \n \"type\": \"zbi\", \n \"name\": \"zircon-a\", \n \"bootserver_pave\": [\n \"--boot\", \n \"--zircona\"\n ]\n }\n]", |
| "[CLEANUP]/isolate_tmp_4/images.json" |
| ], |
| "infra_step": true, |
| "name": "shard Vim2.write image manifest", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@images.json@[@@@", |
| "@@@STEP_LOG_LINE@images.json@ {@@@", |
| "@@@STEP_LOG_LINE@images.json@ \"path\": \"netboot.zbi\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"bootserver_netboot\": [@@@", |
| "@@@STEP_LOG_LINE@images.json@ \"--boot\"@@@", |
| "@@@STEP_LOG_LINE@images.json@ ], @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"type\": \"zbi\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"name\": \"netboot\"@@@", |
| "@@@STEP_LOG_LINE@images.json@ }, @@@", |
| "@@@STEP_LOG_LINE@images.json@ {@@@", |
| "@@@STEP_LOG_LINE@images.json@ \"path\": \"fuchsia-Vim2.zbi\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"type\": \"zbi\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"name\": \"zircon-a\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"bootserver_pave\": [@@@", |
| "@@@STEP_LOG_LINE@images.json@ \"--boot\", @@@", |
| "@@@STEP_LOG_LINE@images.json@ \"--zircona\"@@@", |
| "@@@STEP_LOG_LINE@images.json@ ]@@@", |
| "@@@STEP_LOG_LINE@images.json@ }@@@", |
| "@@@STEP_LOG_LINE@images.json@]@@@", |
| "@@@STEP_LOG_END@images.json@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/symlink.py", |
| "--link-json", |
| "{\"[CLEANUP]/build-artifacts_tmp_1/fuchsia-Vim2.zbi\": [\"[CLEANUP]/isolate_tmp_4/fuchsia-Vim2.zbi\"], \"[CLEANUP]/build-artifacts_tmp_1/netboot.zbi\": [\"[CLEANUP]/isolate_tmp_4/netboot.zbi\"]}" |
| ], |
| "infra_step": true, |
| "name": "shard Vim2.create tree of build artifacts", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[CACHE]/isolated_client/isolated", |
| "archive", |
| "-verbose", |
| "-isolate-server", |
| "https://example.isolateserver.appspot.com", |
| "-namespace", |
| "default-gzip", |
| "-dump-hash", |
| "/path/to/tmp/", |
| "-dirs", |
| "[CLEANUP]/isolate_tmp_4:." |
| ], |
| "infra_step": true, |
| "name": "shard Vim2.isolate build artifacts", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LINK@isolated UI@https://example.isolateserver.appspot.com/browse?namespace=default-gzip&hash=%5Bdummy+hash%5D@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "ensure swarming" |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[CACHE]/swarming_client", |
| "-ensure-file", |
| "infra/tools/luci/swarming/${platform} git_revision:fd7d55c05dac7486ba163c0d08827a0901afaa7b", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "ensure 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-git_revision:fd7\", @@@", |
| "@@@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": [ |
| "[CACHE]/swarming_client/swarming", |
| "spawn-tasks", |
| "-server", |
| "https://example.swarmingserver.appspot.com", |
| "-json-input", |
| "{\"requests\": [{\"name\": \"Vim2\", \"priority\": \"200\", \"service_account\": \"\", \"task_slices\": [{\"expiration_secs\": \"600\", \"properties\": {\"cipd_input\": {\"packages\": [{\"package_name\": \"fuchsia/infra/botanist/linux-arm64\", \"path\": \".\", \"version\": \"git_revision:824474aef03ad7c27e18c40fe8a5187a742bda1d\"}, {\"package_name\": \"fuchsia/third_party/qemu/linux-arm64\", \"path\": \"qemu\", \"version\": \"git_revision:533bf2563d0213a7e002d9fcde75519d30ffa70f\"}]}, \"command\": [\"./botanist\", \"-level\", \"debug\", \"qemu\", \"-qemu-dir\", \"./qemu/bin\", \"-images\", \"images.json\", \"-arch\", \"arm64\", \"-minfs\", \"output.fs\", \"-pci-addr\", \"06.0\", \"-use-kvm\", \"zircon.autorun.boot=/boot/bin/sh+/boot/infra/runcmds\"], \"containment\": {\"containment_type\": \"NONE\", \"limit_processes\": \"0\", \"limit_total_committed_memory\": \"0\", \"lower_priority\": false}, \"dimensions\": [{\"key\": \"kvm\", \"value\": \"1\"}, {\"key\": \"os\", \"value\": \"Debian\"}, {\"key\": \"cpu\", \"value\": \"arm64\"}, {\"key\": \"pool\", \"value\": \"fuchsia.tests\"}], \"env\": [], \"env_prefixes\": [], \"execution_timeout_secs\": \"2400\", \"grace_period_secs\": \"30\", \"idempotent\": false, \"inputs_ref\": {\"isolated\": \"[dummy hash]\", \"isolatedserver\": \"https://example.isolateserver.appspot.com\", \"namespace\": \"default-gzip\"}, \"io_timeout_secs\": \"180\", \"outputs\": [\"output.fs\"]}}], \"user\": null}]}", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "trigger 1 task", |
| "~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\": \"Vim2\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"task_id\": \"0\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ }@@@", |
| "@@@STEP_LOG_LINE@json.output@ ]@@@", |
| "@@@STEP_LOG_LINE@json.output@}@@@", |
| "@@@STEP_LOG_END@json.output@@@", |
| "@@@STEP_LINK@task UI: Vim2@https://example.swarmingserver.appspot.com/task?id=0@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[CACHE]/swarming_client/swarming", |
| "collect", |
| "-server", |
| "https://example.swarmingserver.appspot.com", |
| "-task-summary-json", |
| "/path/to/tmp/json", |
| "-task-output-stdout", |
| "json", |
| "-output-dir", |
| "[CLEANUP]/swarming_tmp_3", |
| "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@ \"syslog.txt\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"serial.txt\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"out.tar\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"benchmark.catapult_json\"@@@", |
| "@@@STEP_LOG_LINE@json.output@ ], @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"results\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"duration\": 62.35, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"exit_code\": 0, @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"name\": \"Vim2\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"outputs_ref\": {@@@", |
| "@@@STEP_LOG_LINE@json.output@ \"isolated\": \"abc123\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"isolatedserver\": \"https://isolateserver.appspot.com\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"namespace\": \"default-gzip\"@@@", |
| "@@@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@}@@@", |
| "@@@STEP_LOG_END@json.output@@@", |
| "@@@STEP_LOG_LINE@task stdout+stderr: Vim2@hello world!@@@", |
| "@@@STEP_LOG_END@task stdout+stderr: Vim2@@@", |
| "@@@STEP_LINK@task isolated outputs: Vim2@https://isolateserver.appspot.com/browse?namespace=default-gzip&hash=abc123@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "Vim2 test results", |
| "~followup_annotations": [ |
| "@@@STEP_LOG_LINE@symbolized logs@blah@@@", |
| "@@@STEP_LOG_LINE@symbolized logs@blah@@@", |
| "@@@STEP_LOG_END@symbolized logs@@@", |
| "@@@STEP_LOG_LINE@kernel log@hello world!@@@", |
| "@@@STEP_LOG_END@kernel log@@@", |
| "@@@STEP_LOG_LINE@summary.json@{\"outputs\": {\"goodbye-txt\": \"goodbye.txt\"}, \"tests\": [{\"name\": \"hello\", \"output_file\": \"hello.out\", \"result\": \"PASS\"}, {\"name\": \"benchmark.catapult_json\", \"output_file\": \"benchmark.catapult_json\", \"result\": \"PASS\"}]}@@@", |
| "@@@STEP_LOG_END@summary.json@@@", |
| "@@@STEP_LOG_LINE@goodbye-txt@goodbye@@@", |
| "@@@STEP_LOG_END@goodbye-txt@@@", |
| "@@@STEP_LINK@test outputs@https://isolateserver.appspot.com/browse?namespace=default-gzip&hash=abc123@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[CLEANUP]/build-artifacts_tmp_1/symbolize_tool", |
| "-level", |
| "debug", |
| "-ids", |
| "[CLEANUP]/build-artifacts_tmp_1/ids.txt", |
| "-llvm-symbolizer", |
| "[CLEANUP]/build-artifacts_tmp_1/llvm_symbolizer", |
| "-json-output", |
| "[CLEANUP]/Vim2-symbolizer-output.json" |
| ], |
| "infra_step": true, |
| "name": "Vim2 test results.symbolize logs", |
| "stdin": "hello world!", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_END@json.output[symbolizer-output.json] (invalid)@@@", |
| "@@@STEP_LOG_LINE@json.output[symbolizer-output.json] (exception)@No JSON object could be decoded@@@", |
| "@@@STEP_LOG_END@json.output[symbolizer-output.json] (exception)@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[CLEANUP]/build-artifacts_tmp_1/minfs", |
| "[CLEANUP]/swarming_tmp_3/0/out.tar", |
| "cp", |
| "::", |
| "[CLEANUP]/test_results/0" |
| ], |
| "name": "Vim2 test results.extract", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "Vim2 test results.all passed tests", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "Vim2 test results.all passed tests.hello", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@stdio@hello@@@", |
| "@@@STEP_LOG_END@stdio@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "Vim2 test results.all passed tests.benchmark.catapult_json", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@", |
| "@@@STEP_LOG_LINE@stdio@[\"dummy_catapult_data\"]@@@", |
| "@@@STEP_LOG_END@stdio@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "remove", |
| "[CLEANUP]/swarming_tmp_3/0/out.tar" |
| ], |
| "infra_step": true, |
| "name": "Vim2 test results.remove out.tar", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "upload Vim2 test results" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "{\"outputs\": {\"goodbye-txt\": \"goodbye.txt\"}, \"tests\": [{\"name\": \"hello\", \"output_file\": \"hello.out\", \"result\": \"PASS\"}, {\"name\": \"benchmark.catapult_json\", \"output_file\": \"benchmark.catapult_json\", \"result\": \"PASS\"}]}", |
| "[CLEANUP]/swarming_tmp_3/0/summary.json" |
| ], |
| "infra_step": true, |
| "name": "upload Vim2 test results.write summary.json", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@summary.json@{\"outputs\": {\"goodbye-txt\": \"goodbye.txt\"}, \"tests\": [{\"name\": \"hello\", \"output_file\": \"hello.out\", \"result\": \"PASS\"}, {\"name\": \"benchmark.catapult_json\", \"output_file\": \"benchmark.catapult_json\", \"result\": \"PASS\"}]}@@@", |
| "@@@STEP_LOG_END@summary.json@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "upload Vim2 test results.ensure gsutil", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd/gsutil", |
| "-ensure-file", |
| "infra/gsutil version:4.41", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "upload Vim2 test results.ensure gsutil.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:4.41----\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/gsutil\"@@@", |
| "@@@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": [ |
| "vpython", |
| "-vpython-spec", |
| "RECIPE_MODULE[infra::gsutil]/resources/gsutil.vpython", |
| "-u", |
| "[START_DIR]/cipd/gsutil/gsutil", |
| "-o", |
| "GSUtil:software_update_check_period=0", |
| "-m", |
| "rsync", |
| "-r", |
| "[CLEANUP]/swarming_tmp_3/0", |
| "gs://fuchsia_infra/builds/8945511751514863184/Vim2" |
| ], |
| "infra_step": true, |
| "name": "upload Vim2 test results.upload Vim2 to fuchsia_infra", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LINK@Vim2@https://console.cloud.google.com/storage/browser/fuchsia_infra/builds/8945511751514863184/Vim2@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "upload Vim2 test results.ensure_catapult", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "cipd", |
| "ensure", |
| "-root", |
| "[START_DIR]/cipd/catapult", |
| "-ensure-file", |
| "fuchsia/infra/catapult/${platform} latest", |
| "-json-output", |
| "/path/to/tmp/json" |
| ], |
| "infra_step": true, |
| "name": "upload Vim2 test results.ensure_catapult.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-latest----------\", @@@", |
| "@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/infra/catapult/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": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "glob", |
| "[CLEANUP]/swarming_tmp_3/0", |
| "*.catapult_json" |
| ], |
| "infra_step": true, |
| "name": "upload Vim2 test results.locate catapult files", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@", |
| "@@@STEP_LOG_LINE@glob@[CLEANUP]/swarming_tmp_3/0/benchmark.catapult_json@@@", |
| "@@@STEP_LOG_END@glob@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "upload Vim2 test results.upload benchmark.catapult_json", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "cmd": [ |
| "[START_DIR]/cipd/catapult/catapult", |
| "upload", |
| "-url", |
| "https://chromeperf.appspot.com", |
| "-timeout", |
| "60s", |
| "[CLEANUP]/swarming_tmp_3/0/benchmark.catapult_json" |
| ], |
| "name": "upload Vim2 test results.upload benchmark.catapult_json.catapult upload", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@2@@@" |
| ] |
| }, |
| { |
| "cmd": [], |
| "name": "check log serial.txt" |
| }, |
| { |
| "cmd": [ |
| "python", |
| "-u", |
| "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| "--json-output", |
| "/path/to/tmp/json", |
| "copy", |
| "[CLEANUP]/swarming_tmp_3/0/serial.txt", |
| "/path/to/tmp/" |
| ], |
| "infra_step": true, |
| "name": "check log serial.txt.read serial.txt", |
| "~followup_annotations": [ |
| "@@@STEP_NEST_LEVEL@1@@@" |
| ] |
| }, |
| { |
| "name": "$result" |
| } |
| ] |