Commit 015b9a64 authored by Phillip Wittrock's avatar Phillip Wittrock

Retry failed image pulls. Closes #23669.

parent 8002e10f
...@@ -28,8 +28,10 @@ import ( ...@@ -28,8 +28,10 @@ import (
) )
const ( const (
retryTimeout = 4 * time.Minute retryTimeout = time.Minute * 4
pollInterval = time.Second * 5 pollInterval = time.Second * 5
imageRetryTimeout = time.Minute * 2
imagePullInterval = time.Second * 15
) )
var _ = Describe("Container Conformance Test", func() { var _ = Describe("Container Conformance Test", func() {
...@@ -55,10 +57,10 @@ var _ = Describe("Container Conformance Test", func() { ...@@ -55,10 +57,10 @@ var _ = Describe("Container Conformance Test", func() {
conformImages = append(conformImages, image) conformImages = append(conformImages, image)
} }
for _, image := range conformImages { for _, image := range conformImages {
if err := image.Pull(); err != nil { // Pulling images from gcr.io is flaky, so retry failures
Expect(err).NotTo(HaveOccurred()) Eventually(func() error {
break return image.Pull()
} }, imageRetryTimeout, imagePullInterval).ShouldNot(HaveOccurred())
} }
}) })
It("it should list pulled images [Conformance]", func() { It("it should list pulled images [Conformance]", func() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment