You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/coordinator/coordinator.go
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ import (
60
60
"golang.org/x/build/gerrit"
61
61
"golang.org/x/build/internal/buildgo"
62
62
"golang.org/x/build/internal/buildstats"
63
+
"golang.org/x/build/internal/cloud"
63
64
"golang.org/x/build/internal/coordinator/pool"
64
65
"golang.org/x/build/internal/secret"
65
66
"golang.org/x/build/internal/singleflight"
@@ -115,6 +116,7 @@ var (
115
116
mode=flag.String("mode", "", "Valid modes are 'dev', 'prod', or '' for auto-detect. dev means localhost development, not be confused with staging on go-dashboard-dev, which is still the 'prod' mode.")
116
117
buildEnvName=flag.String("env", "", "The build environment configuration to use. Not required if running on GCE.")
117
118
devEnableGCE=flag.Bool("dev_gce", false, "Whether or not to enable the GCE pool when in dev mode. The pool is enabled by default in prod mode.")
119
+
devEnableEC2=flag.Bool("dev_ec2", false, "Whether or not to enable the EC2 pool when in dev mode. The pool is enabled by default in prod mode.")
118
120
shouldRunBench=flag.Bool("run_bench", false, "Whether or not to run benchmarks on trybot commits. Override by GCE project attribute 'farmer-run-bench'.")
119
121
perfServer=flag.String("perf_server", "", "Upload benchmark results to `server`. Overrides buildenv default for testing.")
120
122
)
@@ -296,6 +298,13 @@ func main() {
296
298
log.Printf("Kube support disabled due to error initializing Kubernetes: %v", err)
297
299
}
298
300
301
+
if*mode=="prod"|| (*mode=="dev"&&*devEnableEC2) {
302
+
// TODO(golang.org/issues/38337) the coordinator will use a package scoped pool
303
+
// until the coordinator is refactored to not require them.
0 commit comments