1[ 2 { 3 "cmd": [ 4 "python", 5 "-u", 6 "RECIPE_MODULE[depot_tools::git]/resources/git_setup.py", 7 "--path", 8 "[START_DIR]/skia", 9 "--url", 10 "https://skia.googlesource.com/skia.git" 11 ], 12 "name": "git setup" 13 }, 14 { 15 "cmd": [ 16 "git", 17 "retry", 18 "fetch", 19 "origin", 20 "abc123", 21 "--progress" 22 ], 23 "cwd": "[START_DIR]/skia", 24 "env": { 25 "PATH": "RECIPE_REPO[depot_tools]:<PATH>" 26 }, 27 "infra_step": true, 28 "name": "git fetch" 29 }, 30 { 31 "cmd": [ 32 "git", 33 "checkout", 34 "-f", 35 "FETCH_HEAD" 36 ], 37 "cwd": "[START_DIR]/skia", 38 "infra_step": true, 39 "name": "git checkout" 40 }, 41 { 42 "cmd": [ 43 "git", 44 "rev-parse", 45 "HEAD" 46 ], 47 "cwd": "[START_DIR]/skia", 48 "infra_step": true, 49 "name": "read revision", 50 "stdout": "/path/to/tmp/", 51 "~followup_annotations": [ 52 "@@@STEP_TEXT@<br/>checked out 'deadbeef'<br/>@@@" 53 ] 54 }, 55 { 56 "cmd": [ 57 "git", 58 "clean", 59 "-f", 60 "-d", 61 "-x" 62 ], 63 "cwd": "[START_DIR]/skia", 64 "infra_step": true, 65 "name": "git clean" 66 }, 67 { 68 "cmd": [ 69 "python", 70 "-u", 71 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 72 "--json-output", 73 "/path/to/tmp/json", 74 "ensure-directory", 75 "--mode", 76 "0777", 77 "[START_DIR]/tmp" 78 ], 79 "infra_step": true, 80 "name": "makedirs tmp_dir" 81 }, 82 { 83 "cmd": [ 84 "python", 85 "-u", 86 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 87 "--json-output", 88 "/path/to/tmp/json", 89 "copy", 90 "[START_DIR]/skia/infra/bots/assets/clang_linux/VERSION", 91 "/path/to/tmp/" 92 ], 93 "infra_step": true, 94 "name": "Get clang_linux VERSION" 95 }, 96 { 97 "cmd": [ 98 "python", 99 "-u", 100 "[START_DIR]/skia/bin/fetch-gn" 101 ], 102 "cwd": "[START_DIR]/skia", 103 "env": { 104 "CHROME_HEADLESS": "1", 105 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 106 }, 107 "infra_step": true, 108 "name": "fetch-gn" 109 }, 110 { 111 "cmd": [ 112 "[START_DIR]/skia/bin/gn", 113 "gen", 114 "[START_DIR]/skia/out/Build-Debian9-Clang-x86_64-Release-NoDEPS/Release", 115 "--args=cc=\"[START_DIR]/clang_linux/bin/clang\" cxx=\"[START_DIR]/clang_linux/bin/clang++\" extra_cflags=[\"-B[START_DIR]/clang_linux/bin\", \"-DDUMMY_clang_linux_version=42\"] extra_ldflags=[\"-B[START_DIR]/clang_linux/bin\", \"-fuse-ld=lld\"] is_debug=false is_official_build=true skia_enable_fontmgr_empty=true skia_enable_gpu=true skia_enable_pdf=false skia_use_expat=false skia_use_freetype=false skia_use_harfbuzz=false skia_use_libjpeg_turbo=false skia_use_libpng=false skia_use_libwebp=false skia_use_vulkan=false skia_use_zlib=false target_cpu=\"x86_64\"" 116 ], 117 "cwd": "[START_DIR]/skia", 118 "env": { 119 "CHROME_HEADLESS": "1", 120 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 121 }, 122 "name": "gn gen" 123 }, 124 { 125 "cmd": [ 126 "ninja", 127 "-C", 128 "[START_DIR]/skia/out/Build-Debian9-Clang-x86_64-Release-NoDEPS/Release" 129 ], 130 "cwd": "[START_DIR]/skia", 131 "env": { 132 "CHROME_HEADLESS": "1", 133 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 134 }, 135 "name": "ninja" 136 }, 137 { 138 "cmd": [ 139 "python", 140 "-u", 141 "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', 'hello-opencl', 'hello-opencl.exe', 'nanobench', 'nanobench.exe', 'skpbench', 'skpbench.exe', '*.so', '*.dll', '*.dylib', 'skia_launcher', 'skiaserve', 'skottie_tool', '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", 142 "[START_DIR]/skia/out/Build-Debian9-Clang-x86_64-Release-NoDEPS/Release", 143 "[START_DIR]/[SWARM_OUT_DIR]" 144 ], 145 "infra_step": true, 146 "name": "copy build products", 147 "~followup_annotations": [ 148 "@@@STEP_LOG_LINE@python.inline@import errno@@@", 149 "@@@STEP_LOG_LINE@python.inline@import glob@@@", 150 "@@@STEP_LOG_LINE@python.inline@import os@@@", 151 "@@@STEP_LOG_LINE@python.inline@import shutil@@@", 152 "@@@STEP_LOG_LINE@python.inline@import sys@@@", 153 "@@@STEP_LOG_LINE@python.inline@@@@", 154 "@@@STEP_LOG_LINE@python.inline@src = sys.argv[1]@@@", 155 "@@@STEP_LOG_LINE@python.inline@dst = sys.argv[2]@@@", 156 "@@@STEP_LOG_LINE@python.inline@build_products_whitelist = ['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', 'skottie_tool', 'lib/*.so', 'run_testlab', 'skqp-universal-debug.apk', 'whitelist_devices.json']@@@", 157 "@@@STEP_LOG_LINE@python.inline@@@@", 158 "@@@STEP_LOG_LINE@python.inline@try:@@@", 159 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(dst)@@@", 160 "@@@STEP_LOG_LINE@python.inline@except OSError as e:@@@", 161 "@@@STEP_LOG_LINE@python.inline@ if e.errno != errno.EEXIST:@@@", 162 "@@@STEP_LOG_LINE@python.inline@ raise@@@", 163 "@@@STEP_LOG_LINE@python.inline@@@@", 164 "@@@STEP_LOG_LINE@python.inline@for pattern in build_products_whitelist:@@@", 165 "@@@STEP_LOG_LINE@python.inline@ path = os.path.join(src, pattern)@@@", 166 "@@@STEP_LOG_LINE@python.inline@ for f in glob.glob(path):@@@", 167 "@@@STEP_LOG_LINE@python.inline@ dst_path = os.path.join(dst, os.path.relpath(f, src))@@@", 168 "@@@STEP_LOG_LINE@python.inline@ if not os.path.isdir(os.path.dirname(dst_path)):@@@", 169 "@@@STEP_LOG_LINE@python.inline@ os.makedirs(os.path.dirname(dst_path))@@@", 170 "@@@STEP_LOG_LINE@python.inline@ print 'Copying build product %s to %s' % (f, dst_path)@@@", 171 "@@@STEP_LOG_LINE@python.inline@ shutil.move(f, dst_path)@@@", 172 "@@@STEP_LOG_END@python.inline@@@" 173 ] 174 }, 175 { 176 "jsonResult": null, 177 "name": "$result" 178 } 179]