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