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