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-asmjs/bin/test" 85 ], 86 "infra_step": true, 87 "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-asmjs/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-asmjs/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-asmjs/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-asmjs/bin/test/pathkit.js" 114 ], 115 "infra_step": true, 116 "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/npm-asmjs/bin/test/pathkit.js", 117 "~followup_annotations": [ 118 "@@@STEP_NEST_LEVEL@1@@@" 119 ] 120 }, 121 { 122 "cmd": [ 123 "chmod", 124 "-R", 125 "a+r", 126 "[START_DIR]/skia" 127 ], 128 "infra_step": true, 129 "name": "Docker setup.chmod -R a+r [START_DIR]/skia", 130 "~followup_annotations": [ 131 "@@@STEP_NEST_LEVEL@1@@@" 132 ] 133 }, 134 { 135 "cmd": [ 136 "docker", 137 "run", 138 "--shm-size=2gb", 139 "--rm", 140 "--user", 141 "13:17", 142 "--mount", 143 "type=bind,source=[START_DIR],target=/SRC", 144 "--mount", 145 "type=bind,source=[START_DIR]/[SWARM_OUT_DIR],target=/OUT", 146 "--env", 147 "ASM_JS=1", 148 "gcr.io/skia-public/gold-karma-chrome-tests:87.0.4280.88_v2", 149 "/SRC/skia/infra/pathkit/test_pathkit.sh", 150 "--builder", 151 "Test-Debian10-EMCC-GCE-CPU-AVX2-asmjs-Debug-All-PathKit", 152 "--git_hash", 153 "abc123", 154 "--buildbucket_build_id", 155 "", 156 "--browser", 157 "Chrome", 158 "--config", 159 "Debug", 160 "--source_type", 161 "pathkit", 162 "--compiled_language", 163 "asmjs" 164 ], 165 "env": { 166 "CHROME_HEADLESS": "1", 167 "DOCKER_CONFIG": "/home/chrome-bot/.docker", 168 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 169 }, 170 "name": "Test PathKit with Docker" 171 }, 172 { 173 "cmd": [ 174 "vpython", 175 "-u", 176 "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", 177 "--json-output", 178 "/path/to/tmp/json", 179 "glob", 180 "[START_DIR]/[SWARM_OUT_DIR]", 181 "*.png" 182 ], 183 "infra_step": true, 184 "name": "find .png images", 185 "~followup_annotations": [ 186 "@@@STEP_LOG_LINE@glob@[START_DIR]/[SWARM_OUT_DIR]/someimage.png@@@", 187 "@@@STEP_LOG_END@glob@@@" 188 ] 189 }, 190 { 191 "cmd": [ 192 "gsutil", 193 "-m", 194 "cp", 195 "[START_DIR]/[SWARM_OUT_DIR]/*.png", 196 "gs://skia-infra-gm/dm-images-v1" 197 ], 198 "name": "upload .png images" 199 }, 200 { 201 "cmd": [ 202 "gsutil", 203 "cp", 204 "-Z", 205 "[START_DIR]/[SWARM_OUT_DIR]/dm.json", 206 "gs://skia-infra-gm/dm-json-v1/2012/05/14/12/abc123/Test-Debian10-EMCC-GCE-CPU-AVX2-asmjs-Debug-All-PathKit/1337000001/dm.json" 207 ], 208 "name": "upload dm.json" 209 }, 210 { 211 "name": "$result" 212 } 213]