1[ 2 { 3 "cmd": [ 4 "false" 5 ], 6 "env": { 7 "BUILDTYPE": "Release_x64", 8 "CHROME_HEADLESS": "1", 9 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 10 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 11 }, 12 "name": "fail", 13 "~followup_annotations": [ 14 "step returned non-zero exit code: 1", 15 "@@@STEP_FAILURE@@@" 16 ] 17 }, 18 { 19 "cmd": [ 20 "false" 21 ], 22 "env": { 23 "BUILDTYPE": "Release_x64", 24 "CHROME_HEADLESS": "1", 25 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 26 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 27 }, 28 "name": "fail again", 29 "~followup_annotations": [ 30 "step returned non-zero exit code: 1", 31 "@@@STEP_FAILURE@@@" 32 ] 33 }, 34 { 35 "cmd": [ 36 "echo", 37 "do the thing" 38 ], 39 "env": { 40 "BUILDTYPE": "Release_x64", 41 "CHROME_HEADLESS": "1", 42 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 43 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 44 }, 45 "name": "do a thing" 46 }, 47 { 48 "cmd": [ 49 "echo", 50 "0" 51 ], 52 "env": { 53 "BUILDTYPE": "Release_x64", 54 "CHROME_HEADLESS": "1", 55 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 56 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 57 }, 58 "name": "run 0" 59 }, 60 { 61 "cmd": [ 62 "python", 63 "-u", 64 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 65 "--json-output", 66 "/path/to/tmp/json", 67 "copy", 68 "myfile.txt", 69 "/path/to/tmp/" 70 ], 71 "infra_step": true, 72 "name": "read myfile.txt" 73 }, 74 { 75 "cmd": [ 76 "python", 77 "-u", 78 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 79 "--json-output", 80 "/path/to/tmp/json", 81 "copy", 82 "contents", 83 "myfile.txt" 84 ], 85 "infra_step": true, 86 "name": "write myfile.txt" 87 }, 88 { 89 "cmd": [ 90 "python", 91 "-u", 92 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 93 "--json-output", 94 "/path/to/tmp/json", 95 "rmtree", 96 "mydir" 97 ], 98 "infra_step": true, 99 "name": "rmtree mydir" 100 }, 101 { 102 "cmd": [ 103 "env" 104 ], 105 "env": { 106 "BUILDTYPE": "Release_x64", 107 "CHROME_HEADLESS": "1", 108 "PATH": "mydir:<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 109 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 110 }, 111 "name": "env" 112 }, 113 { 114 "cmd": [ 115 "python", 116 "-u", 117 "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'lib/*.so', 'iOSShell.app', 'iOSShell.ipa', 'visualbench', 'visualbench.exe', 'vulkan-1.dll']\n\ntry:\n os.makedirs(dst)\nexcept OSError as e:\n if e.errno != errno.EEXIST:\n raise\n\nfor pattern in build_products_whitelist:\n path = os.path.join(src, pattern)\n for f in glob.glob(path):\n dst_path = os.path.join(dst, os.path.relpath(f, src))\n if not os.path.isdir(os.path.dirname(dst_path)):\n os.makedirs(os.path.dirname(dst_path))\n print 'Copying build product %s to %s' % (f, dst_path)\n shutil.move(f, dst_path)\n", 118 "src", 119 "dst" 120 ], 121 "infra_step": true, 122 "name": "copy build products", 123 "~followup_annotations": [ 124 "@@@STEP_LOG_LINE@python.inline@import errno@@@", 125 "@@@STEP_LOG_LINE@python.inline@import glob@@@", 126 "@@@STEP_LOG_LINE@python.inline@import os@@@", 127 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", 128 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 129 "@@@STEP_LOG_LINE@python.inline@@@@", 130 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", 131 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", 132 "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'nanobench', 'nanobench.exe', 'skpbench', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'lib/*.so', 'iOSShell.app', 'iOSShell.ipa', 'visualbench', 'visualbench.exe', 'vulkan-1.dll']@@@", 133 "@@@STEP_LOG_LINE@python.inline@@@@", 134 "@@@STEP_LOG_LINE@python.inline@try:@@@", 135 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", 136 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", 137 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", 138 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 139 "@@@STEP_LOG_LINE@python.inline@@@@", 140 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@", 141 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", 142 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", 143 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 144 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 145 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 146 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 147 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", 148 "@@@STEP_LOG_END@python.inline@@@" 149 ] 150 }, 151 { 152 "cmd": [ 153 "false" 154 ], 155 "env": { 156 "BUILDTYPE": "Release_x64", 157 "CHROME_HEADLESS": "1", 158 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 159 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 160 }, 161 "name": "retry fail", 162 "~followup_annotations": [ 163 "step returned non-zero exit code: 1", 164 "@@@STEP_FAILURE@@@" 165 ] 166 }, 167 { 168 "cmd": [ 169 "false" 170 ], 171 "env": { 172 "BUILDTYPE": "Release_x64", 173 "CHROME_HEADLESS": "1", 174 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 175 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 176 }, 177 "name": "retry fail (attempt 2)", 178 "~followup_annotations": [ 179 "step returned non-zero exit code: 1", 180 "@@@STEP_FAILURE@@@" 181 ] 182 }, 183 { 184 "cmd": [ 185 "false" 186 ], 187 "env": { 188 "BUILDTYPE": "Release_x64", 189 "CHROME_HEADLESS": "1", 190 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 191 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 192 }, 193 "name": "retry fail (attempt 3)", 194 "~followup_annotations": [ 195 "step returned non-zero exit code: 1", 196 "@@@STEP_FAILURE@@@" 197 ] 198 }, 199 { 200 "cmd": [ 201 "false" 202 ], 203 "env": { 204 "BUILDTYPE": "Release_x64", 205 "CHROME_HEADLESS": "1", 206 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 207 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 208 }, 209 "name": "retry fail (attempt 4)", 210 "~followup_annotations": [ 211 "step returned non-zero exit code: 1", 212 "@@@STEP_FAILURE@@@" 213 ] 214 }, 215 { 216 "cmd": [ 217 "false" 218 ], 219 "env": { 220 "BUILDTYPE": "Release_x64", 221 "CHROME_HEADLESS": "1", 222 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 223 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 224 }, 225 "name": "retry fail (attempt 5)", 226 "~followup_annotations": [ 227 "step returned non-zero exit code: 1", 228 "@@@STEP_FAILURE@@@" 229 ] 230 }, 231 { 232 "cmd": [ 233 "false" 234 ], 235 "env": { 236 "BUILDTYPE": "Release_x64", 237 "CHROME_HEADLESS": "1", 238 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 239 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 240 }, 241 "name": "retry success", 242 "~followup_annotations": [ 243 "step returned non-zero exit code: 1", 244 "@@@STEP_FAILURE@@@" 245 ] 246 }, 247 { 248 "cmd": [ 249 "false" 250 ], 251 "env": { 252 "BUILDTYPE": "Release_x64", 253 "CHROME_HEADLESS": "1", 254 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 255 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 256 }, 257 "name": "retry success (attempt 2)", 258 "~followup_annotations": [ 259 "step returned non-zero exit code: 1", 260 "@@@STEP_FAILURE@@@" 261 ] 262 }, 263 { 264 "cmd": [ 265 "false" 266 ], 267 "env": { 268 "BUILDTYPE": "Release_x64", 269 "CHROME_HEADLESS": "1", 270 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 271 "SKIA_OUT": "[CUSTOM_C:\\_B_WORK]/skia/out/Build-Win-MSVC-x86_64-Release-Vulkan" 272 }, 273 "name": "retry success (attempt 3)" 274 }, 275 { 276 "name": "$result", 277 "reason": "Failed build steps: fail, fail again, retry fail, retry fail (attempt 2), retry fail (attempt 3), retry fail (attempt 4), retry fail (attempt 5), retry success, retry success (attempt 2)", 278 "recipe_result": null, 279 "status_code": 1 280 } 281]