@@ -30,7 +30,7 @@ func (b *Builder) Acquire(l progress.Logger, project string) (string, error) {
3030 var resp * api.InitResponse
3131 var err error
3232
33- err = progress .Wrap ("[depot] provisioning builder builder" , l , func (sub progress.SubLogger ) error {
33+ err = progress .Wrap ("[depot] starting builder" , l , func (sub progress.SubLogger ) error {
3434 count := 0
3535 for {
3636 resp , err = b .depot .InitBuild (project )
@@ -39,15 +39,19 @@ func (b *Builder) Acquire(l progress.Logger, project string) (string, error) {
3939 }
4040
4141 if resp .OK && resp .Busy {
42- sub .Log (2 , []byte ("Builder is busy, waiting for concurrency..." ))
42+ if count == 0 {
43+ sub .Log (2 , []byte ("Builder is busy, waiting for current build to complete...\n " ))
44+ } else if count % 10 == 0 {
45+ sub .Log (2 , []byte ("Still waiting for current build to complete...\n " ))
46+ }
4347 time .Sleep (1 * time .Second )
4448 } else if resp .OK {
4549 break
4650 }
4751
4852 count += 1
49- if count > 30 {
50- return errors .New ("timeout waiting for builder" )
53+ if count > 30 * 60 {
54+ return errors .New ("Unable to acquire builder after 30 minutes " )
5155 }
5256 }
5357
@@ -68,7 +72,7 @@ func (b *Builder) Acquire(l progress.Logger, project string) (string, error) {
6872 proxy .Start ()
6973 addr = proxy .Addr ().String ()
7074
71- sub .Log (0 , []byte ("Waiting for connection to BuildKit " + resp .ID ))
75+ sub .Log (0 , []byte ("Waiting for connection to BuildKit " + resp .ID + " \n " ))
7276 httpClient := & http.Client {}
7377
7478 count := 0
@@ -98,7 +102,7 @@ func (b *Builder) Acquire(l progress.Logger, project string) (string, error) {
98102 time .Sleep (time .Second )
99103 }
100104
101- sub .Log (2 , []byte ("Waiting for BuildKit to report ready..." ))
105+ sub .Log (2 , []byte ("Waiting for BuildKit to report ready...\n " ))
102106
103107 count = 0
104108
0 commit comments