1[ 2 { 3 "cmd": [ 4 "vpython", 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 "[START_DIR]/[SWARM_OUT_DIR]" 13 ], 14 "infra_step": true, 15 "name": "mkdirs out_dir" 16 }, 17 { 18 "cmd": [ 19 "python", 20 "-u", 21 "import os\nprint(os.environ.get('SWARMING_BOT_ID', ''))\n" 22 ], 23 "name": "get swarming bot id", 24 "~followup_annotations": [ 25 "@@@STEP_LOG_LINE@python.inline@import os@@@", 26 "@@@STEP_LOG_LINE@python.inline@print(os.environ.get('SWARMING_BOT_ID', ''))@@@", 27 "@@@STEP_LOG_END@python.inline@@@" 28 ] 29 }, 30 { 31 "cmd": [ 32 "python", 33 "-u", 34 "import os\nprint(os.environ.get('SWARMING_TASK_ID', ''))\n" 35 ], 36 "name": "get swarming task id", 37 "~followup_annotations": [ 38 "@@@STEP_LOG_LINE@python.inline@import os@@@", 39 "@@@STEP_LOG_LINE@python.inline@print(os.environ.get('SWARMING_TASK_ID', ''))@@@", 40 "@@@STEP_LOG_END@python.inline@@@" 41 ] 42 }, 43 { 44 "cmd": [], 45 "name": "Docker setup" 46 }, 47 { 48 "cmd": [ 49 "python", 50 "-u", 51 "import os\nprint('%d:%d' % (os.getuid(), os.getgid()))\n" 52 ], 53 "name": "Docker setup.Get uid and gid", 54 "~followup_annotations": [ 55 "@@@STEP_NEST_LEVEL@1@@@", 56 "@@@STEP_LOG_LINE@python.inline@import os@@@", 57 "@@@STEP_LOG_LINE@python.inline@print('%d:%d' % (os.getuid(), os.getgid()))@@@", 58 "@@@STEP_LOG_END@python.inline@@@" 59 ] 60 }, 61 { 62 "cmd": [ 63 "vpython", 64 "-u", 65 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 66 "--json-output", 67 "/path/to/tmp/json", 68 "ensure-directory", 69 "--mode", 70 "0777", 71 "[START_DIR]/[SWARM_OUT_DIR]" 72 ], 73 "infra_step": true, 74 "name": "Docker setup.mkdirs out_dir", 75 "~followup_annotations": [ 76 "@@@STEP_NEST_LEVEL@1@@@" 77 ] 78 }, 79 { 80 "cmd": [ 81 "chmod", 82 "777", 83 "[START_DIR]/[SWARM_OUT_DIR]" 84 ], 85 "infra_step": true, 86 "name": "Docker setup.chmod 777 [START_DIR]/[SWARM_OUT_DIR]", 87 "~followup_annotations": [ 88 "@@@STEP_NEST_LEVEL@1@@@" 89 ] 90 }, 91 { 92 "cmd": [ 93 "chmod", 94 "755", 95 "[START_DIR]" 96 ], 97 "infra_step": true, 98 "name": "Docker setup.chmod 755 [START_DIR]", 99 "~followup_annotations": [ 100 "@@@STEP_NEST_LEVEL@1@@@" 101 ] 102 }, 103 { 104 "cmd": [ 105 "chmod", 106 "0755", 107 "[START_DIR]/skia/infra/pathkit/perf_pathkit.sh" 108 ], 109 "infra_step": true, 110 "name": "Docker setup.chmod 0755 [START_DIR]/skia/infra/pathkit/perf_pathkit.sh", 111 "~followup_annotations": [ 112 "@@@STEP_NEST_LEVEL@1@@@" 113 ] 114 }, 115 { 116 "cmd": [ 117 "vpython", 118 "-u", 119 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 120 "--json-output", 121 "/path/to/tmp/json", 122 "ensure-directory", 123 "--mode", 124 "0777", 125 "[START_DIR]/skia/modules/pathkit/npm-wasm/bin" 126 ], 127 "infra_step": true, 128 "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-wasm/bin", 129 "~followup_annotations": [ 130 "@@@STEP_NEST_LEVEL@1@@@" 131 ] 132 }, 133 { 134 "cmd": [ 135 "vpython", 136 "-u", 137 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 138 "--json-output", 139 "/path/to/tmp/json", 140 "copy", 141 "[START_DIR]/build/pathkit.js", 142 "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js" 143 ], 144 "infra_step": true, 145 "name": "Docker setup.cp [START_DIR]/build/pathkit.js [START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js", 146 "~followup_annotations": [ 147 "@@@STEP_NEST_LEVEL@1@@@" 148 ] 149 }, 150 { 151 "cmd": [ 152 "chmod", 153 "644", 154 "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js" 155 ], 156 "infra_step": true, 157 "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js", 158 "~followup_annotations": [ 159 "@@@STEP_NEST_LEVEL@1@@@" 160 ] 161 }, 162 { 163 "cmd": [ 164 "vpython", 165 "-u", 166 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 167 "--json-output", 168 "/path/to/tmp/json", 169 "ensure-directory", 170 "--mode", 171 "0777", 172 "[START_DIR]/skia/modules/pathkit/npm-wasm/bin" 173 ], 174 "infra_step": true, 175 "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-wasm/bin (2)", 176 "~followup_annotations": [ 177 "@@@STEP_NEST_LEVEL@1@@@" 178 ] 179 }, 180 { 181 "cmd": [ 182 "vpython", 183 "-u", 184 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 185 "--json-output", 186 "/path/to/tmp/json", 187 "copy", 188 "[START_DIR]/build/pathkit.wasm", 189 "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.wasm" 190 ], 191 "infra_step": true, 192 "name": "Docker setup.cp [START_DIR]/build/pathkit.wasm [START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.wasm", 193 "~followup_annotations": [ 194 "@@@STEP_NEST_LEVEL@1@@@" 195 ] 196 }, 197 { 198 "cmd": [ 199 "chmod", 200 "644", 201 "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.wasm" 202 ], 203 "infra_step": true, 204 "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.wasm", 205 "~followup_annotations": [ 206 "@@@STEP_NEST_LEVEL@1@@@" 207 ] 208 }, 209 { 210 "cmd": [ 211 "chmod", 212 "-R", 213 "a+r", 214 "[START_DIR]/skia" 215 ], 216 "infra_step": true, 217 "name": "Docker setup.chmod -R a+r [START_DIR]/skia", 218 "~followup_annotations": [ 219 "@@@STEP_NEST_LEVEL@1@@@" 220 ] 221 }, 222 { 223 "cmd": [ 224 "docker", 225 "run", 226 "--shm-size=2gb", 227 "--rm", 228 "--user", 229 "13:17", 230 "--mount", 231 "type=bind,source=[START_DIR],target=/SRC", 232 "--mount", 233 "type=bind,source=[START_DIR]/[SWARM_OUT_DIR],target=/OUT", 234 "gcr.io/skia-public/perf-karma-chrome-tests:87.0.4280.88_v1", 235 "/SRC/skia/infra/pathkit/perf_pathkit.sh", 236 "--builder", 237 "Perf-Debian10-EMCC-GCE-CPU-AVX2-wasm-Release-All-PathKit", 238 "--git_hash", 239 "abc123", 240 "--buildbucket_build_id", 241 "", 242 "--bot_id", 243 "", 244 "--task_id", 245 "", 246 "--browser", 247 "Chrome", 248 "--config", 249 "Release", 250 "--source_type", 251 "pathkit" 252 ], 253 "env": { 254 "CHROME_HEADLESS": "1", 255 "DOCKER_CONFIG": "/home/chrome-bot/.docker", 256 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 257 }, 258 "name": "Performance tests of PathKit with Docker" 259 }, 260 { 261 "name": "$result" 262 } 263]