OLD | NEW |
1 package util | 1 package util |
2 | 2 |
3 import ( | 3 import ( |
4 "fmt" | 4 "fmt" |
5 "path/filepath" | 5 "path/filepath" |
6 "time" | 6 "time" |
7 ) | 7 ) |
8 | 8 |
9 const ( | 9 const ( |
10 NUM_WORKERS_PROD int = 100 | 10 NUM_WORKERS_PROD int = 100 |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 WEBHOOK_SALT_MSG = `For prod, set this file to the value of GCE metadata
key webhook_request_salt or call webhook.MustInitRequestSaltFromMetadata() if r
unning in GCE. For testing, run 'echo -n "notverysecret" | base64 -w 0 > /b/stor
age/webhook_salt.data' or call frontend.InitForTesting().` | 186 WEBHOOK_SALT_MSG = `For prod, set this file to the value of GCE metadata
key webhook_request_salt or call webhook.MustInitRequestSaltFromMetadata() if r
unning in GCE. For testing, run 'echo -n "notverysecret" | base64 -w 0 > /b/stor
age/webhook_salt.data' or call frontend.InitForTesting().` |
187 | 187 |
188 // Swarming constants. | 188 // Swarming constants. |
189 SWARMING_DIR_NAME = "swarming" | 189 SWARMING_DIR_NAME = "swarming" |
190 SWARMING_POOL = "CT" | 190 SWARMING_POOL = "CT" |
191 // Timeouts. | 191 // Timeouts. |
192 BATCHARCHIVE_TIMEOUT = 10 * time.Minute | 192 BATCHARCHIVE_TIMEOUT = 10 * time.Minute |
193 XVFB_TIMEOUT = 5 * time.Minute | 193 XVFB_TIMEOUT = 5 * time.Minute |
194 // Isolate files. | 194 // Isolate files. |
195 » CREATE_PAGESETS_ISOLATE = "create_pagesets.isolate" | 195 » CREATE_PAGESETS_ISOLATE = "create_pagesets.isolate" |
196 » CAPTURE_ARCHIVES_ISOLATE = "capture_archives.isolate" | 196 » CAPTURE_ARCHIVES_ISOLATE = "capture_archives.isolate" |
| 197 » CAPTURE_SKPS_ISOLATE = "capture_skps.isolate" |
| 198 » CAPTURE_SKPS_FROM_PDFS_ISOLATE = "capture_skps_from_pdfs.isolate" |
197 ) | 199 ) |
198 | 200 |
199 type PagesetTypeInfo struct { | 201 type PagesetTypeInfo struct { |
200 NumPages int | 202 NumPages int |
201 CSVSource string | 203 CSVSource string |
202 UserAgent string | 204 UserAgent string |
203 CaptureArchivesTimeoutSecs int | 205 CaptureArchivesTimeoutSecs int |
204 CreatePagesetsTimeoutSecs int | 206 CreatePagesetsTimeoutSecs int |
205 CaptureSKPsTimeoutSecs int | 207 CaptureSKPsTimeoutSecs int |
206 RunChromiumPerfTimeoutSecs int | 208 RunChromiumPerfTimeoutSecs int |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 | 337 |
336 SupportedPageSetsToDesc = map[string]string{ | 338 SupportedPageSetsToDesc = map[string]string{ |
337 PLATFORM_LINUX: "Linux (100 Ubuntu12.04 machines)", | 339 PLATFORM_LINUX: "Linux (100 Ubuntu12.04 machines)", |
338 PLATFORM_ANDROID: "Android (100 N5 devices)", | 340 PLATFORM_ANDROID: "Android (100 N5 devices)", |
339 } | 341 } |
340 ) | 342 ) |
341 | 343 |
342 func NumWorkers() int { | 344 func NumWorkers() int { |
343 return len(Slaves) | 345 return len(Slaves) |
344 } | 346 } |
OLD | NEW |