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/asmjs" 81 ], 82 "infra_step": true, 83 "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/build/asmjs", 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/asmjs/pathkit.js" 98 ], 99 "infra_step": true, 100 "name": "Docker setup.cp [START_DIR]/build/pathkit.js [START_DIR]/skia/modules/pathkit/build/asmjs/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/asmjs/pathkit.js" 110 ], 111 "infra_step": true, 112 "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/build/asmjs/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/asmjs" 128 ], 129 "infra_step": true, 130 "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/build/asmjs (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.js.mem", 144 "[START_DIR]/skia/modules/pathkit/build/asmjs/pathkit.js.mem" 145 ], 146 "infra_step": true, 147 "name": "Docker setup.cp [START_DIR]/build/pathkit.js.mem [START_DIR]/skia/modules/pathkit/build/asmjs/pathkit.js.mem", 148 "~followup_annotations": [ 149 "@@@STEP_NEST_LEVEL@1@@@" 150 ] 151 }, 152 { 153 "cmd": [ 154 "chmod", 155 "644", 156 "[START_DIR]/skia/modules/pathkit/build/asmjs/pathkit.js.mem" 157 ], 158 "infra_step": true, 159 "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/build/asmjs/pathkit.js.mem", 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 "--env", 190 "ASM_JS=1", 191 "gcr.io/skia-public/gold-karma-chrome-tests:87.0.4280.88_v2", 192 "/SRC/skia/infra/pathkit/test_pathkit.sh", 193 "--builder", 194 "Test-Debian10-EMCC-GCE-CPU-AVX2-asmjs-Release-All-PathKit", 195 "--git_hash", 196 "abc123", 197 "--buildbucket_build_id", 198 "", 199 "--browser", 200 "Chrome", 201 "--config", 202 "Release", 203 "--source_type", 204 "pathkit", 205 "--compiled_language", 206 "asmjs" 207 ], 208 "env": { 209 "CHROME_HEADLESS": "1", 210 "DOCKER_CONFIG": "/home/chrome-bot/.docker", 211 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 212 }, 213 "name": "Test PathKit with Docker" 214 }, 215 { 216 "cmd": [ 217 "vpython3", 218 "-u", 219 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 220 "--json-output", 221 "/path/to/tmp/json", 222 "glob", 223 "[START_DIR]/[SWARM_OUT_DIR]", 224 "*.png" 225 ], 226 "infra_step": true, 227 "name": "find .png images", 228 "~followup_annotations": [ 229 "@@@STEP_LOG_LINE@glob@[START_DIR]/[SWARM_OUT_DIR]/someimage.png@@@", 230 "@@@STEP_LOG_END@glob@@@" 231 ] 232 }, 233 { 234 "cmd": [ 235 "gsutil", 236 "-m", 237 "cp", 238 "[START_DIR]/[SWARM_OUT_DIR]/*.png", 239 "gs://skia-infra-gm/dm-images-v1" 240 ], 241 "name": "upload .png images" 242 }, 243 { 244 "cmd": [ 245 "gsutil", 246 "cp", 247 "-Z", 248 "[START_DIR]/[SWARM_OUT_DIR]/dm.json", 249 "gs://skia-infra-gm/dm-json-v1/2012/05/14/12/abc123/Test-Debian10-EMCC-GCE-CPU-AVX2-asmjs-Release-All-PathKit/1337000001/dm.json" 250 ], 251 "name": "upload dm.json" 252 }, 253 { 254 "name": "$result" 255 } 256]