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
eeb727af
Commit
eeb727af
authored
Dec 22, 2015
by
Isaac Hollander McCreery
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19021 from ihmccreery/test-labels
Label flaky e2es with [Flaky] & slow tests with [Slow]
parents
4ca66d2a
5ee88502
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
40 additions
and
57 deletions
+40
-57
e2e.sh
hack/jenkins/e2e.sh
+2
-40
daemon_restart.go
test/e2e/daemon_restart.go
+2
-1
daemon_set.go
test/e2e/daemon_set.go
+2
-1
es_cluster_logging.go
test/e2e/es_cluster_logging.go
+2
-1
garbage_collector.go
test/e2e/garbage_collector.go
+3
-1
ingress.go
test/e2e/ingress.go
+3
-1
kubelet_perf.go
test/e2e/kubelet_perf.go
+2
-1
kubeproxy.go
test/e2e/kubeproxy.go
+2
-1
monitor_resources.go
test/e2e/monitor_resources.go
+2
-1
namespace.go
test/e2e/namespace.go
+3
-1
nodeoutofdisk.go
test/e2e/nodeoutofdisk.go
+2
-1
pods.go
test/e2e/pods.go
+6
-3
resize_nodes.go
test/e2e/resize_nodes.go
+2
-1
scheduler_predicates.go
test/e2e/scheduler_predicates.go
+3
-1
service.go
test/e2e/service.go
+2
-1
service_accounts.go
test/e2e/service_accounts.go
+2
-1
No files found.
hack/jenkins/e2e.sh
View file @
eeb727af
...
...
@@ -65,7 +65,6 @@ function join_regex_no_empty() {
# $GCE_DEFAULT_SKIP_TESTS
# $GCE_FLAKY_TESTS
# $GCE_SLOW_TESTS
# $GKE_FLAKY_TESTS
#
# Args:
# $1 old_version: the version to deploy a cluster at, and old e2e tests to run
...
...
@@ -99,7 +98,6 @@ function configure_upgrade_step() {
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_SLOW_TESTS
[@]
:+
${
GCE_SLOW_TESTS
[@]
}}
\
${
GKE_FLAKY_TESTS
[@]
:+
${
GKE_FLAKY_TESTS
[@]
}}
\
)
"
if
[[
"
${
KUBERNETES_PROVIDER
}
"
==
"gce"
]]
;
then
...
...
@@ -302,11 +300,6 @@ GKE_REQUIRED_SKIP_TESTS=(
"Deployment"
)
# Tests wchich are known to be flaky on GKE
GKE_FLAKY_TESTS
=(
"NodeOutOfDisk"
)
# Specialized tests which should be skipped by default for GKE.
GKE_DEFAULT_SKIP_TESTS
=(
"Autoscaling
\s
Suite"
...
...
@@ -330,12 +323,7 @@ DISRUPTIVE_TESTS=(
# The following tests are known to be flaky, and are thus run only in their own
# -flaky- build variants.
GCE_FLAKY_TESTS
=(
"GCE
\s
L7
\s
LoadBalancer
\s
Controller"
# issue: #17518
"DaemonRestart
\s
Controller
\s
Manager"
# issue: #17829
"Daemon
\s
set
\s
should
\s
run
\s
and
\s
stop
\s
complex
\s
daemon"
# issue: #16623
"Resource
\s
usage
\s
of
\s
system
\s
containers"
# issue: #13931
"NodeOutOfDisk"
# issue: #17687
"Cluster
\s
level
\s
logging
\s
using
\s
Elasticsearch"
# issue: #17873
"
\[
Flaky
\]
"
)
# The following tests are known to be slow running (> 2 min), and are
...
...
@@ -349,14 +337,7 @@ GCE_SLOW_TESTS=(
# make sure the associated project has enough quota. At the time of this
# writing a GCE project is allowed 3 backend services by default. This
# test requires at least 5.
"GCE
\s
L7
\s
LoadBalancer
\s
Controller"
# 10 min, file: ingress.go, slow by design
"SchedulerPredicates
\s
validates
\s
MaxPods
\s
limit "
# 8 min, file: scheduler_predicates.go, PR: #13315
"Nodes
\s
Resize"
# 3 min 30 sec, file: resize_nodes.go, issue: #13323
"resource
\s
usage
\s
tracking"
# 1 hour, file: kubelet_perf.go, slow by design
"monotonically
\s
increasing
\s
restart
\s
count"
# 1.5 to 5 min, file: pods.go, slow by design
"Garbage
\s
collector
\s
should"
# 7 min, file: garbage_collector.go, slow by design
"KubeProxy
\s
should
\s
test
\s
kube-proxy"
# 9 min 30 sec, file: kubeproxy.go, issue: #14204
"cap
\s
back-off
\s
at
\s
MaxContainerBackOff"
# 20 mins file: manager.go, PR: #12648
"
\[
Slow
\]
"
)
# Tests which are not able to be run in parallel.
...
...
@@ -367,16 +348,6 @@ GCE_PARALLEL_SKIP_TESTS=(
"
\[
Disruptive
\]
"
)
# Tests which are known to be flaky when run in parallel.
GCE_PARALLEL_FLAKY_TESTS
=(
"DaemonRestart"
"Elasticsearch"
"Namespaces.*should
\s
delete
\s
fast"
"Pods.*back-off
\s
restarting.*LivenessProbe"
# issue: #18293
"ServiceAccounts"
"Services.*identically
\s
named"
# error waiting for reachability, issue: #16285
)
# Tests that should not run on soak cluster.
GCE_SOAK_CONTINUOUS_SKIP_TESTS
=(
"GCE
\s
L7
\s
LoadBalancer
\s
Controller"
# issue: #17119
...
...
@@ -496,7 +467,6 @@ case ${JOB_NAME} in
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_PARALLEL_SKIP_TESTS
[@]
:+
${
GCE_PARALLEL_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_PARALLEL_FLAKY_TESTS
[@]
:+
${
GCE_PARALLEL_FLAKY_TESTS
[@]
}}
\
${
GCE_SLOW_TESTS
[@]
:+
${
GCE_SLOW_TESTS
[@]
}}
\
)
"
}
:
${
KUBE_GCE_INSTANCE_PREFIX
:
=
"e2e-gce-
${
NODE_NAME
}
-
${
EXECUTOR_NUMBER
}
"
}
...
...
@@ -516,7 +486,6 @@ case ${JOB_NAME} in
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_PARALLEL_SKIP_TESTS
[@]
:+
${
GCE_PARALLEL_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_PARALLEL_FLAKY_TESTS
[@]
:+
${
GCE_PARALLEL_FLAKY_TESTS
[@]
}}
\
${
GCE_SLOW_TESTS
[@]
:+
${
GCE_SLOW_TESTS
[@]
}}
\
)
"
}
:
${
KUBE_GCE_INSTANCE_PREFIX
:
=
"e2e-test-parallel"
}
...
...
@@ -535,7 +504,6 @@ case ${JOB_NAME} in
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_PARALLEL_SKIP_TESTS
[@]
:+
${
GCE_PARALLEL_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_PARALLEL_FLAKY_TESTS
[@]
:+
${
GCE_PARALLEL_FLAKY_TESTS
[@]
}}
\
${
AWS_REQUIRED_SKIP_TESTS
[@]
:+
${
AWS_REQUIRED_SKIP_TESTS
[@]
}}
\
)
"
}
:
${
ENABLE_DEPLOYMENTS
:
=true
}
...
...
@@ -553,7 +521,6 @@ case ${JOB_NAME} in
${
GCE_PARALLEL_SKIP_TESTS
[@]
:+
${
GCE_PARALLEL_SKIP_TESTS
[@]
}}
\
)
--ginkgo.focus=
$(
join_regex_no_empty
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_PARALLEL_FLAKY_TESTS
[@]
:+
${
GCE_PARALLEL_FLAKY_TESTS
[@]
}}
\
)
"
}
:
${
KUBE_GCE_INSTANCE_PREFIX
:
=
"parallel-flaky"
}
:
${
PROJECT
:
=
"k8s-jkns-e2e-gce-prl-flaky"
}
...
...
@@ -597,7 +564,6 @@ case ${JOB_NAME} in
:
${
E2E_NETWORK
:
=
"e2e-gce-flannel"
}
:
${
GINKGO_TEST_ARGS
:
=
"--ginkgo.skip=
$(
join_regex_allow_empty
\
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_PARALLEL_FLAKY_TESTS
[@]
:+
${
GCE_PARALLEL_FLAKY_TESTS
[@]
}}
\
${
GCE_PARALLEL_SKIP_TESTS
[@]
:+
${
GCE_PARALLEL_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_SLOW_TESTS
[@]
:+
${
GCE_SLOW_TESTS
[@]
}}
\
...
...
@@ -672,7 +638,6 @@ case ${JOB_NAME} in
${
GKE_DEFAULT_SKIP_TESTS
[@]
:+
${
GKE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GKE_FLAKY_TESTS
[@]
:+
${
GKE_FLAKY_TESTS
[@]
}}
\
)
"
}
;;
...
...
@@ -687,7 +652,6 @@ case ${JOB_NAME} in
${
GKE_DEFAULT_SKIP_TESTS
[@]
:+
${
GKE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
REBOOT_SKIP_TESTS
[@]
:+
${
REBOOT_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GKE_FLAKY_TESTS
[@]
:+
${
GKE_FLAKY_TESTS
[@]
}}
\
${
GCE_SLOW_TESTS
[@]
:+
${
GCE_SLOW_TESTS
[@]
}}
\
)
"
}
;;
...
...
@@ -701,7 +665,6 @@ case ${JOB_NAME} in
:
${
GINKGO_TEST_ARGS
:
=
"--ginkgo.skip=
$(
join_regex_allow_empty
\
${
GKE_REQUIRED_SKIP_TESTS
[@]
:+
${
GKE_REQUIRED_SKIP_TESTS
[@]
}})
\
--ginkgo.focus=
$(
join_regex_no_empty
\
${
GKE_FLAKY_TESTS
[@]
:+
${
GKE_FLAKY_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
)
"
}
;;
...
...
@@ -734,7 +697,6 @@ case ${JOB_NAME} in
${
GKE_REQUIRED_SKIP_TESTS
[@]
:+
${
GKE_REQUIRED_SKIP_TESTS
[@]
}}
\
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GKE_FLAKY_TESTS
[@]
:+
${
GKE_FLAKY_TESTS
[@]
}}
\
${
GCE_SOAK_CONTINUOUS_SKIP_TESTS
[@]
:+
${
GCE_SOAK_CONTINUOUS_SKIP_TESTS
[@]
}}
\
)
"
}
;;
...
...
test/e2e/daemon_restart.go
View file @
eeb727af
...
...
@@ -183,7 +183,8 @@ func getContainerRestarts(c *client.Client, ns string, labelSelector labels.Sele
return
failedContainers
,
containerRestartNodes
.
List
()
}
var
_
=
Describe
(
"DaemonRestart [Disruptive]"
,
func
()
{
// Flaky issues #17829, #19023
var
_
=
Describe
(
"DaemonRestart [Disruptive] [Flaky]"
,
func
()
{
framework
:=
NewFramework
(
"daemonrestart"
)
rcName
:=
"daemonrestart"
+
strconv
.
Itoa
(
numPods
)
+
"-"
+
string
(
util
.
NewUUID
())
...
...
test/e2e/daemon_set.go
View file @
eeb727af
...
...
@@ -126,7 +126,8 @@ var _ = Describe("Daemon set", func() {
})
It
(
"should run and stop complex daemon"
,
func
()
{
// Flaky issue #16623
It
(
"should run and stop complex daemon [Flaky]"
,
func
()
{
complexLabel
:=
map
[
string
]
string
{
daemonsetNameLabel
:
dsName
}
nodeSelector
:=
map
[
string
]
string
{
daemonsetColorLabel
:
"blue"
}
Logf
(
"Creating daemon with a node selector %s"
,
dsName
)
...
...
test/e2e/es_cluster_logging.go
View file @
eeb727af
...
...
@@ -30,7 +30,8 @@ import (
.
"github.com/onsi/gomega"
)
var
_
=
Describe
(
"Cluster level logging using Elasticsearch"
,
func
()
{
// Flaky issue #17873
var
_
=
Describe
(
"Cluster level logging using Elasticsearch [Flaky]"
,
func
()
{
f
:=
NewFramework
(
"es-logging"
)
BeforeEach
(
func
()
{
...
...
test/e2e/garbage_collector.go
View file @
eeb727af
...
...
@@ -27,7 +27,9 @@ import (
)
// This test requires that --terminated-pod-gc-threshold=100 be set on the controller manager
var
_
=
Describe
(
"Garbage collector"
,
func
()
{
//
// Slow by design (7 min)
var
_
=
Describe
(
"Garbage collector [Slow]"
,
func
()
{
f
:=
NewFramework
(
"garbage-collector"
)
It
(
"should handle the creation of 1000 pods"
,
func
()
{
SkipUnlessProviderIs
(
"gce"
)
...
...
test/e2e/ingress.go
View file @
eeb727af
...
...
@@ -376,7 +376,9 @@ func (cont *IngressController) Cleanup(del bool) error {
return
fmt
.
Errorf
(
errMsg
)
}
var
_
=
Describe
(
"GCE L7 LoadBalancer Controller [Serial]"
,
func
()
{
// Slow by design (10 min)
// Flaky issue #17518
var
_
=
Describe
(
"GCE L7 LoadBalancer Controller [Serial] [Slow] [Flaky]"
,
func
()
{
// These variables are initialized after framework's beforeEach.
var
ns
string
var
addonDir
string
...
...
test/e2e/kubelet_perf.go
View file @
eeb727af
...
...
@@ -138,7 +138,8 @@ func verifyCPULimits(expected containersCPUSummary, actual nodesCPUSummary) {
}
}
var
_
=
Describe
(
"Kubelet [Serial]"
,
func
()
{
// Slow by design (1 hour)
var
_
=
Describe
(
"Kubelet [Serial] [Slow]"
,
func
()
{
var
nodeNames
sets
.
String
framework
:=
NewFramework
(
"kubelet-perf"
)
var
rm
*
resourceMonitor
...
...
test/e2e/kubeproxy.go
View file @
eeb727af
...
...
@@ -71,7 +71,8 @@ var _ = Describe("KubeProxy", func() {
f
:
f
,
}
It
(
"should test kube-proxy"
,
func
()
{
// Slow issue #14204 (10 min)
It
(
"should test kube-proxy [Slow]"
,
func
()
{
By
(
"cleaning up any pre-existing namespaces used by this test"
)
config
.
cleanup
()
...
...
test/e2e/monitor_resources.go
View file @
eeb727af
...
...
@@ -72,7 +72,8 @@ func computeAverage(sliceOfUsages []resourceUsagePerContainer) (result resourceU
// 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.
var
_
=
Describe
(
"Resource usage of system containers [Serial]"
,
func
()
{
// Flaky issue #13931
var
_
=
Describe
(
"Resource usage of system containers [Serial] [Flaky]"
,
func
()
{
var
c
*
client
.
Client
BeforeEach
(
func
()
{
var
err
error
...
...
test/e2e/namespace.go
View file @
eeb727af
...
...
@@ -91,7 +91,9 @@ var _ = Describe("Namespaces", func() {
//Confirms that namespace draining is functioning reasonably
//at minute intervals.
It
(
"should delete fast enough (90 percent of 100 namespaces in 150 seconds)"
,
//
// Flaky issue #19026
It
(
"should delete fast enough (90 percent of 100 namespaces in 150 seconds) [Flaky]"
,
func
()
{
extinguish
(
c
,
100
,
10
,
150
)
})
//comprehensive draining ; uncomment after #7372
...
...
test/e2e/nodeoutofdisk.go
View file @
eeb727af
...
...
@@ -63,7 +63,8 @@ const (
// choose that node to be node with index 1.
// 7. Observe that the pod in pending status schedules on that node.
//
var
_
=
Describe
(
"NodeOutOfDisk [Serial]"
,
func
()
{
// Flaky issue #17687
var
_
=
Describe
(
"NodeOutOfDisk [Serial] [Flaky]"
,
func
()
{
var
c
*
client
.
Client
var
unfilledNodeName
,
recoveredNodeName
string
framework
:=
Framework
{
BaseName
:
"node-outofdisk"
}
...
...
test/e2e/pods.go
View file @
eeb727af
...
...
@@ -635,7 +635,8 @@ var _ = Describe("Pods", func() {
},
1
,
defaultObservationTimeout
)
})
It
(
"should have monotonically increasing restart count [Conformance]"
,
func
()
{
// Slow by design (5 min)
It
(
"should have monotonically increasing restart count [Conformance] [Slow]"
,
func
()
{
runLivenessTest
(
framework
.
Client
,
framework
.
Namespace
.
Name
,
&
api
.
Pod
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
"liveness-http"
,
...
...
@@ -896,7 +897,8 @@ var _ = Describe("Pods", func() {
}
})
It
(
"should not back-off restarting a container on LivenessProbe failure"
,
func
()
{
// Flaky issue #18293
It
(
"should not back-off restarting a container on LivenessProbe failure [Flaky]"
,
func
()
{
podClient
:=
framework
.
Client
.
Pods
(
framework
.
Namespace
.
Name
)
podName
:=
"pod-back-off-liveness"
containerName
:=
"back-off-liveness"
...
...
@@ -936,7 +938,8 @@ var _ = Describe("Pods", func() {
}
})
It
(
"should cap back-off at MaxContainerBackOff"
,
func
()
{
// Slow issue #19027 (20 mins)
It
(
"should cap back-off at MaxContainerBackOff [Slow]"
,
func
()
{
podClient
:=
framework
.
Client
.
Pods
(
framework
.
Namespace
.
Name
)
podName
:=
"back-off-cap"
containerName
:=
"back-off-cap"
...
...
test/e2e/resize_nodes.go
View file @
eeb727af
...
...
@@ -402,7 +402,8 @@ var _ = Describe("Nodes [Disruptive]", func() {
systemPodsNo
=
len
(
systemPods
.
Items
)
})
Describe
(
"Resize"
,
func
()
{
// Slow issue #13323 (8 min)
Describe
(
"Resize [Slow]"
,
func
()
{
var
skipped
bool
BeforeEach
(
func
()
{
...
...
test/e2e/scheduler_predicates.go
View file @
eeb727af
...
...
@@ -200,7 +200,9 @@ var _ = Describe("SchedulerPredicates [Serial]", func() {
// This test verifies that max-pods flag works as advertised. It assumes that cluster add-on pods stay stable
// and cannot be run in parallel with any other test that touches Nodes or Pods. It is so because to check
// if max-pods is working we need to fully saturate the cluster and keep it in this state for few seconds.
It
(
"validates MaxPods limit number of pods that are allowed to run"
,
func
()
{
//
// Slow PR #13315 (8 min)
It
(
"validates MaxPods limit number of pods that are allowed to run [Slow]"
,
func
()
{
totalPodCapacity
=
0
for
_
,
node
:=
range
nodeList
.
Items
{
...
...
test/e2e/service.go
View file @
eeb727af
...
...
@@ -778,7 +778,8 @@ var _ = Describe("Services", func() {
})
// This test hits several load-balancer cases because LB turnup is slow.
It
(
"should serve identically named services in different namespaces on different load-balancers"
,
func
()
{
// Flaky issue #18952
It
(
"should serve identically named services in different namespaces on different load-balancers [Flaky]"
,
func
()
{
// requires ExternalLoadBalancer
SkipUnlessProviderIs
(
"gce"
,
"gke"
,
"aws"
)
...
...
test/e2e/service_accounts.go
View file @
eeb727af
...
...
@@ -30,7 +30,8 @@ import (
.
"github.com/onsi/ginkgo"
)
var
_
=
Describe
(
"ServiceAccounts"
,
func
()
{
// Flaky issue #19024
var
_
=
Describe
(
"ServiceAccounts [Flaky]"
,
func
()
{
f
:=
NewFramework
(
"svcaccounts"
)
It
(
"should mount an API token into pods [Conformance]"
,
func
()
{
...
...
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