Skip to content

Commit

Permalink
Merge pull request #30836 from borg-land/kubeup-to-kops-2
Browse files Browse the repository at this point in the history
Fix test parallelism and add some missing test flags
  • Loading branch information
k8s-ci-robot committed Sep 26, 2023
2 parents 2cc83db + b833aee commit a993878
Show file tree
Hide file tree
Showing 13 changed files with 753 additions and 1,266 deletions.
35 changes: 33 additions & 2 deletions config/jobs/kubernetes/kops/build_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ def build_test(cloud='aws',
terraform_version=None,
test_parallelism=25,
test_timeout_minutes=60,
test_args=None,
skip_regex='',
focus_regex=None,
runs_per_day=0,
scenario=None,
env=None,
kubernetes_feature_gates=None,
build_cluster="default",
template_path=None):
# pylint: disable=too-many-statements,too-many-branches,too-many-arguments
Expand Down Expand Up @@ -178,6 +180,8 @@ def build_test(cloud='aws',
scenario=scenario,
env=env,
build_cluster=build_cluster,
kubernetes_feature_gates=kubernetes_feature_gates,
test_args=test_args,
)

spec = {
Expand Down Expand Up @@ -821,8 +825,8 @@ def generate_misc():
k8s_version="ci",
kops_channel="alpha",
feature_flags=['SELinuxMount'],
kubernetes_feature_gates="SELinuxMountReadWriteOncePod,ReadWriteOncePod",
extra_flags=[
"--kubernetes-feature-gates=SELinuxMountReadWriteOncePod,ReadWriteOncePod",
"--set=cluster.spec.containerd.selinuxEnabled=true",
],
focus_regex=r"\[Feature:SELinux\]",
Expand Down Expand Up @@ -856,6 +860,7 @@ def generate_misc():
],
skip_regex=r'\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]', # pylint: disable=line-too-long
test_timeout_minutes=60,
test_args="--num-nodes=3 --master-os-distro=gci --node-os-distro=gci",
extra_dashboards=["sig-cluster-lifecycle-kubeup-to-kops"],
runs_per_day=8),

Expand All @@ -873,6 +878,7 @@ def generate_misc():
focus_regex=r'\[Slow\]',
skip_regex=r'\[Driver:.gcepd\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]', # pylint: disable=line-too-long
test_timeout_minutes=150,
test_args="--num-nodes=3 --master-os-distro=gci --node-os-distro=gci",
extra_dashboards=["sig-cluster-lifecycle-kubeup-to-kops"],
runs_per_day=6),

Expand All @@ -889,10 +895,31 @@ def generate_misc():
],
focus_regex=r'\[Conformance\]|\[NodeConformance\]',
skip_regex=r'\[FOOBAR\]', # leaving it empty will allow kops to add extra skips
test_args="-num-nodes=3 --master-os-distro=gci --node-os-distro=gci",
test_timeout_minutes=200,
test_parallelism=1, # serial tests
extra_dashboards=["sig-cluster-lifecycle-kubeup-to-kops"],
runs_per_day=6),

build_test(name_override="ci-kubernetes-e2e-cos-gce-conformance-concurrrency-canary",
cloud="gce",
distro="cos105",
networking="kubenet",
k8s_version="ci",
kops_version="https://storage.googleapis.com/kops-ci/bin/latest-ci.txt",
kops_channel="alpha",
build_cluster="k8s-infra-prow-build",
extra_flags=[
"--image=cos-cloud/cos-105-17412-156-49",
],
focus_regex=r'\[Conformance\]',
skip_regex=r'\[FOOBAR\]', # leaving it empty will allow kops to add extra skips
test_timeout_minutes=100,
test_parallelism=8,
test_args="-num-nodes=3 --master-os-distro=gci --node-os-distro=gci",
extra_dashboards=["sig-cluster-lifecycle-kubeup-to-kops"],
runs_per_day=9),

build_test(name_override="ci-kubernetes-e2e-cos-gce-serial-canary",
cloud="gce",
distro="cos105",
Expand All @@ -907,6 +934,8 @@ def generate_misc():
focus_regex=r'\[Serial\]|\[Disruptive\]',
skip_regex=r'\[Driver:.gcepd\]|\[Flaky\]|\[Feature:.+\]', # pylint: disable=line-too-long
test_timeout_minutes=500,
test_parallelism=1, # serial tests
test_args="-num-nodes=3 --master-os-distro=gci --node-os-distro=gci",
extra_dashboards=["sig-cluster-lifecycle-kubeup-to-kops"],
runs_per_day=4),

Expand All @@ -920,11 +949,13 @@ def generate_misc():
build_cluster="k8s-infra-prow-build",
extra_flags=[
"--image=cos-cloud/cos-105-17412-156-49",
"--kubernetes-feature-gates=AllAlpha,-InTreePluginGCEUnregister,DisableCloudProviders,DisableKubeletCloudCredentialProviders" # pylint: disable=line-too-long
],
kubernetes_feature_gates="AllAlpha,-InTreePluginGCEUnregister,-DisableCloudProviders,-DisableKubeletCloudCredentialProviders", # pylint: disable=line-too-long
focus_regex=r'\[Feature:(AdmissionWebhookMatchConditions|InPlacePodVerticalScaling|SidecarContainers|StorageVersionAPI|PodPreset|StatefulSetAutoDeletePVC)\]|Networking', # pylint: disable=line-too-long
skip_regex=r'\[Feature:(SCTPConnectivity|Volumes|Networking-Performance)\]|IPv6|csi-hostpath-v0', # pylint: disable=line-too-long
test_timeout_minutes=180,
test_parallelism=1,
test_args="-num-nodes=3 --master-os-distro=gci --node-os-distro=gci",
extra_dashboards=["sig-cluster-lifecycle-kubeup-to-kops"],
runs_per_day=6),
]
Expand Down
12 changes: 4 additions & 8 deletions config/jobs/kubernetes/kops/kops-periodics-conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable-1.28.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=150m -num-nodes=0" \
--test-args="-test.timeout=150m" \
--test-package-marker=stable-1.28.txt \
--focus-regex="\[Conformance\]" \
--skip-regex="\[NoSkip\]" \
Expand Down Expand Up @@ -104,8 +103,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable-1.28.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=150m -num-nodes=0" \
--test-args="-test.timeout=150m" \
--test-package-marker=stable-1.28.txt \
--focus-regex="\[Conformance\]" \
--skip-regex="\[NoSkip\]" \
Expand Down Expand Up @@ -171,8 +169,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable-1.27.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=150m -num-nodes=0" \
--test-args="-test.timeout=150m" \
--test-package-marker=stable-1.27.txt \
--focus-regex="\[Conformance\]" \
--skip-regex="\[NoSkip\]" \
Expand Down Expand Up @@ -238,8 +235,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable-1.27.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=150m -num-nodes=0" \
--test-args="-test.timeout=150m" \
--test-package-marker=stable-1.27.txt \
--focus-regex="\[Conformance\]" \
--skip-regex="\[NoSkip\]" \
Expand Down
39 changes: 13 additions & 26 deletions config/jobs/kubernetes/kops/kops-periodics-distros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -102,8 +101,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -167,8 +165,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -232,8 +229,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -297,8 +293,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -362,8 +357,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -427,8 +421,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -492,8 +485,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -557,8 +549,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -622,8 +613,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -687,8 +677,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -752,8 +741,7 @@ periodics:
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down Expand Up @@ -818,8 +806,7 @@ periodics:
--validation-wait=20m \
--test=kops \
-- \
--ginkgo-args="--debug" \
--test-args="-test.timeout=60m -num-nodes=0" \
--test-args="-test.timeout=60m" \
--test-package-marker=stable.txt \
--parallel=25
env:
Expand Down
Loading

0 comments on commit a993878

Please sign in to comment.