1 [ 2 { 3 "cmd": [ 4 "python", 5 "-u", 6 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 7 "--json-output", 8 "/path/to/tmp/json", 9 "ensure-directory", 10 "--mode", 11 "0777", 12 "[CUSTOM_/_B_WORK]/flutter" 13 ], 14 "infra_step": true, 15 "name": "makedirs checkout_path" 16 }, 17 { 18 "cmd": [ 19 "python", 20 "-u", 21 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 22 "--json-output", 23 "/path/to/tmp/json", 24 "remove", 25 "[CUSTOM_/_B_WORK]/flutter/.gclient_entries" 26 ], 27 "infra_step": true, 28 "name": "remove [CUSTOM_/_B_WORK]/flutter/.gclient_entries" 29 }, 30 { 31 "cmd": [ 32 "python", 33 "-u", 34 "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py", 35 "--spec-path", 36 "cache_dir = '[CUSTOM_/_B_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src/flutter', 'url': 'https://github.com/flutter/engine.git'}]\ntarget_os = ['android']", 37 "--patch_root", 38 "src/third_party/skia", 39 "--revision_mapping_file", 40 "{\"got_flutter_revision\": \"src/flutter\", \"got_revision\": \"src/third_party/skia\"}", 41 "--git-cache-dir", 42 "[CUSTOM_/_B_CACHE]", 43 "--cleanup-dir", 44 "[CLEANUP]/bot_update", 45 "--gerrit_repo", 46 "https://skia.googlesource.com/skia.git", 47 "--gerrit_ref", 48 "refs/changes/89/456789/12", 49 "--output_json", 50 "/path/to/tmp/json", 51 "--revision", 52 "src/flutter@origin/master", 53 "--revision", 54 "src/third_party/skia@abc123" 55 ], 56 "cwd": "[CUSTOM_/_B_WORK]/flutter", 57 "env_prefixes": { 58 "PATH": [ 59 "RECIPE_PACKAGE_REPO[depot_tools]" 60 ] 61 }, 62 "infra_step": true, 63 "name": "bot_update", 64 "~followup_annotations": [ 65 "@@@STEP_TEXT@Some step text@@@", 66 "@@@STEP_LOG_LINE (a] json.output@{@@@", 67 "@@@STEP_LOG_LINE (a] json.output@ \"did_run\": true, @@@", 68 "@@@STEP_LOG_LINE (a] json.output@ \"fixed_revisions\": {@@@", 69 "@@@STEP_LOG_LINE (a] json.output@ \"src/flutter\": \"origin/master\", @@@", 70 "@@@STEP_LOG_LINE (a] json.output@ \"src/third_party/skia\": \"abc123\"@@@", 71 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 72 "@@@STEP_LOG_LINE (a] json.output@ \"manifest\": {@@@", 73 "@@@STEP_LOG_LINE (a] json.output@ \"src/flutter\": {@@@", 74 "@@@STEP_LOG_LINE (a] json.output@ \"repository\": \"https://fake.org/src/flutter.git\", @@@", 75 "@@@STEP_LOG_LINE (a] json.output@ \"revision\": \"9221bca00ddbd888260084def81f09543281b952\"@@@", 76 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 77 "@@@STEP_LOG_LINE (a] json.output@ \"src/third_party/skia\": {@@@", 78 "@@@STEP_LOG_LINE (a] json.output@ \"repository\": \"https://fake.org/src/third_party/skia.git\", @@@", 79 "@@@STEP_LOG_LINE (a] json.output@ \"revision\": \"d9c4a4d173a97ef2832b65636b4200bb93ea8ee1\"@@@", 80 "@@@STEP_LOG_LINE (a] json.output@ }@@@", 81 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 82 "@@@STEP_LOG_LINE (a] json.output@ \"patch_failure\": false, @@@", 83 "@@@STEP_LOG_LINE (a] json.output@ \"patch_root\": \"src/third_party/skia\", @@@", 84 "@@@STEP_LOG_LINE (a] json.output@ \"properties\": {@@@", 85 "@@@STEP_LOG_LINE (a] json.output@ \"got_flutter_revision\": \"9221bca00ddbd888260084def81f09543281b952\", @@@", 86 "@@@STEP_LOG_LINE (a] json.output@ \"got_flutter_revision_cp\": \"refs/heads/master@{#84512}\", @@@", 87 "@@@STEP_LOG_LINE (a] json.output@ \"got_revision\": \"d9c4a4d173a97ef2832b65636b4200bb93ea8ee1\", @@@", 88 "@@@STEP_LOG_LINE (a] json.output@ \"got_revision_cp\": \"refs/heads/master@{#143121}\"@@@", 89 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 90 "@@@STEP_LOG_LINE (a] json.output@ \"root\": \"src/flutter\", @@@", 91 "@@@STEP_LOG_LINE (a] json.output@ \"source_manifest\": {@@@", 92 "@@@STEP_LOG_LINE (a] json.output@ \"directories\": {@@@", 93 "@@@STEP_LOG_LINE (a] json.output@ \"src/flutter\": {@@@", 94 "@@@STEP_LOG_LINE (a] json.output@ \"git_checkout\": {@@@", 95 "@@@STEP_LOG_LINE (a] json.output@ \"repo_url\": \"https://fake.org/src/flutter.git\", @@@", 96 "@@@STEP_LOG_LINE (a] json.output@ \"revision\": \"9221bca00ddbd888260084def81f09543281b952\"@@@", 97 "@@@STEP_LOG_LINE (a] json.output@ }@@@", 98 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 99 "@@@STEP_LOG_LINE (a] json.output@ \"src/third_party/skia\": {@@@", 100 "@@@STEP_LOG_LINE (a] json.output@ \"git_checkout\": {@@@", 101 "@@@STEP_LOG_LINE (a] json.output@ \"repo_url\": \"https://fake.org/src/third_party/skia.git\", @@@", 102 "@@@STEP_LOG_LINE (a] json.output@ \"revision\": \"d9c4a4d173a97ef2832b65636b4200bb93ea8ee1\"@@@", 103 "@@@STEP_LOG_LINE (a] json.output@ }@@@", 104 "@@@STEP_LOG_LINE (a] json.output@ }@@@", 105 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 106 "@@@STEP_LOG_LINE (a] json.output@ \"version\": 0@@@", 107 "@@@STEP_LOG_LINE (a] json.output@ }, @@@", 108 "@@@STEP_LOG_LINE (a] json.output@ \"step_text\": \"Some step text\"@@@", 109 "@@@STEP_LOG_LINE (a] json.output@}@@@", 110 "@@@STEP_LOG_END (a] json.output@@@", 111 "@@@SET_BUILD_PROPERTY@got_flutter_revision@\"9221bca00ddbd888260084def81f09543281b952\"@@@", 112 "@@@SET_BUILD_PROPERTY@got_flutter_revision_cp@\"refs/heads/master@{#84512}\"@@@", 113 "@@@SET_BUILD_PROPERTY@got_revision@\"d9c4a4d173a97ef2832b65636b4200bb93ea8ee1\"@@@", 114 "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#143121}\"@@@" 115 ] 116 }, 117 { 118 "cmd": [ 119 "python", 120 "-u", 121 "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", 122 "--path", 123 "[CUSTOM_/_B_WORK]/flutter/depot_tools", 124 "--url", 125 "https://chromium.googlesource.com/chromium/tools/depot_tools.git" 126 ], 127 "cwd": "[CUSTOM_/_B_WORK]/flutter/src", 128 "name": "git setup" 129 }, 130 { 131 "cmd": [ 132 "git", 133 "retry", 134 "fetch", 135 "origin", 136 "master", 137 "--progress" 138 ], 139 "cwd": "[CUSTOM_/_B_WORK]/flutter/depot_tools", 140 "env": { 141 "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:<PATH>" 142 }, 143 "infra_step": true, 144 "name": "git fetch" 145 }, 146 { 147 "cmd": [ 148 "git", 149 "checkout", 150 "-f", 151 "FETCH_HEAD" 152 ], 153 "cwd": "[CUSTOM_/_B_WORK]/flutter/depot_tools", 154 "infra_step": true, 155 "name": "git checkout" 156 }, 157 { 158 "cmd": [ 159 "git", 160 "rev-parse", 161 "HEAD" 162 ], 163 "cwd": "[CUSTOM_/_B_WORK]/flutter/depot_tools", 164 "infra_step": true, 165 "name": "read revision", 166 "stdout": "/path/to/tmp/", 167 "~followup_annotations": [ 168 "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@" 169 ] 170 }, 171 { 172 "cmd": [ 173 "git", 174 "clean", 175 "-f", 176 "-d", 177 "-x" 178 ], 179 "cwd": "[CUSTOM_/_B_WORK]/flutter/depot_tools", 180 "infra_step": true, 181 "name": "git clean" 182 }, 183 { 184 "cmd": [ 185 "git", 186 "submodule", 187 "sync" 188 ], 189 "cwd": "[CUSTOM_/_B_WORK]/flutter/depot_tools", 190 "infra_step": true, 191 "name": "submodule sync" 192 }, 193 { 194 "cmd": [ 195 "git", 196 "submodule", 197 "update", 198 "--init", 199 "--recursive" 200 ], 201 "cwd": "[CUSTOM_/_B_WORK]/flutter/depot_tools", 202 "infra_step": true, 203 "name": "submodule update" 204 }, 205 { 206 "cmd": [ 207 "[CUSTOM_/_B_WORK]/flutter/depot_tools/gclient", 208 "runhooks" 209 ], 210 "cwd": "[CUSTOM_/_B_WORK]/flutter/src", 211 "env": { 212 "BUILDTYPE": "Release", 213 "CHROME_HEADLESS": "1", 214 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 215 "SKIA_OUT": "[CUSTOM_/_B_WORK]/flutter/src/third_party/skia/out/Build-Debian9-GCC-x86_64-Release-Flutter_Android" 216 }, 217 "name": "runhook" 218 }, 219 { 220 "cmd": [ 221 "python", 222 "-u", 223 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 224 "--json-output", 225 "/path/to/tmp/json", 226 "rmtree", 227 "[CUSTOM_/_B_WORK]/flutter/src/out/android_release" 228 ], 229 "cwd": "[CUSTOM_/_B_WORK]/flutter/src", 230 "infra_step": true, 231 "name": "rmtree android_release" 232 }, 233 { 234 "cmd": [ 235 "flutter/tools/gn", 236 "--runtime-mode=release", 237 "--android" 238 ], 239 "cwd": "[CUSTOM_/_B_WORK]/flutter/src", 240 "env": { 241 "BUILDTYPE": "Release", 242 "CHROME_HEADLESS": "1", 243 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 244 "SKIA_OUT": "[CUSTOM_/_B_WORK]/flutter/src/third_party/skia/out/Build-Debian9-GCC-x86_64-Release-Flutter_Android" 245 }, 246 "name": "gn_gen" 247 }, 248 { 249 "cmd": [ 250 "ninja", 251 "-C", 252 "out/android_release", 253 "-j100" 254 ], 255 "cwd": "[CUSTOM_/_B_WORK]/flutter/src", 256 "env": { 257 "BUILDTYPE": "Release", 258 "CHROME_HEADLESS": "1", 259 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]", 260 "SKIA_OUT": "[CUSTOM_/_B_WORK]/flutter/src/third_party/skia/out/Build-Debian9-GCC-x86_64-Release-Flutter_Android" 261 }, 262 "name": "build_flutter" 263 }, 264 { 265 "cmd": [ 266 "python", 267 "-u", 268 "import errno\nimport glob\nimport os\nimport shutil\nimport sys\n\nsrc = sys.argv[1]\ndst = sys.argv[2]\nbuild_products_whitelist = ['bookmaker', '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', 'skiaserve', 'lib/*.so']\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", 269 "[CUSTOM_/_B_WORK]/flutter/src/third_party/skia/out/Build-Debian9-GCC-x86_64-Release-Flutter_Android/Release", 270 "[CUSTOM_[SWARM_OUT_DIR]]/out/Release" 271 ], 272 "infra_step": true, 273 "name": "copy build products", 274 "~followup_annotations": [ 275 "@@@STEP_LOG_LINE (a] python.inline@import errno@@@", 276 "@@@STEP_LOG_LINE (a] python.inline@import glob@@@", 277 "@@@STEP_LOG_LINE (a] python.inline@import os@@@", 278 "@@@STEP_LOG_LINE (a] python.inline@import shutil@@@", 279 "@@@STEP_LOG_LINE (a] python.inline@import sys@@@", 280 "@@@STEP_LOG_LINE (a] python.inline@@@@", 281 "@@@STEP_LOG_LINE (a] python.inline@src = sys.argv[1]@@@", 282 "@@@STEP_LOG_LINE (a] python.inline@dst = sys.argv[2]@@@", 283 "@@@STEP_LOG_LINE (a] python.inline@build_products_whitelist = ['bookmaker', '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', 'skiaserve', 'lib/*.so']@@@", 284 "@@@STEP_LOG_LINE (a] python.inline@@@@", 285 "@@@STEP_LOG_LINE (a] python.inline@try:@@@", 286 "@@@STEP_LOG_LINE (a] python.inline@ os.makedirs(dst)@@@", 287 "@@@STEP_LOG_LINE (a] python.inline@except OSError as e:@@@", 288 "@@@STEP_LOG_LINE (a] python.inline@ if e.errno != errno.EEXIST:@@@", 289 "@@@STEP_LOG_LINE (a] python.inline@ raise@@@", 290 "@@@STEP_LOG_LINE (a] python.inline@@@@", 291 "@@@STEP_LOG_LINE (a] python.inline@for pattern in build_products_whitelist:@@@", 292 "@@@STEP_LOG_LINE (a] python.inline@ path = os.path.join(src, pattern)@@@", 293 "@@@STEP_LOG_LINE (a] python.inline@ for f in glob.glob(path):@@@", 294 "@@@STEP_LOG_LINE (a] python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 295 "@@@STEP_LOG_LINE (a] python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 296 "@@@STEP_LOG_LINE (a] python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 297 "@@@STEP_LOG_LINE (a] python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 298 "@@@STEP_LOG_LINE (a] python.inline@ shutil.move(f, dst_path)@@@", 299 "@@@STEP_LOG_END (a] python.inline@@@" 300 ] 301 }, 302 { 303 "name": "$result", 304 "recipe_result": null, 305 "status_code": 0 306 } 307 ]