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
bd9d9802
Commit
bd9d9802
authored
Jan 08, 2016
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19425 from ihmccreery/skip-labels
Label [Skipped] tests apprpriately
parents
8ea6faef
b731b209
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
33 deletions
+23
-33
e2e.sh
hack/jenkins/e2e.sh
+12
-31
ingress.go
test/e2e/ingress.go
+5
-0
restart.go
test/e2e/restart.go
+3
-1
serviceloadbalancers.go
test/e2e/serviceloadbalancers.go
+3
-1
No files found.
hack/jenkins/e2e.sh
View file @
bd9d9802
...
@@ -265,20 +265,14 @@ fi
...
@@ -265,20 +265,14 @@ fi
# When 1.2.0-beta.0 comes out, e.g., this will become "ci/latest-1.2"
# When 1.2.0-beta.0 comes out, e.g., this will become "ci/latest-1.2"
CURRENT_RELEASE_PUBLISHED_VERSION
=
"ci/latest-1.1"
CURRENT_RELEASE_PUBLISHED_VERSION
=
"ci/latest-1.1"
# Specialized to skip when running reboot tests.
REBOOT_SKIP_TESTS
=(
"Restart
\s
should
\s
restart
\s
all
\s
nodes"
"
\[
Example
\]
"
)
# Specialized tests which should be skipped by default for projects.
# Specialized tests which should be skipped by default for projects.
GCE_DEFAULT_SKIP_TESTS
=(
GCE_DEFAULT_SKIP_TESTS
=(
"
${
REBOOT_SKIP_TESTS
[@]
}
"
"
\[
Example
\]
"
# previously in REBOOT_SKIP_TESTS..., dates back before version control (#10078)
"
\[
Skipped
\]
"
"
\[
Skipped
\]
"
"Reboot"
"ServiceLoadBalancer"
)
)
# PROVIDER SKIPS --------------------------------------
# Tests which cannot be run on GKE, e.g. because they require
# Tests which cannot be run on GKE, e.g. because they require
# master ssh access.
# master ssh access.
GKE_REQUIRED_SKIP_TESTS
=(
GKE_REQUIRED_SKIP_TESTS
=(
...
@@ -307,6 +301,7 @@ AWS_REQUIRED_SKIP_TESTS=(
...
@@ -307,6 +301,7 @@ AWS_REQUIRED_SKIP_TESTS=(
"GCE
\s
L7
\s
LoadBalancer
\s
Controller"
# GCE L7 loadbalancing
"GCE
\s
L7
\s
LoadBalancer
\s
Controller"
# GCE L7 loadbalancing
)
)
# END PROVIDER SKIPS --------------------------------------
# Tests which kills or restarts components and/or nodes.
# Tests which kills or restarts components and/or nodes.
DISRUPTIVE_TESTS
=(
DISRUPTIVE_TESTS
=(
...
@@ -326,10 +321,6 @@ GCE_FLAKY_TESTS=(
...
@@ -326,10 +321,6 @@ GCE_FLAKY_TESTS=(
# comments below, and for poorly implemented tests, please quote the
# comments below, and for poorly implemented tests, please quote the
# issue number tracking speed improvements.
# issue number tracking speed improvements.
GCE_SLOW_TESTS
=(
GCE_SLOW_TESTS
=(
# Before enabling this loadbalancer test in any other test list you must
# 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.
"
\[
Slow
\]
"
"
\[
Slow
\]
"
)
)
...
@@ -341,21 +332,6 @@ GCE_PARALLEL_SKIP_TESTS=(
...
@@ -341,21 +332,6 @@ GCE_PARALLEL_SKIP_TESTS=(
"
\[
Disruptive
\]
"
"
\[
Disruptive
\]
"
)
)
# Tests that should not run on soak cluster.
GCE_SOAK_CONTINUOUS_SKIP_TESTS
=(
"GCE
\s
L7
\s
LoadBalancer
\s
Controller"
# issue: #17119
"Density.*30
\s
pods"
"Elasticsearch"
"external
\s
load
\s
balancer"
"identically
\s
named
\s
services"
"network
\s
partition"
"Services.*Type
\s
goes
\s
from"
"
${
DISRUPTIVE_TESTS
[@]
}
"
# avoid component restarts.
)
GCE_RELEASE_SKIP_TESTS
=(
)
# Define environment variables based on the Jenkins project name.
# Define environment variables based on the Jenkins project name.
# NOTE: Not all jobs are defined here. The hack/jenkins/e2e.sh in master and
# NOTE: Not all jobs are defined here. The hack/jenkins/e2e.sh in master and
# release branches defines relevant jobs for that particular version of
# release branches defines relevant jobs for that particular version of
...
@@ -616,10 +592,13 @@ case ${JOB_NAME} in
...
@@ -616,10 +592,13 @@ case ${JOB_NAME} in
:
${
E2E_UP
:
=
"false"
}
:
${
E2E_UP
:
=
"false"
}
# Clear out any orphaned namespaces in case previous run was interrupted.
# Clear out any orphaned namespaces in case previous run was interrupted.
:
${
E2E_CLEAN_START
:
=
"true"
}
:
${
E2E_CLEAN_START
:
=
"true"
}
# We should be testing the reliability of a long-running cluster. The
# DISRUPTIVE_TESTS kill/restart components or nodes in the cluster,
# defeating the purpose of a soak cluster. (#15722)
:
${
GINKGO_TEST_ARGS
:
=
"--ginkgo.skip=
$(
join_regex_allow_empty
\
:
${
GINKGO_TEST_ARGS
:
=
"--ginkgo.skip=
$(
join_regex_allow_empty
\
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_SOAK_CONTINUOUS_SKIP_TESTS
[@]
:+
${
GCE_SOAK_CONTINUOUS_SKIP
_TESTS
[@]
}}
\
${
DISRUPTIVE_TESTS
[@]
:+
${
DISRUPTIVE
_TESTS
[@]
}}
\
)
"
}
)
"
}
:
${
KUBE_GCE_INSTANCE_PREFIX
:
=
"gce-soak-weekly"
}
:
${
KUBE_GCE_INSTANCE_PREFIX
:
=
"gce-soak-weekly"
}
:
${
PROJECT
:
=
"kubernetes-jenkins"
}
:
${
PROJECT
:
=
"kubernetes-jenkins"
}
...
@@ -647,7 +626,6 @@ case ${JOB_NAME} in
...
@@ -647,7 +626,6 @@ case ${JOB_NAME} in
:
${
GINKGO_TEST_ARGS
:
=
"--ginkgo.skip=
$(
join_regex_allow_empty
\
:
${
GINKGO_TEST_ARGS
:
=
"--ginkgo.skip=
$(
join_regex_allow_empty
\
"
\[
Skipped
\]
"
\
"
\[
Skipped
\]
"
\
${
GKE_DEFAULT_SKIP_TESTS
[@]
:+
${
GKE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GKE_DEFAULT_SKIP_TESTS
[@]
:+
${
GKE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
REBOOT_SKIP_TESTS
[@]
:+
${
REBOOT_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_SLOW_TESTS
[@]
:+
${
GCE_SLOW_TESTS
[@]
}}
\
${
GCE_SLOW_TESTS
[@]
:+
${
GCE_SLOW_TESTS
[@]
}}
\
)
"
}
)
"
}
...
@@ -690,11 +668,14 @@ case ${JOB_NAME} in
...
@@ -690,11 +668,14 @@ case ${JOB_NAME} in
:
${
E2E_CLEAN_START
:
=
"true"
}
:
${
E2E_CLEAN_START
:
=
"true"
}
:
${
PROJECT
:
=
"kubernetes-jenkins"
}
:
${
PROJECT
:
=
"kubernetes-jenkins"
}
:
${
E2E_OPT
:
=
"--check_version_skew=false"
}
:
${
E2E_OPT
:
=
"--check_version_skew=false"
}
# We should be testing the reliability of a long-running cluster. The
# DISRUPTIVE_TESTS kill/restart components or nodes in the cluster,
# defeating the purpose of a soak cluster. (#15722)
:
${
GINKGO_TEST_ARGS
:
=
"--ginkgo.skip=
$(
join_regex_allow_empty
\
:
${
GINKGO_TEST_ARGS
:
=
"--ginkgo.skip=
$(
join_regex_allow_empty
\
${
GKE_REQUIRED_SKIP_TESTS
[@]
:+
${
GKE_REQUIRED_SKIP_TESTS
[@]
}}
\
${
GKE_REQUIRED_SKIP_TESTS
[@]
:+
${
GKE_REQUIRED_SKIP_TESTS
[@]
}}
\
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_DEFAULT_SKIP_TESTS
[@]
:+
${
GCE_DEFAULT_SKIP_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_FLAKY_TESTS
[@]
:+
${
GCE_FLAKY_TESTS
[@]
}}
\
${
GCE_SOAK_CONTINUOUS_SKIP_TESTS
[@]
:+
${
GCE_SOAK_CONTINUOUS_SKIP
_TESTS
[@]
}}
\
${
DISRUPTIVE_TESTS
[@]
:+
${
DISRUPTIVE
_TESTS
[@]
}}
\
)
"
}
)
"
}
;;
;;
...
...
test/e2e/ingress.go
View file @
bd9d9802
...
@@ -390,6 +390,11 @@ func (cont *IngressController) Cleanup(del bool) error {
...
@@ -390,6 +390,11 @@ func (cont *IngressController) Cleanup(del bool) error {
return
fmt
.
Errorf
(
errMsg
)
return
fmt
.
Errorf
(
errMsg
)
}
}
// Before enabling this loadbalancer test in any other test list you must
// 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.
//
// Slow by design (10 min)
// Slow by design (10 min)
// Flaky issue #17518
// Flaky issue #17518
var
_
=
Describe
(
"GCE L7 LoadBalancer Controller [Serial] [Slow] [Flaky]"
,
func
()
{
var
_
=
Describe
(
"GCE L7 LoadBalancer Controller [Serial] [Slow] [Flaky]"
,
func
()
{
...
...
test/e2e/restart.go
View file @
bd9d9802
...
@@ -48,7 +48,9 @@ const (
...
@@ -48,7 +48,9 @@ const (
restartPodReadyAgainTimeout
=
5
*
time
.
Minute
restartPodReadyAgainTimeout
=
5
*
time
.
Minute
)
)
var
_
=
Describe
(
"Restart"
,
func
()
{
// TODO(ihmccreery): This is skipped because it was previously in
// REBOOT_SKIP_TESTS, dates back before version control (#10078)
var
_
=
Describe
(
"Restart [Skipped]"
,
func
()
{
var
c
*
client
.
Client
var
c
*
client
.
Client
var
ps
*
podStore
var
ps
*
podStore
var
skipped
bool
var
skipped
bool
...
...
test/e2e/serviceloadbalancers.go
View file @
bd9d9802
...
@@ -203,7 +203,9 @@ func (s *ingManager) test(path string) error {
...
@@ -203,7 +203,9 @@ func (s *ingManager) test(path string) error {
})
})
}
}
var
_
=
Describe
(
"ServiceLoadBalancer"
,
func
()
{
// TODO(ihmccreery) Skipped originally in #14988, never sent follow-up PR, as
// far as I can tell.
var
_
=
Describe
(
"ServiceLoadBalancer [Skipped]"
,
func
()
{
// These variables are initialized after framework's beforeEach.
// These variables are initialized after framework's beforeEach.
var
ns
string
var
ns
string
var
repoRoot
string
var
repoRoot
string
...
...
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