Skip to content

Commit 04b2f67

Browse files
author
Aaron Schlesinger
committed
fix(pkg/gitreceive/build.go): add more logs before starting the pod end wait and the object storage poll operations
1 parent 48d257f commit 04b2f67

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

pkg/gitreceive/build.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,13 @@ func build(conf *Config, s3Client *storage.Client, kubeClient *client.Client, fs
192192
}
193193
log.Debug("size of streamed logs %v", size)
194194

195+
log.Debug(
196+
"Waiting for %s/%s pod to end. Checking every %s for %s",
197+
newPod.Namespace,
198+
newPod.Name,
199+
conf.BuilderPodTickDuration(),
200+
conf.BuilderPodWaitDuration(),
201+
)
195202
// check the state and exit code of the build pod.
196203
// if the code is not 0 return error
197204
if err := waitForPodEnd(kubeClient, newPod.Namespace, newPod.Name, conf.BuilderPodTickDuration(), conf.BuilderPodWaitDuration()); err != nil {
@@ -209,7 +216,13 @@ func build(conf *Config, s3Client *storage.Client, kubeClient *client.Client, fs
209216
}
210217
}
211218

212-
log.Debug("Polling the S3 server every %d for %d for the resultant slug", conf.ObjectStorageTickDuration(), conf.ObjectStorageWaitDuration())
219+
log.Debug(
220+
"Polling the S3 server every %d for %d for the resultant slug at %s/%s",
221+
conf.ObjectStorageTickDuration(),
222+
conf.ObjectStorageWaitDuration(),
223+
conf.Bucket,
224+
slugBuilderInfo.PushKey(),
225+
)
213226
// poll the s3 server to ensure the slug exists
214227
err = wait.PollImmediate(conf.ObjectStorageTickDuration(), conf.ObjectStorageWaitDuration(), func() (bool, error) {
215228
exists, err := storage.ObjectExists(s3Client, conf.Bucket, slugBuilderInfo.PushKey())

0 commit comments

Comments
 (0)