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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 MASTER_SCRIPT_TIMEOUT_PADDING | 177 MASTER_SCRIPT_TIMEOUT_PADDING |
178 | 178 |
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 |
| 188 // Swarming constants. |
| 189 SWARMING_DIR_NAME = "swarming" |
187 ) | 190 ) |
188 | 191 |
189 type PagesetTypeInfo struct { | 192 type PagesetTypeInfo struct { |
190 NumPages int | 193 NumPages int |
191 CSVSource string | 194 CSVSource string |
192 UserAgent string | 195 UserAgent string |
193 CaptureArchivesTimeoutSecs int | 196 CaptureArchivesTimeoutSecs int |
194 CreatePagesetsTimeoutSecs int | 197 CreatePagesetsTimeoutSecs int |
195 CaptureSKPsTimeoutSecs int | 198 CaptureSKPsTimeoutSecs int |
196 RunChromiumPerfTimeoutSecs int | 199 RunChromiumPerfTimeoutSecs int |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 | 327 |
325 SupportedPageSetsToDesc = map[string]string{ | 328 SupportedPageSetsToDesc = map[string]string{ |
326 PLATFORM_LINUX: "Linux (100 Ubuntu12.04 machines)", | 329 PLATFORM_LINUX: "Linux (100 Ubuntu12.04 machines)", |
327 PLATFORM_ANDROID: "Android (100 N5 devices)", | 330 PLATFORM_ANDROID: "Android (100 N5 devices)", |
328 } | 331 } |
329 ) | 332 ) |
330 | 333 |
331 func NumWorkers() int { | 334 func NumWorkers() int { |
332 return len(Slaves) | 335 return len(Slaves) |
333 } | 336 } |
OLD | NEW |