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
4f3e3c62
Commit
4f3e3c62
authored
Sep 13, 2017
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't crash density test on missing a single measurement
parent
991afb24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
density.go
test/e2e/scalability/density.go
+11
-4
No files found.
test/e2e/scalability/density.go
View file @
4f3e3c62
...
@@ -58,6 +58,9 @@ const (
...
@@ -58,6 +58,9 @@ const (
// Maximum container failures this test tolerates before failing.
// Maximum container failures this test tolerates before failing.
var
MaxContainerFailures
=
0
var
MaxContainerFailures
=
0
// Maximum no. of missing measurements related to pod-startup that the test tolerates.
var
MaxMissingPodStartupMeasurements
=
0
type
DensityTestConfig
struct
{
type
DensityTestConfig
struct
{
Configs
[]
testutils
.
RunObjectConfig
Configs
[]
testutils
.
RunObjectConfig
ClientSets
[]
clientset
.
Interface
ClientSets
[]
clientset
.
Interface
...
@@ -310,6 +313,7 @@ var _ = SIGDescribe("Density", func() {
...
@@ -310,6 +313,7 @@ var _ = SIGDescribe("Density", func() {
var
masters
sets
.
String
var
masters
sets
.
String
testCaseBaseName
:=
"density"
testCaseBaseName
:=
"density"
missingMeasurements
:=
0
// Gathers data prior to framework namespace teardown
// Gathers data prior to framework namespace teardown
AfterEach
(
func
()
{
AfterEach
(
func
()
{
...
@@ -345,6 +349,9 @@ var _ = SIGDescribe("Density", func() {
...
@@ -345,6 +349,9 @@ var _ = SIGDescribe("Density", func() {
}
}
framework
.
PrintSummaries
(
summaries
,
testCaseBaseName
)
framework
.
PrintSummaries
(
summaries
,
testCaseBaseName
)
// Fail if more than the allowed threshold of measurements were missing in the latencyTest.
Expect
(
missingMeasurements
<=
MaxMissingPodStartupMeasurements
)
.
To
(
Equal
(
true
))
})
})
options
:=
framework
.
FrameworkOptions
{
options
:=
framework
.
FrameworkOptions
{
...
@@ -717,23 +724,23 @@ var _ = SIGDescribe("Density", func() {
...
@@ -717,23 +724,23 @@ var _ = SIGDescribe("Density", func() {
sched
,
ok
:=
scheduleTimes
[
name
]
sched
,
ok
:=
scheduleTimes
[
name
]
if
!
ok
{
if
!
ok
{
framework
.
Logf
(
"Failed to find schedule time for %v"
,
name
)
framework
.
Logf
(
"Failed to find schedule time for %v"
,
name
)
missingMeasurements
++
}
}
Expect
(
ok
)
.
To
(
Equal
(
true
))
run
,
ok
:=
runTimes
[
name
]
run
,
ok
:=
runTimes
[
name
]
if
!
ok
{
if
!
ok
{
framework
.
Logf
(
"Failed to find run time for %v"
,
name
)
framework
.
Logf
(
"Failed to find run time for %v"
,
name
)
missingMeasurements
++
}
}
Expect
(
ok
)
.
To
(
Equal
(
true
))
watch
,
ok
:=
watchTimes
[
name
]
watch
,
ok
:=
watchTimes
[
name
]
if
!
ok
{
if
!
ok
{
framework
.
Logf
(
"Failed to find watch time for %v"
,
name
)
framework
.
Logf
(
"Failed to find watch time for %v"
,
name
)
missingMeasurements
++
}
}
Expect
(
ok
)
.
To
(
Equal
(
true
))
node
,
ok
:=
nodeNames
[
name
]
node
,
ok
:=
nodeNames
[
name
]
if
!
ok
{
if
!
ok
{
framework
.
Logf
(
"Failed to find node for %v"
,
name
)
framework
.
Logf
(
"Failed to find node for %v"
,
name
)
missingMeasurements
++
}
}
Expect
(
ok
)
.
To
(
Equal
(
true
))
scheduleLag
=
append
(
scheduleLag
,
framework
.
PodLatencyData
{
Name
:
name
,
Node
:
node
,
Latency
:
sched
.
Time
.
Sub
(
create
.
Time
)})
scheduleLag
=
append
(
scheduleLag
,
framework
.
PodLatencyData
{
Name
:
name
,
Node
:
node
,
Latency
:
sched
.
Time
.
Sub
(
create
.
Time
)})
startupLag
=
append
(
startupLag
,
framework
.
PodLatencyData
{
Name
:
name
,
Node
:
node
,
Latency
:
run
.
Time
.
Sub
(
sched
.
Time
)})
startupLag
=
append
(
startupLag
,
framework
.
PodLatencyData
{
Name
:
name
,
Node
:
node
,
Latency
:
run
.
Time
.
Sub
(
sched
.
Time
)})
...
...
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