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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Fix Archives | 179 // Fix Archives |
180 // Setting a 1 day timeout since it may take a while to validate archive
s. | 180 // Setting a 1 day timeout since it may take a while to validate archive
s. |
181 FIX_ARCHIVES_TIMEOUT = 1 * 24 * time.Hour | 181 FIX_ARCHIVES_TIMEOUT = 1 * 24 * time.Hour |
182 | 182 |
183 // Poller | 183 // Poller |
184 MAKE_ALL_TIMEOUT = 15 * time.Minute | 184 MAKE_ALL_TIMEOUT = 15 * time.Minute |
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" |
| 191 » BATCHARCHIVE_TIMEOUT = 10 * time.Minute |
| 192 » // Isolate files. |
| 193 » CREATE_PAGESETS_ISOLATE = "create_pagesets.isolate" |
190 ) | 194 ) |
191 | 195 |
192 type PagesetTypeInfo struct { | 196 type PagesetTypeInfo struct { |
193 NumPages int | 197 NumPages int |
194 CSVSource string | 198 CSVSource string |
195 UserAgent string | 199 UserAgent string |
196 CaptureArchivesTimeoutSecs int | 200 CaptureArchivesTimeoutSecs int |
197 CreatePagesetsTimeoutSecs int | 201 CreatePagesetsTimeoutSecs int |
198 CaptureSKPsTimeoutSecs int | 202 CaptureSKPsTimeoutSecs int |
199 RunChromiumPerfTimeoutSecs int | 203 RunChromiumPerfTimeoutSecs int |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 331 |
328 SupportedPageSetsToDesc = map[string]string{ | 332 SupportedPageSetsToDesc = map[string]string{ |
329 PLATFORM_LINUX: "Linux (100 Ubuntu12.04 machines)", | 333 PLATFORM_LINUX: "Linux (100 Ubuntu12.04 machines)", |
330 PLATFORM_ANDROID: "Android (100 N5 devices)", | 334 PLATFORM_ANDROID: "Android (100 N5 devices)", |
331 } | 335 } |
332 ) | 336 ) |
333 | 337 |
334 func NumWorkers() int { | 338 func NumWorkers() int { |
335 return len(Slaves) | 339 return len(Slaves) |
336 } | 340 } |
OLD | NEW |