File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,13 @@ func startFlightRecorder() (http.HandlerFunc, error) {
113
113
return
114
114
}
115
115
116
+ // Some of the CI builders can be quite heavily loaded.
117
+ // Give them an extra grace period.
118
+ timeout := 10 * time .Second
119
+ if os .Getenv ("GO_BUILDER_NAME" ) != "" {
120
+ timeout = 1 * time .Minute
121
+ }
122
+
116
123
select {
117
124
case addr := <- urlC :
118
125
// Success! Send a redirect to the new location.
@@ -122,8 +129,8 @@ func startFlightRecorder() (http.HandlerFunc, error) {
122
129
case <- r .Context ().Done ():
123
130
errorf ("canceled" )
124
131
125
- case <- time .After (10 * time . Second ):
126
- errorf ("trace viewer failed to start" , err )
132
+ case <- time .After (timeout ):
133
+ errorf ("trace viewer failed to start within %v " , timeout )
127
134
}
128
135
}, nil
129
136
}
You can’t perform that action at this time.
0 commit comments