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