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
bd49a342
Commit
bd49a342
authored
Dec 18, 2015
by
Isaac Hollander McCreery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add [Disruptive] and [Serial] labels to appropriate tests
And use for partitioning; makes progress toward 10548
parent
140dfccd
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
17 additions
and
26 deletions
+17
-26
e2e.sh
hack/jenkins/e2e.sh
+6
-15
daemon_restart.go
test/e2e/daemon_restart.go
+1
-1
etcd_failure.go
test/e2e/etcd_failure.go
+1
-1
ingress.go
test/e2e/ingress.go
+1
-1
kubelet_perf.go
test/e2e/kubelet_perf.go
+1
-1
monitor_resources.go
test/e2e/monitor_resources.go
+1
-1
nodeoutofdisk.go
test/e2e/nodeoutofdisk.go
+1
-1
reboot.go
test/e2e/reboot.go
+1
-1
resize_nodes.go
test/e2e/resize_nodes.go
+1
-1
scheduler_predicates.go
test/e2e/scheduler_predicates.go
+1
-1
service.go
test/e2e/service.go
+2
-2
No files found.
hack/jenkins/e2e.sh
View file @
bd49a342
...
@@ -325,12 +325,7 @@ AWS_REQUIRED_SKIP_TESTS=(
...
@@ -325,12 +325,7 @@ AWS_REQUIRED_SKIP_TESTS=(
# Tests which kills or restarts components and/or nodes.
# Tests which kills or restarts components and/or nodes.
DISRUPTIVE_TESTS
=(
DISRUPTIVE_TESTS
=(
"DaemonRestart"
"
\[
Disruptive
\]
"
"Etcd
\s
failure"
"Nodes
\s
Network"
"Nodes
\s
Resize"
"Reboot"
"Services.*restarting"
)
)
# The following tests are known to be flaky, and are thus run only in their own
# The following tests are known to be flaky, and are thus run only in their own
...
@@ -366,16 +361,12 @@ GCE_SLOW_TESTS=(
...
@@ -366,16 +361,12 @@ GCE_SLOW_TESTS=(
)
)
# Tests which are not able to be run in parallel.
# Tests which are not able to be run in parallel.
#
# TODO(ihmccreery) I'd like to get these combined with DISRUPTIVE_TESTS.
GCE_PARALLEL_SKIP_TESTS
=(
GCE_PARALLEL_SKIP_TESTS
=(
"GCE
\s
L7
\s
LoadBalancer
\s
Controller"
# namespaced watch flakes, issue: #17805
"
\[
Serial
\]
"
"Nodes
\s
Network"
"
\[
Disruptive
\]
"
"MaxPods"
)
"Resource
\s
usage
\s
of
\s
system
\s
containers"
"SchedulerPredicates"
"resource
\s
usage
\s
tracking"
"NodeOutOfDisk"
"
${
DISRUPTIVE_TESTS
[@]
}
"
)
# Tests which are known to be flaky when run in parallel.
# Tests which are known to be flaky when run in parallel.
GCE_PARALLEL_FLAKY_TESTS
=(
GCE_PARALLEL_FLAKY_TESTS
=(
...
...
test/e2e/daemon_restart.go
View file @
bd49a342
...
@@ -183,7 +183,7 @@ func getContainerRestarts(c *client.Client, ns string, labelSelector labels.Sele
...
@@ -183,7 +183,7 @@ func getContainerRestarts(c *client.Client, ns string, labelSelector labels.Sele
return
failedContainers
,
containerRestartNodes
.
List
()
return
failedContainers
,
containerRestartNodes
.
List
()
}
}
var
_
=
Describe
(
"DaemonRestart"
,
func
()
{
var
_
=
Describe
(
"DaemonRestart
[Disruptive]
"
,
func
()
{
framework
:=
NewFramework
(
"daemonrestart"
)
framework
:=
NewFramework
(
"daemonrestart"
)
rcName
:=
"daemonrestart"
+
strconv
.
Itoa
(
numPods
)
+
"-"
+
string
(
util
.
NewUUID
())
rcName
:=
"daemonrestart"
+
strconv
.
Itoa
(
numPods
)
+
"-"
+
string
(
util
.
NewUUID
())
...
...
test/e2e/etcd_failure.go
View file @
bd49a342
...
@@ -27,7 +27,7 @@ import (
...
@@ -27,7 +27,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Etcd failure"
,
func
()
{
var
_
=
Describe
(
"Etcd failure
[Disruptive]
"
,
func
()
{
var
skipped
bool
var
skipped
bool
framework
:=
NewFramework
(
"etcd-failure"
)
framework
:=
NewFramework
(
"etcd-failure"
)
...
...
test/e2e/ingress.go
View file @
bd49a342
...
@@ -376,7 +376,7 @@ func (cont *IngressController) Cleanup(del bool) error {
...
@@ -376,7 +376,7 @@ func (cont *IngressController) Cleanup(del bool) error {
return
fmt
.
Errorf
(
errMsg
)
return
fmt
.
Errorf
(
errMsg
)
}
}
var
_
=
Describe
(
"GCE L7 LoadBalancer Controller"
,
func
()
{
var
_
=
Describe
(
"GCE L7 LoadBalancer Controller
[Serial]
"
,
func
()
{
// These variables are initialized after framework's beforeEach.
// These variables are initialized after framework's beforeEach.
var
ns
string
var
ns
string
var
addonDir
string
var
addonDir
string
...
...
test/e2e/kubelet_perf.go
View file @
bd49a342
...
@@ -138,7 +138,7 @@ func verifyCPULimits(expected containersCPUSummary, actual nodesCPUSummary) {
...
@@ -138,7 +138,7 @@ func verifyCPULimits(expected containersCPUSummary, actual nodesCPUSummary) {
}
}
}
}
var
_
=
Describe
(
"Kubelet"
,
func
()
{
var
_
=
Describe
(
"Kubelet
[Serial]
"
,
func
()
{
var
nodeNames
sets
.
String
var
nodeNames
sets
.
String
framework
:=
NewFramework
(
"kubelet-perf"
)
framework
:=
NewFramework
(
"kubelet-perf"
)
var
rm
*
resourceMonitor
var
rm
*
resourceMonitor
...
...
test/e2e/monitor_resources.go
View file @
bd49a342
...
@@ -72,7 +72,7 @@ func computeAverage(sliceOfUsages []resourceUsagePerContainer) (result resourceU
...
@@ -72,7 +72,7 @@ func computeAverage(sliceOfUsages []resourceUsagePerContainer) (result resourceU
// This tests does nothing except checking current resource usage of containers defined in kubelet_stats systemContainers variable.
// This tests does nothing except checking current resource usage of containers defined in kubelet_stats systemContainers variable.
// Test fails if an average container resource consumption over datapointAmount tries exceeds amount defined in allowedUsage.
// Test fails if an average container resource consumption over datapointAmount tries exceeds amount defined in allowedUsage.
var
_
=
Describe
(
"Resource usage of system containers"
,
func
()
{
var
_
=
Describe
(
"Resource usage of system containers
[Serial]
"
,
func
()
{
var
c
*
client
.
Client
var
c
*
client
.
Client
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
var
err
error
var
err
error
...
...
test/e2e/nodeoutofdisk.go
View file @
bd49a342
...
@@ -63,7 +63,7 @@ const (
...
@@ -63,7 +63,7 @@ const (
// choose that node to be node with index 1.
// choose that node to be node with index 1.
// 7. Observe that the pod in pending status schedules on that node.
// 7. Observe that the pod in pending status schedules on that node.
//
//
var
_
=
Describe
(
"NodeOutOfDisk"
,
func
()
{
var
_
=
Describe
(
"NodeOutOfDisk
[Serial]
"
,
func
()
{
var
c
*
client
.
Client
var
c
*
client
.
Client
var
unfilledNodeName
,
recoveredNodeName
string
var
unfilledNodeName
,
recoveredNodeName
string
framework
:=
Framework
{
BaseName
:
"node-outofdisk"
}
framework
:=
Framework
{
BaseName
:
"node-outofdisk"
}
...
...
test/e2e/reboot.go
View file @
bd49a342
...
@@ -44,7 +44,7 @@ const (
...
@@ -44,7 +44,7 @@ const (
rebootPodReadyAgainTimeout
=
5
*
time
.
Minute
rebootPodReadyAgainTimeout
=
5
*
time
.
Minute
)
)
var
_
=
Describe
(
"Reboot"
,
func
()
{
var
_
=
Describe
(
"Reboot
[Disruptive]
"
,
func
()
{
var
f
*
Framework
var
f
*
Framework
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
...
...
test/e2e/resize_nodes.go
View file @
bd49a342
...
@@ -388,7 +388,7 @@ func performTemporaryNetworkFailure(c *client.Client, ns, rcName string, replica
...
@@ -388,7 +388,7 @@ func performTemporaryNetworkFailure(c *client.Client, ns, rcName string, replica
// network traffic is unblocked in a deferred function
// network traffic is unblocked in a deferred function
}
}
var
_
=
Describe
(
"Nodes"
,
func
()
{
var
_
=
Describe
(
"Nodes
[Disruptive]
"
,
func
()
{
framework
:=
NewFramework
(
"resize-nodes"
)
framework
:=
NewFramework
(
"resize-nodes"
)
var
systemPodsNo
int
var
systemPodsNo
int
var
c
*
client
.
Client
var
c
*
client
.
Client
...
...
test/e2e/scheduler_predicates.go
View file @
bd49a342
...
@@ -173,7 +173,7 @@ func waitForStableCluster(c *client.Client) int {
...
@@ -173,7 +173,7 @@ func waitForStableCluster(c *client.Client) int {
return
len
(
scheduledPods
)
return
len
(
scheduledPods
)
}
}
var
_
=
Describe
(
"SchedulerPredicates"
,
func
()
{
var
_
=
Describe
(
"SchedulerPredicates
[Serial]
"
,
func
()
{
var
c
*
client
.
Client
var
c
*
client
.
Client
var
nodeList
*
api
.
NodeList
var
nodeList
*
api
.
NodeList
var
totalPodCapacity
int64
var
totalPodCapacity
int64
...
...
test/e2e/service.go
View file @
bd49a342
...
@@ -257,7 +257,7 @@ var _ = Describe("Services", func() {
...
@@ -257,7 +257,7 @@ var _ = Describe("Services", func() {
expectNoError
(
stopServeHostnameService
(
c
,
ns
,
"service3"
))
expectNoError
(
stopServeHostnameService
(
c
,
ns
,
"service3"
))
})
})
It
(
"should work after restarting kube-proxy"
,
func
()
{
It
(
"should work after restarting kube-proxy
[Disruptive]
"
,
func
()
{
SkipUnlessProviderIs
(
"gce"
,
"gke"
)
SkipUnlessProviderIs
(
"gce"
,
"gke"
)
ns
:=
f
.
Namespace
.
Name
ns
:=
f
.
Namespace
.
Name
...
@@ -308,7 +308,7 @@ var _ = Describe("Services", func() {
...
@@ -308,7 +308,7 @@ var _ = Describe("Services", func() {
expectNoError
(
verifyServeHostnameServiceUp
(
c
,
host
,
podNames2
,
svc2IP
,
servicePort
))
expectNoError
(
verifyServeHostnameServiceUp
(
c
,
host
,
podNames2
,
svc2IP
,
servicePort
))
})
})
It
(
"should work after restarting apiserver"
,
func
()
{
It
(
"should work after restarting apiserver
[Disruptive]
"
,
func
()
{
// TODO: restartApiserver doesn't work in GKE - fix it and reenable this test.
// TODO: restartApiserver doesn't work in GKE - fix it and reenable this test.
SkipUnlessProviderIs
(
"gce"
)
SkipUnlessProviderIs
(
"gce"
)
...
...
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