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
2866ae7b
Commit
2866ae7b
authored
Jan 22, 2016
by
David Oppenheimer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20037 from davidopp/flake1
Add time logging to runReplicationControllerTest to help debug timeouts in the future
parents
6397b781
a8e742f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
integration.go
cmd/integration/integration.go
+8
-2
No files found.
cmd/integration/integration.go
View file @
2866ae7b
...
...
@@ -435,11 +435,14 @@ containers:
}
func
runReplicationControllerTest
(
c
*
client
.
Client
)
{
t
:=
time
.
Now
()
clientAPIVersion
:=
c
.
APIVersion
()
.
String
()
data
,
err
:=
ioutil
.
ReadFile
(
"cmd/integration/"
+
clientAPIVersion
+
"-controller.json"
)
if
err
!=
nil
{
glog
.
Fatalf
(
"Unexpected error: %v"
,
err
)
}
glog
.
Infof
(
"Done reading config file, took %v"
,
time
.
Since
(
t
))
t
=
time
.
Now
()
var
controller
api
.
ReplicationController
if
err
:=
api
.
Scheme
.
DecodeInto
(
data
,
&
controller
);
err
!=
nil
{
glog
.
Fatalf
(
"Unexpected error: %v"
,
err
)
...
...
@@ -450,7 +453,8 @@ func runReplicationControllerTest(c *client.Client) {
if
err
!=
nil
{
glog
.
Fatalf
(
"Unexpected error: %v"
,
err
)
}
glog
.
Infof
(
"Done creating replication controllers"
)
glog
.
Infof
(
"Done creating replication controllers, took %v"
,
time
.
Since
(
t
))
t
=
time
.
Now
()
// In practice the controller doesn't need 60s to create a handful of pods, but network latencies on CI
// systems have been observed to vary unpredictably, so give the controller enough time to create pods.
...
...
@@ -458,6 +462,8 @@ func runReplicationControllerTest(c *client.Client) {
if
err
:=
wait
.
Poll
(
time
.
Second
,
longTestTimeout
,
client
.
ControllerHasDesiredReplicas
(
c
,
updated
));
err
!=
nil
{
glog
.
Fatalf
(
"FAILED: pods never created %v"
,
err
)
}
glog
.
Infof
(
"Done creating replicas, took %v"
,
time
.
Since
(
t
))
t
=
time
.
Now
()
// Poll till we can retrieve the status of all pods matching the given label selector from their nodes.
// This involves 3 operations:
...
...
@@ -469,7 +475,7 @@ func runReplicationControllerTest(c *client.Client) {
glog
.
Fatalf
(
"FAILED: pods never started running %v"
,
err
)
}
glog
.
Infof
(
"Pods
created"
)
glog
.
Infof
(
"Pods
verified on nodes, took %v"
,
time
.
Since
(
t
)
)
}
func
runAPIVersionsTest
(
c
*
client
.
Client
)
{
...
...
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