1[ 2 { 3 "cmd": [], 4 "name": "ensure xcode", 5 "~followup_annotations": [ 6 "@@@STEP_TEXT@Ensuring Xcode version 9c40b in [START_DIR]/cache/Xcode.app@@@" 7 ] 8 }, 9 { 10 "cmd": [ 11 "[START_DIR]/mac_toolchain/mac_toolchain", 12 "install", 13 "-kind", 14 "ios", 15 "-xcode-version", 16 "9c40b", 17 "-output-dir", 18 "[START_DIR]/cache/Xcode.app" 19 ], 20 "name": "ensure xcode.install xcode", 21 "~followup_annotations": [ 22 "@@@STEP_NEST_LEVEL@1@@@" 23 ] 24 }, 25 { 26 "cmd": [ 27 "sudo", 28 "xcode-select", 29 "-switch", 30 "[START_DIR]/cache/Xcode.app" 31 ], 32 "name": "ensure xcode.select xcode", 33 "~followup_annotations": [ 34 "@@@STEP_NEST_LEVEL@1@@@" 35 ] 36 }, 37 { 38 "cmd": [ 39 "python", 40 "-u", 41 "[START_DIR]/cache/work/skia/bin/fetch-gn" 42 ], 43 "cwd": "[START_DIR]/cache/work/skia", 44 "env": { 45 "CHROME_HEADLESS": "1", 46 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 47 }, 48 "infra_step": true, 49 "name": "fetch-gn" 50 }, 51 { 52 "cmd": [ 53 "[START_DIR]/cache/work/skia/bin/gn", 54 "gen", 55 "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-ASAN/Debug", 56 "--args=cc=\"clang\" cxx=\"clang++\" extra_cflags=[\"-DDUMMY_xcode_build_version=9c40b\", \"-O1\"] sanitize=\"ASAN\" skia_enable_spirv_validation=false target_cpu=\"x86_64\"" 57 ], 58 "cwd": "[START_DIR]/cache/work/skia", 59 "env": { 60 "CHROME_HEADLESS": "1", 61 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 62 }, 63 "name": "gn gen" 64 }, 65 { 66 "cmd": [ 67 "ninja", 68 "-C", 69 "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-ASAN/Debug" 70 ], 71 "cwd": "[START_DIR]/cache/work/skia", 72 "env": { 73 "CHROME_HEADLESS": "1", 74 "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" 75 }, 76 "name": "ninja" 77 }, 78 { 79 "cmd": [ 80 "python", 81 "-u", 82 "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', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']\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", 83 "[START_DIR]/cache/work/skia/out/Build-Mac-Clang-x86_64-Debug-ASAN/Debug", 84 "[START_DIR]/[SWARM_OUT_DIR]/out/Debug" 85 ], 86 "infra_step": true, 87 "name": "copy build products", 88 "~followup_annotations": [ 89 "@@@STEP_LOG_LINE@python.inline@import errno@@@", 90 "@@@STEP_LOG_LINE@python.inline@import glob@@@", 91 "@@@STEP_LOG_LINE@python.inline@import os@@@", 92 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", 93 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 94 "@@@STEP_LOG_LINE@python.inline@@@@", 95 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", 96 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", 97 "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['bookmaker', 'dm', 'dm.exe', 'dm.app', 'nanobench.app', 'get_images_from_skps', 'get_images_from_skps.exe', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@", 98 "@@@STEP_LOG_LINE@python.inline@@@@", 99 "@@@STEP_LOG_LINE@python.inline@try:@@@", 100 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", 101 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", 102 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", 103 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 104 "@@@STEP_LOG_LINE@python.inline@@@@", 105 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@", 106 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", 107 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", 108 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 109 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 110 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 111 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 112 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", 113 "@@@STEP_LOG_END@python.inline@@@" 114 ] 115 }, 116 { 117 "cmd": [ 118 "python", 119 "-u", 120 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 121 "--json-output", 122 "/path/to/tmp/json", 123 "glob", 124 "[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin", 125 "libclang_rt.*san_osx_dynamic.dylib" 126 ], 127 "infra_step": true, 128 "name": "find xSAN dylibs", 129 "stdout": "/path/to/tmp/", 130 "~followup_annotations": [ 131 "@@@STEP_LOG_LINE@glob@[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib@@@", 132 "@@@STEP_LOG_LINE@glob@[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.tsan_osx_dynamic.dylib@@@", 133 "@@@STEP_LOG_LINE@glob@[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib@@@", 134 "@@@STEP_LOG_END@glob@@@" 135 ] 136 }, 137 { 138 "cmd": [ 139 "python", 140 "-u", 141 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 142 "--json-output", 143 "/path/to/tmp/json", 144 "copy", 145 "[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.asan_osx_dynamic.dylib", 146 "[START_DIR]/[SWARM_OUT_DIR]/out/Debug" 147 ], 148 "infra_step": true, 149 "name": "copy libclang_rt.asan_osx_dynamic.dylib" 150 }, 151 { 152 "cmd": [ 153 "python", 154 "-u", 155 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 156 "--json-output", 157 "/path/to/tmp/json", 158 "copy", 159 "[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.tsan_osx_dynamic.dylib", 160 "[START_DIR]/[SWARM_OUT_DIR]/out/Debug" 161 ], 162 "infra_step": true, 163 "name": "copy libclang_rt.tsan_osx_dynamic.dylib" 164 }, 165 { 166 "cmd": [ 167 "python", 168 "-u", 169 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 170 "--json-output", 171 "/path/to/tmp/json", 172 "copy", 173 "[START_DIR]/cache/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.ubsan_osx_dynamic.dylib", 174 "[START_DIR]/[SWARM_OUT_DIR]/out/Debug" 175 ], 176 "infra_step": true, 177 "name": "copy libclang_rt.ubsan_osx_dynamic.dylib" 178 }, 179 { 180 "jsonResult": null, 181 "name": "$result" 182 } 183]