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