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