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

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

Issue 1988133002: Use swarming in capture_archives CT task and capture archives in parallel (Closed) Base URL: https://skia.googlesource.com/buildbot@ct-4-create_pagesets
Patch Set: Try 10 per machine and no parallelism 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
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" 190 » SWARMING_POOL = "CT"
191 » // Timeouts.
191 BATCHARCHIVE_TIMEOUT = 10 * time.Minute 192 BATCHARCHIVE_TIMEOUT = 10 * time.Minute
193 XVFB_TIMEOUT = 5 * time.Minute
192 // Isolate files. 194 // Isolate files.
193 » CREATE_PAGESETS_ISOLATE = "create_pagesets.isolate" 195 » CREATE_PAGESETS_ISOLATE = "create_pagesets.isolate"
196 » CAPTURE_ARCHIVES_ISOLATE = "capture_archives.isolate"
194 ) 197 )
195 198
196 type PagesetTypeInfo struct { 199 type PagesetTypeInfo struct {
197 NumPages int 200 NumPages int
198 CSVSource string 201 CSVSource string
199 UserAgent string 202 UserAgent string
200 CaptureArchivesTimeoutSecs int 203 CaptureArchivesTimeoutSecs int
201 CreatePagesetsTimeoutSecs int 204 CreatePagesetsTimeoutSecs int
202 CaptureSKPsTimeoutSecs int 205 CaptureSKPsTimeoutSecs int
203 RunChromiumPerfTimeoutSecs int 206 RunChromiumPerfTimeoutSecs int
204 Description string 207 Description string
205 } 208 }
206 209
207 var ( 210 var (
208 Master = fmt.Sprintf(WORKER_NAME_TEMPLATE, 101) 211 Master = fmt.Sprintf(WORKER_NAME_TEMPLATE, 101)
209 CtUser = "chrome-bot" 212 CtUser = "chrome-bot"
210 Slaves = GetCTWorkersProd() 213 Slaves = GetCTWorkersProd()
211 GSBucketName = "cluster-telemetry" 214 GSBucketName = "cluster-telemetry"
212 215
213 // Email address of cluster telemetry admins. They will be notified ever ytime 216 // Email address of cluster telemetry admins. They will be notified ever ytime
214 // a task has started and completed. 217 // a task has started and completed.
215 CtAdmins = []string{"rmistry@google.com", "benjaminwagner@google.com"} 218 CtAdmins = []string{"rmistry@google.com", "benjaminwagner@google.com"}
216 219
217 // Names of local directories and files. 220 // Names of local directories and files.
218 StorageDir = filepath.Join("/", "b", STORAGE_DIR_NAME) 221 StorageDir = filepath.Join("/", "b", STORAGE_DIR_NAME)
219 RepoDir = filepath.Join("/", "b", REPO_DIR_NAME) 222 RepoDir = filepath.Join("/", "b", REPO_DIR_NAME)
223 DepotToolsDir = filepath.Join("/", "b", "depot_tools")
220 GomaDir = filepath.Join("/", "b", "build", "goma") 224 GomaDir = filepath.Join("/", "b", "build", "goma")
221 ChromiumBuildsDir = filepath.Join(StorageDir, CHROMIUM_BUILDS_DIR_NAM E) 225 ChromiumBuildsDir = filepath.Join(StorageDir, CHROMIUM_BUILDS_DIR_NAM E)
222 ChromiumSrcDir = filepath.Join(StorageDir, "chromium", "src") 226 ChromiumSrcDir = filepath.Join(StorageDir, "chromium", "src")
223 TelemetryBinariesDir = filepath.Join(ChromiumSrcDir, "tools", "perf") 227 TelemetryBinariesDir = filepath.Join(ChromiumSrcDir, "tools", "perf")
224 TelemetrySrcDir = filepath.Join(ChromiumSrcDir, "tools", "telemetry ") 228 TelemetrySrcDir = filepath.Join(ChromiumSrcDir, "tools", "telemetry ")
225 CatapultSrcDir = filepath.Join(ChromiumSrcDir, "third_party", "cat apult") 229 CatapultSrcDir = filepath.Join(ChromiumSrcDir, "third_party", "cat apult")
226 TaskFileDir = filepath.Join(StorageDir, "current_task") 230 TaskFileDir = filepath.Join(StorageDir, "current_task")
227 ClientSecretPath = filepath.Join(StorageDir, "client_secret.json") 231 ClientSecretPath = filepath.Join(StorageDir, "client_secret.json")
228 GSTokenPath = filepath.Join(StorageDir, "google_storage_token.d ata") 232 GSTokenPath = filepath.Join(StorageDir, "google_storage_token.d ata")
229 EmailTokenPath = filepath.Join(StorageDir, "email.data") 233 EmailTokenPath = filepath.Join(StorageDir, "email.data")
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 335
332 SupportedPageSetsToDesc = map[string]string{ 336 SupportedPageSetsToDesc = map[string]string{
333 PLATFORM_LINUX: "Linux (100 Ubuntu12.04 machines)", 337 PLATFORM_LINUX: "Linux (100 Ubuntu12.04 machines)",
334 PLATFORM_ANDROID: "Android (100 N5 devices)", 338 PLATFORM_ANDROID: "Android (100 N5 devices)",
335 } 339 }
336 ) 340 )
337 341
338 func NumWorkers() int { 342 func NumWorkers() int {
339 return len(Slaves) 343 return len(Slaves)
340 } 344 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698