Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 1 | [ |
| 2 | { |
| 3 | "cmd": [ |
Eric Boren | b702316 | 2018-05-04 13:46:15 -0400 | [diff] [blame] | 4 | "python", |
| 5 | "-u", |
| 6 | "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 7 | "--json-output", |
| 8 | "/path/to/tmp/json", |
| 9 | "ensure-directory", |
| 10 | "--mode", |
| 11 | "0777", |
| 12 | "[START_DIR]/tmp" |
| 13 | ], |
| 14 | "infra_step": true, |
| 15 | "name": "makedirs tmp_dir" |
| 16 | }, |
| 17 | { |
| 18 | "cmd": [ |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 19 | "ios.py" |
| 20 | ], |
| 21 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 22 | "CHROME_HEADLESS": "1", |
| 23 | "IOS_BUNDLE_ID": "com.google.dm", |
| 24 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 25 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 26 | }, |
| 27 | "infra_step": true, |
| 28 | "name": "setup_device" |
| 29 | }, |
| 30 | { |
| 31 | "cmd": [ |
| 32 | "ideviceinstaller", |
| 33 | "-i", |
Eric Boren | 322a859 | 2018-06-01 10:08:53 -0400 | [diff] [blame] | 34 | "[START_DIR]/build/dm.app" |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 35 | ], |
| 36 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 37 | "CHROME_HEADLESS": "1", |
| 38 | "IOS_BUNDLE_ID": "com.google.dm", |
| 39 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 40 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 41 | }, |
| 42 | "infra_step": true, |
| 43 | "name": "install_dm" |
| 44 | }, |
| 45 | { |
| 46 | "cmd": [ |
| 47 | "ideviceinstaller", |
| 48 | "-i", |
Eric Boren | 322a859 | 2018-06-01 10:08:53 -0400 | [diff] [blame] | 49 | "[START_DIR]/build/nanobench.app" |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 50 | ], |
| 51 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 52 | "CHROME_HEADLESS": "1", |
| 53 | "IOS_BUNDLE_ID": "com.google.dm", |
| 54 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 55 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 56 | }, |
| 57 | "infra_step": true, |
| 58 | "name": "install_nanobench" |
| 59 | }, |
| 60 | { |
| 61 | "cmd": [ |
Mike Klein | 20f0078 | 2017-02-02 18:55:03 -0500 | [diff] [blame] | 62 | "[START_DIR]/skia/platform_tools/ios/bin/ios_push_if_needed", |
| 63 | "[START_DIR]/skia/resources", |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 64 | "resources" |
Mike Klein | 20f0078 | 2017-02-02 18:55:03 -0500 | [diff] [blame] | 65 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 66 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 67 | "CHROME_HEADLESS": "1", |
| 68 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 69 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 70 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 71 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 72 | "infra_step": true, |
Mike Klein | 20f0078 | 2017-02-02 18:55:03 -0500 | [diff] [blame] | 73 | "name": "push_if_needed [START_DIR]/skia/resources" |
| 74 | }, |
| 75 | { |
| 76 | "cmd": [ |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 77 | "python", |
| 78 | "-u", |
Eric Boren | 3e2ffd7 | 2017-06-16 13:10:22 -0400 | [diff] [blame] | 79 | "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 80 | "--json-output", |
| 81 | "/path/to/tmp/json", |
| 82 | "copy", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 83 | "[START_DIR]/skia/infra/bots/assets/skp/VERSION", |
| 84 | "/path/to/tmp/" |
| 85 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 86 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 87 | "IOS_BUNDLE_ID": "com.google.dm", |
| 88 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 89 | }, |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 90 | "infra_step": true, |
Ben Wagner | f20710e | 2018-03-19 16:52:37 -0400 | [diff] [blame] | 91 | "name": "Get skp VERSION" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 92 | }, |
| 93 | { |
| 94 | "cmd": [ |
| 95 | "python", |
| 96 | "-u", |
Eric Boren | 3e2ffd7 | 2017-06-16 13:10:22 -0400 | [diff] [blame] | 97 | "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 98 | "--json-output", |
| 99 | "/path/to/tmp/json", |
| 100 | "copy", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 101 | "42", |
| 102 | "[START_DIR]/tmp/SKP_VERSION" |
| 103 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 104 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 105 | "IOS_BUNDLE_ID": "com.google.dm", |
| 106 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 107 | }, |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 108 | "infra_step": true, |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 109 | "name": "write SKP_VERSION" |
| 110 | }, |
| 111 | { |
| 112 | "cmd": [ |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 113 | "[START_DIR]/skia/platform_tools/ios/bin/ios_cat_file", |
| 114 | "tmp/SKP_VERSION" |
| 115 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 116 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 117 | "CHROME_HEADLESS": "1", |
| 118 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 119 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 120 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 121 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 122 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 123 | "name": "cat_file tmp/SKP_VERSION", |
| 124 | "stdout": "/path/to/tmp/" |
| 125 | }, |
| 126 | { |
| 127 | "cmd": [ |
| 128 | "[START_DIR]/skia/platform_tools/ios/bin/ios_rm", |
| 129 | "tmp/SKP_VERSION" |
| 130 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 131 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 132 | "CHROME_HEADLESS": "1", |
| 133 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 134 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 135 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 136 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 137 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 138 | "name": "rm tmp/SKP_VERSION" |
| 139 | }, |
| 140 | { |
| 141 | "cmd": [ |
| 142 | "[START_DIR]/skia/platform_tools/ios/bin/ios_rm", |
| 143 | "skps" |
| 144 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 145 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 146 | "CHROME_HEADLESS": "1", |
| 147 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 148 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 149 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 150 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 151 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 152 | "name": "rm skps" |
| 153 | }, |
| 154 | { |
| 155 | "cmd": [ |
| 156 | "[START_DIR]/skia/platform_tools/ios/bin/ios_mkdir", |
| 157 | "skps" |
| 158 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 159 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 160 | "CHROME_HEADLESS": "1", |
| 161 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 162 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 163 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 164 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 165 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 166 | "name": "mkdir skps" |
| 167 | }, |
| 168 | { |
| 169 | "cmd": [ |
| 170 | "[START_DIR]/skia/platform_tools/ios/bin/ios_push_if_needed", |
| 171 | "[START_DIR]/skp", |
| 172 | "skps" |
| 173 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 174 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 175 | "CHROME_HEADLESS": "1", |
| 176 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 177 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 178 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 179 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 180 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 181 | "name": "push_if_needed [START_DIR]/skp" |
| 182 | }, |
| 183 | { |
| 184 | "cmd": [ |
| 185 | "[START_DIR]/skia/platform_tools/ios/bin/ios_push_file", |
| 186 | "[START_DIR]/tmp/SKP_VERSION", |
| 187 | "tmp/SKP_VERSION" |
| 188 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 189 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 190 | "CHROME_HEADLESS": "1", |
| 191 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 192 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 193 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 194 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 195 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 196 | "name": "push_file [START_DIR]/tmp/SKP_VERSION" |
| 197 | }, |
| 198 | { |
| 199 | "cmd": [ |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 200 | "python", |
| 201 | "-u", |
Eric Boren | 3e2ffd7 | 2017-06-16 13:10:22 -0400 | [diff] [blame] | 202 | "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 203 | "--json-output", |
| 204 | "/path/to/tmp/json", |
| 205 | "copy", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 206 | "[START_DIR]/skia/infra/bots/assets/skimage/VERSION", |
| 207 | "/path/to/tmp/" |
| 208 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 209 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 210 | "IOS_BUNDLE_ID": "com.google.dm", |
| 211 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 212 | }, |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 213 | "infra_step": true, |
Ben Wagner | f20710e | 2018-03-19 16:52:37 -0400 | [diff] [blame] | 214 | "name": "Get skimage VERSION" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 215 | }, |
| 216 | { |
| 217 | "cmd": [ |
| 218 | "python", |
| 219 | "-u", |
Eric Boren | 3e2ffd7 | 2017-06-16 13:10:22 -0400 | [diff] [blame] | 220 | "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 221 | "--json-output", |
| 222 | "/path/to/tmp/json", |
| 223 | "copy", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 224 | "42", |
| 225 | "[START_DIR]/tmp/SK_IMAGE_VERSION" |
| 226 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 227 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 228 | "IOS_BUNDLE_ID": "com.google.dm", |
| 229 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 230 | }, |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 231 | "infra_step": true, |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 232 | "name": "write SK_IMAGE_VERSION" |
| 233 | }, |
| 234 | { |
| 235 | "cmd": [ |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 236 | "[START_DIR]/skia/platform_tools/ios/bin/ios_cat_file", |
| 237 | "tmp/SK_IMAGE_VERSION" |
| 238 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 239 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 240 | "CHROME_HEADLESS": "1", |
| 241 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 242 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 243 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 244 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 245 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 246 | "name": "cat_file tmp/SK_IMAGE_VERSION", |
| 247 | "stdout": "/path/to/tmp/" |
| 248 | }, |
| 249 | { |
| 250 | "cmd": [ |
| 251 | "[START_DIR]/skia/platform_tools/ios/bin/ios_rm", |
| 252 | "tmp/SK_IMAGE_VERSION" |
| 253 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 254 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 255 | "CHROME_HEADLESS": "1", |
| 256 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 257 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 258 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 259 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 260 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 261 | "name": "rm tmp/SK_IMAGE_VERSION" |
| 262 | }, |
| 263 | { |
| 264 | "cmd": [ |
| 265 | "[START_DIR]/skia/platform_tools/ios/bin/ios_rm", |
| 266 | "images" |
| 267 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 268 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 269 | "CHROME_HEADLESS": "1", |
| 270 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 271 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 272 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 273 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 274 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 275 | "name": "rm images" |
| 276 | }, |
| 277 | { |
| 278 | "cmd": [ |
| 279 | "[START_DIR]/skia/platform_tools/ios/bin/ios_mkdir", |
| 280 | "images" |
| 281 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 282 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 283 | "CHROME_HEADLESS": "1", |
| 284 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 285 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 286 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 287 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 288 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 289 | "name": "mkdir images" |
| 290 | }, |
| 291 | { |
| 292 | "cmd": [ |
| 293 | "[START_DIR]/skia/platform_tools/ios/bin/ios_push_if_needed", |
| 294 | "[START_DIR]/skimage", |
| 295 | "images" |
| 296 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 297 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 298 | "CHROME_HEADLESS": "1", |
| 299 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 300 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 301 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 302 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 303 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 304 | "name": "push_if_needed [START_DIR]/skimage" |
| 305 | }, |
| 306 | { |
| 307 | "cmd": [ |
| 308 | "[START_DIR]/skia/platform_tools/ios/bin/ios_push_file", |
| 309 | "[START_DIR]/tmp/SK_IMAGE_VERSION", |
| 310 | "tmp/SK_IMAGE_VERSION" |
| 311 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 312 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 313 | "CHROME_HEADLESS": "1", |
| 314 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 315 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 316 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 317 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 318 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 319 | "name": "push_file [START_DIR]/tmp/SK_IMAGE_VERSION" |
| 320 | }, |
| 321 | { |
| 322 | "cmd": [ |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 323 | "python", |
| 324 | "-u", |
Eric Boren | 3e2ffd7 | 2017-06-16 13:10:22 -0400 | [diff] [blame] | 325 | "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 326 | "--json-output", |
| 327 | "/path/to/tmp/json", |
| 328 | "copy", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 329 | "[START_DIR]/skia/infra/bots/assets/svg/VERSION", |
| 330 | "/path/to/tmp/" |
| 331 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 332 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 333 | "IOS_BUNDLE_ID": "com.google.dm", |
| 334 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 335 | }, |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 336 | "infra_step": true, |
Ben Wagner | f20710e | 2018-03-19 16:52:37 -0400 | [diff] [blame] | 337 | "name": "Get svg VERSION" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 338 | }, |
| 339 | { |
| 340 | "cmd": [ |
| 341 | "python", |
| 342 | "-u", |
Eric Boren | 3e2ffd7 | 2017-06-16 13:10:22 -0400 | [diff] [blame] | 343 | "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 344 | "--json-output", |
| 345 | "/path/to/tmp/json", |
| 346 | "copy", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 347 | "42", |
| 348 | "[START_DIR]/tmp/SVG_VERSION" |
| 349 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 350 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 351 | "IOS_BUNDLE_ID": "com.google.dm", |
| 352 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 353 | }, |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 354 | "infra_step": true, |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 355 | "name": "write SVG_VERSION" |
| 356 | }, |
| 357 | { |
| 358 | "cmd": [ |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 359 | "[START_DIR]/skia/platform_tools/ios/bin/ios_cat_file", |
| 360 | "tmp/SVG_VERSION" |
| 361 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 362 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 363 | "CHROME_HEADLESS": "1", |
| 364 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 365 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 366 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 367 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 368 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 369 | "name": "cat_file tmp/SVG_VERSION", |
| 370 | "stdout": "/path/to/tmp/" |
| 371 | }, |
| 372 | { |
| 373 | "cmd": [ |
| 374 | "[START_DIR]/skia/platform_tools/ios/bin/ios_rm", |
| 375 | "tmp/SVG_VERSION" |
| 376 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 377 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 378 | "CHROME_HEADLESS": "1", |
| 379 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 380 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 381 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 382 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 383 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 384 | "name": "rm tmp/SVG_VERSION" |
| 385 | }, |
| 386 | { |
| 387 | "cmd": [ |
| 388 | "[START_DIR]/skia/platform_tools/ios/bin/ios_rm", |
| 389 | "svgs" |
| 390 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 391 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 392 | "CHROME_HEADLESS": "1", |
| 393 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 394 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 395 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 396 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 397 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 398 | "name": "rm svgs" |
| 399 | }, |
| 400 | { |
| 401 | "cmd": [ |
| 402 | "[START_DIR]/skia/platform_tools/ios/bin/ios_mkdir", |
| 403 | "svgs" |
| 404 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 405 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 406 | "CHROME_HEADLESS": "1", |
| 407 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 408 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 409 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 410 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 411 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 412 | "name": "mkdir svgs" |
| 413 | }, |
| 414 | { |
| 415 | "cmd": [ |
| 416 | "[START_DIR]/skia/platform_tools/ios/bin/ios_push_if_needed", |
| 417 | "[START_DIR]/svg", |
| 418 | "svgs" |
| 419 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 420 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 421 | "CHROME_HEADLESS": "1", |
| 422 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 423 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 424 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 425 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 426 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 427 | "name": "push_if_needed [START_DIR]/svg" |
| 428 | }, |
| 429 | { |
| 430 | "cmd": [ |
| 431 | "[START_DIR]/skia/platform_tools/ios/bin/ios_push_file", |
| 432 | "[START_DIR]/tmp/SVG_VERSION", |
| 433 | "tmp/SVG_VERSION" |
| 434 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 435 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 436 | "CHROME_HEADLESS": "1", |
| 437 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 438 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 439 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 440 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 441 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 442 | "name": "push_file [START_DIR]/tmp/SVG_VERSION" |
| 443 | }, |
| 444 | { |
| 445 | "cmd": [ |
Eric Boren | 9599b0f | 2018-04-17 15:55:57 -0400 | [diff] [blame] | 446 | "python", |
| 447 | "-u", |
| 448 | "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 449 | "--json-output", |
| 450 | "/path/to/tmp/json", |
| 451 | "rmtree", |
| 452 | "[START_DIR]/test" |
| 453 | ], |
| 454 | "env": { |
| 455 | "IOS_BUNDLE_ID": "com.google.dm", |
| 456 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice" |
| 457 | }, |
| 458 | "infra_step": true, |
| 459 | "name": "rmtree test" |
| 460 | }, |
| 461 | { |
| 462 | "cmd": [ |
| 463 | "python", |
| 464 | "-u", |
| 465 | "RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py", |
| 466 | "--json-output", |
| 467 | "/path/to/tmp/json", |
| 468 | "ensure-directory", |
| 469 | "--mode", |
| 470 | "0777", |
| 471 | "[START_DIR]/test" |
| 472 | ], |
| 473 | "env": { |
| 474 | "IOS_BUNDLE_ID": "com.google.dm", |
| 475 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice" |
| 476 | }, |
| 477 | "infra_step": true, |
| 478 | "name": "makedirs test" |
| 479 | }, |
| 480 | { |
| 481 | "cmd": [ |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 482 | "[START_DIR]/skia/platform_tools/ios/bin/ios_rm", |
| 483 | "dm" |
| 484 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 485 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 486 | "CHROME_HEADLESS": "1", |
| 487 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 488 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 489 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 490 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 491 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 492 | "name": "rm dm" |
| 493 | }, |
| 494 | { |
| 495 | "cmd": [ |
| 496 | "[START_DIR]/skia/platform_tools/ios/bin/ios_mkdir", |
| 497 | "dm" |
| 498 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 499 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 500 | "CHROME_HEADLESS": "1", |
| 501 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 502 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 503 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 504 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 505 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 506 | "name": "mkdir dm" |
| 507 | }, |
| 508 | { |
| 509 | "cmd": [ |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 510 | "python", |
| 511 | "-u", |
Stephan Altmueller | c19ebc5 | 2017-05-30 16:39:17 -0400 | [diff] [blame] | 512 | "\nimport contextlib\nimport math\nimport socket\nimport sys\nimport time\nimport urllib2\n\nHASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'\nRETRIES = 5\nTIMEOUT = 60\nWAIT_BASE = 15\n\nsocket.setdefaulttimeout(TIMEOUT)\nfor retry in range(RETRIES):\n try:\n with contextlib.closing(\n urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:\n hashes = w.read()\n with open(sys.argv[1], 'w') as f:\n f.write(hashes)\n break\n except Exception as e:\n print 'Failed to get uninteresting hashes from %s:' % HASHES_URL\n print e\n if retry == RETRIES:\n raise\n waittime = WAIT_BASE * math.pow(2, retry)\n print 'Retry in %d seconds.' % waittime\n time.sleep(waittime)\n", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 513 | "[START_DIR]/tmp/uninteresting_hashes.txt" |
| 514 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 515 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 516 | "CHROME_HEADLESS": "1", |
| 517 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 518 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 519 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 520 | }, |
Eric Boren | a159085 | 2017-03-20 12:48:31 -0400 | [diff] [blame] | 521 | "infra_step": true, |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 522 | "name": "get uninteresting hashes", |
| 523 | "~followup_annotations": [ |
| 524 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 525 | "@@@STEP_LOG_LINE@python.inline@import contextlib@@@", |
| 526 | "@@@STEP_LOG_LINE@python.inline@import math@@@", |
| 527 | "@@@STEP_LOG_LINE@python.inline@import socket@@@", |
| 528 | "@@@STEP_LOG_LINE@python.inline@import sys@@@", |
| 529 | "@@@STEP_LOG_LINE@python.inline@import time@@@", |
| 530 | "@@@STEP_LOG_LINE@python.inline@import urllib2@@@", |
| 531 | "@@@STEP_LOG_LINE@python.inline@@@@", |
Stephan Altmueller | c19ebc5 | 2017-05-30 16:39:17 -0400 | [diff] [blame] | 532 | "@@@STEP_LOG_LINE@python.inline@HASHES_URL = 'https://storage.googleapis.com/skia-infra-gm/hash_files/gold-prod-hashes.txt'@@@", |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 533 | "@@@STEP_LOG_LINE@python.inline@RETRIES = 5@@@", |
| 534 | "@@@STEP_LOG_LINE@python.inline@TIMEOUT = 60@@@", |
| 535 | "@@@STEP_LOG_LINE@python.inline@WAIT_BASE = 15@@@", |
| 536 | "@@@STEP_LOG_LINE@python.inline@@@@", |
| 537 | "@@@STEP_LOG_LINE@python.inline@socket.setdefaulttimeout(TIMEOUT)@@@", |
| 538 | "@@@STEP_LOG_LINE@python.inline@for retry in range(RETRIES):@@@", |
| 539 | "@@@STEP_LOG_LINE@python.inline@ try:@@@", |
| 540 | "@@@STEP_LOG_LINE@python.inline@ with contextlib.closing(@@@", |
| 541 | "@@@STEP_LOG_LINE@python.inline@ urllib2.urlopen(HASHES_URL, timeout=TIMEOUT)) as w:@@@", |
| 542 | "@@@STEP_LOG_LINE@python.inline@ hashes = w.read()@@@", |
| 543 | "@@@STEP_LOG_LINE@python.inline@ with open(sys.argv[1], 'w') as f:@@@", |
| 544 | "@@@STEP_LOG_LINE@python.inline@ f.write(hashes)@@@", |
| 545 | "@@@STEP_LOG_LINE@python.inline@ break@@@", |
| 546 | "@@@STEP_LOG_LINE@python.inline@ except Exception as e:@@@", |
| 547 | "@@@STEP_LOG_LINE@python.inline@ print 'Failed to get uninteresting hashes from %s:' % HASHES_URL@@@", |
| 548 | "@@@STEP_LOG_LINE@python.inline@ print e@@@", |
| 549 | "@@@STEP_LOG_LINE@python.inline@ if retry == RETRIES:@@@", |
| 550 | "@@@STEP_LOG_LINE@python.inline@ raise@@@", |
| 551 | "@@@STEP_LOG_LINE@python.inline@ waittime = WAIT_BASE * math.pow(2, retry)@@@", |
| 552 | "@@@STEP_LOG_LINE@python.inline@ print 'Retry in %d seconds.' % waittime@@@", |
| 553 | "@@@STEP_LOG_LINE@python.inline@ time.sleep(waittime)@@@", |
| 554 | "@@@STEP_LOG_END@python.inline@@@" |
| 555 | ] |
| 556 | }, |
| 557 | { |
| 558 | "cmd": [ |
Mike Klein | 20f0078 | 2017-02-02 18:55:03 -0500 | [diff] [blame] | 559 | "[START_DIR]/skia/platform_tools/ios/bin/ios_push_file", |
| 560 | "[START_DIR]/tmp/uninteresting_hashes.txt", |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 561 | "tmp/uninteresting_hashes.txt" |
Mike Klein | 20f0078 | 2017-02-02 18:55:03 -0500 | [diff] [blame] | 562 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 563 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 564 | "CHROME_HEADLESS": "1", |
| 565 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 566 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 567 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 568 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 569 | "infra_step": true, |
Mike Klein | 20f0078 | 2017-02-02 18:55:03 -0500 | [diff] [blame] | 570 | "name": "push_file [START_DIR]/tmp/uninteresting_hashes.txt" |
| 571 | }, |
| 572 | { |
| 573 | "cmd": [ |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 574 | "python", |
| 575 | "-u", |
| 576 | "import os\nprint os.environ.get('SWARMING_BOT_ID', '')\n" |
| 577 | ], |
| 578 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 579 | "IOS_BUNDLE_ID": "com.google.dm", |
| 580 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice" |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 581 | }, |
| 582 | "name": "get swarming bot id", |
| 583 | "stdout": "/path/to/tmp/", |
| 584 | "~followup_annotations": [ |
| 585 | "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| 586 | "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_BOT_ID', '')@@@", |
| 587 | "@@@STEP_LOG_END@python.inline@@@" |
| 588 | ] |
| 589 | }, |
| 590 | { |
| 591 | "cmd": [ |
| 592 | "python", |
| 593 | "-u", |
| 594 | "import os\nprint os.environ.get('SWARMING_TASK_ID', '')\n" |
| 595 | ], |
| 596 | "env": { |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 597 | "IOS_BUNDLE_ID": "com.google.dm", |
| 598 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice" |
Eric Boren | f9aa9e5 | 2017-04-10 09:56:10 -0400 | [diff] [blame] | 599 | }, |
| 600 | "name": "get swarming task id", |
| 601 | "stdout": "/path/to/tmp/", |
| 602 | "~followup_annotations": [ |
| 603 | "@@@STEP_LOG_LINE@python.inline@import os@@@", |
| 604 | "@@@STEP_LOG_LINE@python.inline@print os.environ.get('SWARMING_TASK_ID', '')@@@", |
| 605 | "@@@STEP_LOG_END@python.inline@@@" |
| 606 | ] |
| 607 | }, |
| 608 | { |
| 609 | "cmd": [ |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 610 | "idevice-app-runner", |
| 611 | "-s", |
| 612 | "com.google.dm", |
Mike Klein | f6168ae | 2017-02-02 16:43:21 -0500 | [diff] [blame] | 613 | "--args", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 614 | "--resourcePath", |
| 615 | "resources", |
| 616 | "--skps", |
| 617 | "skps", |
| 618 | "--images", |
| 619 | "images/dm", |
| 620 | "--colorImages", |
| 621 | "images/colorspace", |
| 622 | "--nameByHash", |
| 623 | "--properties", |
| 624 | "gitHash", |
| 625 | "abc123", |
| 626 | "builder", |
Kevin Lubick | 9ef6de7 | 2017-10-15 21:05:58 -0400 | [diff] [blame] | 627 | "Test-iOS-Clang-iPadPro-GPU-GT7800-arm64-Release-All", |
Eric Boren | 9a9e387 | 2017-11-29 12:33:22 -0500 | [diff] [blame] | 628 | "buildbucket_build_id", |
| 629 | "123454321", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 630 | "swarming_bot_id", |
Ben Wagner | f835c22 | 2017-04-30 11:14:51 -0400 | [diff] [blame] | 631 | "skia-bot-123", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 632 | "swarming_task_id", |
Ben Wagner | f835c22 | 2017-04-30 11:14:51 -0400 | [diff] [blame] | 633 | "123456", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 634 | "--svgs", |
| 635 | "svgs", |
| 636 | "--key", |
| 637 | "arch", |
Ben Wagner | 6e0a6b3 | 2017-09-26 14:11:15 -0400 | [diff] [blame] | 638 | "arm64", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 639 | "compiler", |
| 640 | "Clang", |
| 641 | "configuration", |
| 642 | "Release", |
| 643 | "cpu_or_gpu", |
| 644 | "GPU", |
| 645 | "cpu_or_gpu_value", |
Ben Wagner | 6e0a6b3 | 2017-09-26 14:11:15 -0400 | [diff] [blame] | 646 | "GT7800", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 647 | "model", |
Ben Wagner | 6e0a6b3 | 2017-09-26 14:11:15 -0400 | [diff] [blame] | 648 | "iPadPro", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 649 | "os", |
| 650 | "iOS", |
| 651 | "--uninterestingHashesFile", |
| 652 | "tmp/uninteresting_hashes.txt", |
| 653 | "--writePath", |
| 654 | "dm", |
Mike Klein | 97d6a7a | 2017-07-24 10:37:19 -0400 | [diff] [blame] | 655 | "--dont_write", |
| 656 | "pdf", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 657 | "--randomProcessorTest", |
Mike Klein | df66981 | 2017-06-23 13:30:17 -0400 | [diff] [blame] | 658 | "--threads", |
| 659 | "0", |
Ben Wagner | 32fa510 | 2017-08-10 21:25:55 -0400 | [diff] [blame] | 660 | "--nocpu", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 661 | "--config", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 662 | "gles", |
| 663 | "glesdft", |
| 664 | "glessrgb", |
Brian Osman | 5e11777 | 2018-06-20 14:53:06 -0400 | [diff] [blame^] | 665 | "glesesrgb", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 666 | "--src", |
| 667 | "tests", |
| 668 | "gm", |
| 669 | "image", |
| 670 | "colorImage", |
| 671 | "svg", |
| 672 | "--blacklist", |
Chris Dalton | ecf78ac | 2017-08-15 15:43:08 -0600 | [diff] [blame] | 673 | "_", |
| 674 | "svg", |
| 675 | "_", |
| 676 | "svgparse_", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 677 | "glessrgb", |
| 678 | "image", |
| 679 | "_", |
| 680 | "_", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 681 | "gles", |
| 682 | "skp", |
| 683 | "_", |
| 684 | "_", |
| 685 | "_", |
| 686 | "image", |
| 687 | "gen_platf", |
| 688 | "rgba32abf.bmp", |
| 689 | "_", |
| 690 | "image", |
| 691 | "gen_platf", |
| 692 | "rgb24prof.bmp", |
| 693 | "_", |
| 694 | "image", |
| 695 | "gen_platf", |
| 696 | "rgb24lprof.bmp", |
| 697 | "_", |
| 698 | "image", |
| 699 | "gen_platf", |
| 700 | "8bpp-pixeldata-cropped.bmp", |
| 701 | "_", |
| 702 | "image", |
| 703 | "gen_platf", |
| 704 | "4bpp-pixeldata-cropped.bmp", |
| 705 | "_", |
| 706 | "image", |
| 707 | "gen_platf", |
| 708 | "32bpp-pixeldata-cropped.bmp", |
| 709 | "_", |
| 710 | "image", |
| 711 | "gen_platf", |
| 712 | "24bpp-pixeldata-cropped.bmp", |
| 713 | "_", |
| 714 | "image", |
| 715 | "gen_platf", |
| 716 | "frame_larger_than_image.gif", |
| 717 | "_", |
| 718 | "image", |
| 719 | "gen_platf", |
| 720 | "inc0.png", |
| 721 | "_", |
| 722 | "image", |
| 723 | "gen_platf", |
| 724 | "inc1.png", |
| 725 | "_", |
| 726 | "image", |
| 727 | "gen_platf", |
| 728 | "inc2.png", |
| 729 | "_", |
| 730 | "image", |
| 731 | "gen_platf", |
| 732 | "inc3.png", |
| 733 | "_", |
| 734 | "image", |
| 735 | "gen_platf", |
| 736 | "inc4.png", |
| 737 | "_", |
| 738 | "image", |
| 739 | "gen_platf", |
| 740 | "inc5.png", |
| 741 | "_", |
| 742 | "image", |
| 743 | "gen_platf", |
| 744 | "inc6.png", |
| 745 | "_", |
| 746 | "image", |
| 747 | "gen_platf", |
| 748 | "inc7.png", |
| 749 | "_", |
| 750 | "image", |
| 751 | "gen_platf", |
| 752 | "inc8.png", |
| 753 | "_", |
| 754 | "image", |
| 755 | "gen_platf", |
| 756 | "inc9.png", |
| 757 | "_", |
| 758 | "image", |
| 759 | "gen_platf", |
| 760 | "inc10.png", |
| 761 | "_", |
| 762 | "image", |
| 763 | "gen_platf", |
| 764 | "inc11.png", |
| 765 | "_", |
| 766 | "image", |
| 767 | "gen_platf", |
| 768 | "inc12.png", |
| 769 | "_", |
| 770 | "image", |
| 771 | "gen_platf", |
| 772 | "inc13.png", |
| 773 | "_", |
| 774 | "image", |
| 775 | "gen_platf", |
| 776 | "inc14.png", |
| 777 | "_", |
Ben Wagner | 3f67914c | 2017-11-27 13:02:25 -0500 | [diff] [blame] | 778 | "image", |
| 779 | "gen_platf", |
| 780 | "incInterlaced.gif", |
| 781 | "_", |
| 782 | "image", |
| 783 | "gen_platf", |
| 784 | "inc1.gif", |
| 785 | "_", |
| 786 | "image", |
| 787 | "gen_platf", |
| 788 | "inc0.gif", |
| 789 | "_", |
| 790 | "image", |
| 791 | "gen_platf", |
| 792 | "butterfly.gif", |
| 793 | "_", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 794 | "test", |
| 795 | "_", |
| 796 | "GrShape", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 797 | "_", |
| 798 | "image", |
| 799 | "_", |
| 800 | "interlaced1.png", |
| 801 | "_", |
| 802 | "image", |
| 803 | "_", |
| 804 | "interlaced2.png", |
| 805 | "_", |
| 806 | "image", |
| 807 | "_", |
| 808 | "interlaced3.png", |
| 809 | "_", |
| 810 | "image", |
| 811 | "_", |
| 812 | ".arw", |
| 813 | "_", |
| 814 | "image", |
| 815 | "_", |
| 816 | ".cr2", |
| 817 | "_", |
| 818 | "image", |
| 819 | "_", |
| 820 | ".dng", |
| 821 | "_", |
| 822 | "image", |
| 823 | "_", |
| 824 | ".nef", |
| 825 | "_", |
| 826 | "image", |
| 827 | "_", |
| 828 | ".nrw", |
| 829 | "_", |
| 830 | "image", |
| 831 | "_", |
| 832 | ".orf", |
| 833 | "_", |
| 834 | "image", |
| 835 | "_", |
| 836 | ".raf", |
| 837 | "_", |
| 838 | "image", |
| 839 | "_", |
| 840 | ".rw2", |
| 841 | "_", |
| 842 | "image", |
| 843 | "_", |
| 844 | ".pef", |
| 845 | "_", |
| 846 | "image", |
| 847 | "_", |
| 848 | ".srw", |
| 849 | "_", |
| 850 | "image", |
| 851 | "_", |
| 852 | ".ARW", |
| 853 | "_", |
| 854 | "image", |
| 855 | "_", |
| 856 | ".CR2", |
| 857 | "_", |
| 858 | "image", |
| 859 | "_", |
| 860 | ".DNG", |
| 861 | "_", |
| 862 | "image", |
| 863 | "_", |
| 864 | ".NEF", |
| 865 | "_", |
| 866 | "image", |
| 867 | "_", |
| 868 | ".NRW", |
| 869 | "_", |
| 870 | "image", |
| 871 | "_", |
| 872 | ".ORF", |
| 873 | "_", |
| 874 | "image", |
| 875 | "_", |
| 876 | ".RAF", |
| 877 | "_", |
| 878 | "image", |
| 879 | "_", |
| 880 | ".RW2", |
| 881 | "_", |
| 882 | "image", |
| 883 | "_", |
| 884 | ".PEF", |
| 885 | "_", |
| 886 | "image", |
| 887 | "_", |
Stephan Altmueller | e86af69 | 2017-07-21 10:12:45 -0400 | [diff] [blame] | 888 | ".SRW", |
Mike Klein | c207da8 | 2017-11-10 14:24:34 -0500 | [diff] [blame] | 889 | "--nonativeFonts", |
Stephan Altmueller | e86af69 | 2017-07-21 10:12:45 -0400 | [diff] [blame] | 890 | "--verbose" |
Mike Klein | 33b003b | 2017-02-02 14:05:11 -0500 | [diff] [blame] | 891 | ], |
Kevin Lubick | 0a51b48 | 2017-02-06 12:45:29 -0500 | [diff] [blame] | 892 | "env": { |
Kevin Lubick | 0a51b48 | 2017-02-06 12:45:29 -0500 | [diff] [blame] | 893 | "CHROME_HEADLESS": "1", |
Mike Klein | 3b36c06 | 2017-02-06 13:44:12 -0500 | [diff] [blame] | 894 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 895 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 896 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Kevin Lubick | 0a51b48 | 2017-02-06 12:45:29 -0500 | [diff] [blame] | 897 | }, |
Mike Klein | f6168ae | 2017-02-02 16:43:21 -0500 | [diff] [blame] | 898 | "name": "dm" |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 899 | }, |
| 900 | { |
Mike Klein | 20f0078 | 2017-02-02 18:55:03 -0500 | [diff] [blame] | 901 | "cmd": [ |
| 902 | "[START_DIR]/skia/platform_tools/ios/bin/ios_pull_if_needed", |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 903 | "dm", |
Eric Boren | cd0a98c | 2018-06-20 13:23:16 -0400 | [diff] [blame] | 904 | "[START_DIR]/[SWARM_OUT_DIR]" |
Mike Klein | 20f0078 | 2017-02-02 18:55:03 -0500 | [diff] [blame] | 905 | ], |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 906 | "env": { |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 907 | "CHROME_HEADLESS": "1", |
| 908 | "IOS_BUNDLE_ID": "com.google.dm", |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 909 | "IOS_MOUNT_POINT": "[START_DIR]/mnt_iosdevice", |
Eric Boren | 0f69010 | 2018-05-15 15:04:58 -0400 | [diff] [blame] | 910 | "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]" |
Eric Boren | bbb24f2 | 2017-03-21 08:20:33 -0400 | [diff] [blame] | 911 | }, |
Stephan Altmueller | 63e843d | 2017-04-25 11:38:38 -0400 | [diff] [blame] | 912 | "infra_step": true, |
Mike Klein | e0b048c | 2017-02-03 13:31:05 -0500 | [diff] [blame] | 913 | "name": "pull_if_needed dm" |
Mike Klein | 20f0078 | 2017-02-02 18:55:03 -0500 | [diff] [blame] | 914 | }, |
| 915 | { |
Eric Boren | 7e97dc0 | 2017-02-02 09:02:37 -0500 | [diff] [blame] | 916 | "name": "$result", |
| 917 | "recipe_result": null, |
| 918 | "status_code": 0 |
| 919 | } |
| 920 | ] |