Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Side by Side Diff: ct/go/util/constants.go

Issue 1990873002: Use swarming in create_pagesets CT task (Closed) Base URL: https://skia.googlesource.com/buildbot@ct-3-swarming-timeouts
Patch Set: Address comment Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ct/go/master_scripts/create_pagesets_on_workers/main.go ('k') | ct/go/util/util.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « ct/go/master_scripts/create_pagesets_on_workers/main.go ('k') | ct/go/util/util.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698