Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d0155982
Commit
d0155982
authored
Apr 01, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23736 from pwittrock/flaky
Automatic merge from submit-queue node e2e retry gcr.io failures
parents
224684c4
015b9a64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
conformance_test.go
test/e2e_node/conformance_test.go
+8
-6
e2e_service.go
test/e2e_node/e2e_service.go
+1
-1
No files found.
test/e2e_node/conformance_test.go
View file @
d0155982
...
@@ -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
()
{
...
...
test/e2e_node/e2e_service.go
View file @
d0155982
...
@@ -155,7 +155,7 @@ func (es *e2eService) startServer(cmd *healthCheckCommand) error {
...
@@ -155,7 +155,7 @@ func (es *e2eService) startServer(cmd *healthCheckCommand) error {
go
func
()
{
go
func
()
{
err
:=
cmd
.
Run
()
err
:=
cmd
.
Run
()
if
err
!=
nil
{
if
err
!=
nil
{
cmdErrorChan
<-
fmt
.
Errorf
(
"%s Exited with status %v. Output:
\n
%
v
"
,
cmd
,
err
,
*
cmd
.
OutputBuffer
)
cmdErrorChan
<-
fmt
.
Errorf
(
"%s Exited with status %v. Output:
\n
%
s
"
,
cmd
,
err
,
*
cmd
.
OutputBuffer
)
}
}
close
(
cmdErrorChan
)
close
(
cmdErrorChan
)
}()
}()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment