mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Merge pull request #16895 from jlowdermilk/hpa-tests
Run autoscaling suite in gce-disruptive-1.1
This commit is contained in:
commit
bdac198130
@ -95,7 +95,6 @@ fi
|
|||||||
|
|
||||||
# Specialized to skip when running reboot tests.
|
# Specialized to skip when running reboot tests.
|
||||||
REBOOT_SKIP_TESTS=(
|
REBOOT_SKIP_TESTS=(
|
||||||
"Autoscaling\sSuite"
|
|
||||||
"Skipped"
|
"Skipped"
|
||||||
"Restart\sshould\srestart\sall\snodes"
|
"Restart\sshould\srestart\sall\snodes"
|
||||||
"Example"
|
"Example"
|
||||||
@ -104,6 +103,7 @@ REBOOT_SKIP_TESTS=(
|
|||||||
# 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[@]}"
|
"${REBOOT_SKIP_TESTS[@]}"
|
||||||
|
"Autoscaling\sSuite"
|
||||||
"Reboot"
|
"Reboot"
|
||||||
"ServiceLoadBalancer"
|
"ServiceLoadBalancer"
|
||||||
)
|
)
|
||||||
@ -136,6 +136,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=(
|
||||||
|
"Autoscaling\sSuite"
|
||||||
"DaemonRestart"
|
"DaemonRestart"
|
||||||
"Etcd\sfailure"
|
"Etcd\sfailure"
|
||||||
"Nodes\sResize"
|
"Nodes\sResize"
|
||||||
@ -160,6 +161,7 @@ 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=(
|
||||||
|
"Autoscaling\sSuite"
|
||||||
# Before enabling this loadbalancer test in any other test list you must
|
# 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
|
# 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
|
# writing a GCE project is allowed 3 backend services by default. This
|
||||||
@ -485,6 +487,27 @@ case ${JOB_NAME} in
|
|||||||
: ${ENABLE_DEPLOYMENTS:=true}
|
: ${ENABLE_DEPLOYMENTS:=true}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Runs "disruptive" tests on GCE on the release candidate branch,
|
||||||
|
# sequentially, against the latest 1.1 ci release.
|
||||||
|
kubernetes-e2e-gce-disruptive-1.1)
|
||||||
|
: ${E2E_CLUSTER_NAME:="jenkins-gce-e2e-disruptive-1.1"}
|
||||||
|
: ${E2E_DOWN:="false"}
|
||||||
|
: ${E2E_NETWORK:="gce-e2e-disruptive-1-1"}
|
||||||
|
: ${GINKGO_TEST_ARGS:="--ginkgo.skip=$(join_regex_allow_empty \
|
||||||
|
${REBOOT_SKIP_TESTS[@]:+${REBOOT_SKIP_TESTS[@]}}\
|
||||||
|
) --ginkgo.focus=$(join_regex_no_empty \
|
||||||
|
${DISRUPTIVE_TESTS[@]:+${DISRUPTIVE_TESTS[@]}} \
|
||||||
|
"GCE\sL7\sLoadBalancer\sController"
|
||||||
|
)"}
|
||||||
|
: ${JENKINS_PUBLISHED_VERSION:="ci/latest-1.1"}
|
||||||
|
: ${KUBE_GCE_INSTANCE_PREFIX="e2e-gce-disruptive-1-1"}
|
||||||
|
: ${KUBE_GCS_STAGING_PATH_SUFFIX:="disruptive-1.1"}
|
||||||
|
# TODO: move into its own project
|
||||||
|
: ${PROJECT:="kubernetes-jenkins"}
|
||||||
|
: ${ENABLE_DEPLOYMENTS:=true}
|
||||||
|
: ${ENABLE_DAEMONSETS:=true}
|
||||||
|
;;
|
||||||
|
|
||||||
kubernetes-e2e-gke-subnet)
|
kubernetes-e2e-gke-subnet)
|
||||||
: ${DOGFOOD_GCLOUD:="true"}
|
: ${DOGFOOD_GCLOUD:="true"}
|
||||||
: ${E2E_CLUSTER_NAME:="jkns-gke-subnet"}
|
: ${E2E_CLUSTER_NAME:="jkns-gke-subnet"}
|
||||||
|
@ -36,7 +36,7 @@ var _ = Describe("Horizontal pod autoscaling", func() {
|
|||||||
f := NewFramework("horizontal-pod-autoscaling")
|
f := NewFramework("horizontal-pod-autoscaling")
|
||||||
|
|
||||||
// CPU tests
|
// CPU tests
|
||||||
It("[Skipped][Autoscaling Suite] should scale from 1 pod to 3 pods and from 3 to 5 (scale resource: CPU)", func() {
|
It("[Autoscaling Suite] should scale from 1 pod to 3 pods and from 3 to 5 (scale resource: CPU)", func() {
|
||||||
rc = NewDynamicResourceConsumer("rc", 1, 250, 0, 500, 100, f)
|
rc = NewDynamicResourceConsumer("rc", 1, 250, 0, 500, 100, f)
|
||||||
defer rc.CleanUp()
|
defer rc.CleanUp()
|
||||||
createCPUHorizontalPodAutoscaler(rc, 20)
|
createCPUHorizontalPodAutoscaler(rc, 20)
|
||||||
@ -46,7 +46,7 @@ var _ = Describe("Horizontal pod autoscaling", func() {
|
|||||||
rc.WaitForReplicas(5)
|
rc.WaitForReplicas(5)
|
||||||
})
|
})
|
||||||
|
|
||||||
It("[Skipped][Autoscaling Suite] should scale from 5 pods to 3 pods and from 3 to 1 (scale resource: CPU)", func() {
|
It("[Autoscaling Suite] should scale from 5 pods to 3 pods and from 3 to 1 (scale resource: CPU)", func() {
|
||||||
rc = NewDynamicResourceConsumer("rc", 5, 400, 0, 500, 100, f)
|
rc = NewDynamicResourceConsumer("rc", 5, 400, 0, 500, 100, f)
|
||||||
defer rc.CleanUp()
|
defer rc.CleanUp()
|
||||||
createCPUHorizontalPodAutoscaler(rc, 30)
|
createCPUHorizontalPodAutoscaler(rc, 30)
|
||||||
|
Loading…
Reference in New Issue
Block a user