Skip to content

Commit

Permalink
Merge pull request #25149 from aartij17/capv-jobs
Browse files Browse the repository at this point in the history
Add e2e/upgrade/conformance presubmit and periodic tests
  • Loading branch information
k8s-ci-robot authored Feb 7, 2022
2 parents a39970a + 2da9bb9 commit 9e38157
Show file tree
Hide file tree
Showing 3 changed files with 160 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,42 +1,5 @@
periodics:
- name: ci-cluster-api-provider-vsphere-ova-e2e
labels:
preset-dind-enabled: "true"
preset-cluster-api-provider-vsphere-e2e-config: "true"
preset-kind-volume-mounts: "true"
decorate: true
interval: 24h
extra_refs:
- org: kubernetes-sigs
repo: cluster-api-provider-vsphere
base_ref: master
path_alias: sigs.k8s.io/cluster-api-provider-vsphere
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20220124-681f3531ec-1.23
command:
- runner.sh
args:
- ./hack/e2e.sh
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]
resources:
requests:
cpu: "4000m"
memory: "6Gi"
annotations:
testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere
testgrid-tab-name: periodic-e2e
testgrid-alert-email: k8s-testing-clusterapi-vsphere+alerts@vmware.co
description: Runs periodic e2e tests
testgrid-num-columns-recent: '20'

postsubmits:
kubernetes-sigs/cluster-api-provider-vsphere:

# Deploys images and binaries after all merges to master
- name: post-cluster-api-provider-vsphere-deploy
labels:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
periodics:
- name: periodic-cluster-api-provider-vsphere-e2e-main
labels:
preset-dind-enabled: "true"
preset-cluster-api-provider-vsphere-e2e-config: "true"
preset-cluster-api-provider-vsphere-gcs-creds: "true"
preset-kind-volume-mounts: "true"
decorate: true
interval: 12h
extra_refs:
- org: kubernetes-sigs
repo: cluster-api-provider-vsphere
base_ref: master
path_alias: sigs.k8s.io/cluster-api-provider-vsphere
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20220124-681f3531ec-1.23
command:
- runner.sh
args:
- ./hack/e2e.sh
env:
- name: GINKGO_SKIP
value: "\\[Conformance\\] \\[clusterctl-Upgrade\\]"
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]
resources:
requests:
cpu: "4000m"
memory: "6Gi"
annotations:
testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere
testgrid-tab-name: periodic-e2e-main
testgrid-alert-email: k8s-testing-clusterapi-vsphere+alerts@groups.vmware.com
description: Runs all the e2e tests

- name: periodic-cluster-api-provider-vsphere-conformance-main
labels:
preset-dind-enabled: "true"
preset-cluster-api-provider-vsphere-e2e-config: "true"
preset-cluster-api-provider-vsphere-gcs-creds: "true"
preset-kind-volume-mounts: "true"
decorate: true
interval: 12h
extra_refs:
- org: kubernetes-sigs
repo: cluster-api-provider-vsphere
base_ref: master
path_alias: sigs.k8s.io/cluster-api-provider-vsphere
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20220124-681f3531ec-1.23
command:
- runner.sh
args:
- ./hack/e2e.sh
env:
- name: GINKGO_FOCUS
value: "\\[Conformance\\]"
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]
resources:
requests:
cpu: "4000m"
memory: "6Gi"
annotations:
testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere
testgrid-tab-name: periodic-conformance-main
testgrid-alert-email: k8s-testing-clusterapi-vsphere+alerts@groups.vmware.com
description: Runs conformance tests for CAPV

- name: periodic-cluster-api-provider-vsphere-upgrade-main
labels:
preset-dind-enabled: "true"
preset-cluster-api-provider-vsphere-e2e-config: "true"
preset-cluster-api-provider-vsphere-gcs-creds: "true"
preset-kind-volume-mounts: "true"
decorate: true
interval: 12h
extra_refs:
- org: kubernetes-sigs
repo: cluster-api-provider-vsphere
base_ref: master
path_alias: sigs.k8s.io/cluster-api-provider-vsphere
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20220124-681f3531ec-1.23
command:
- runner.sh
args:
- ./hack/e2e.sh
env:
- name: GINKGO_FOCUS
value: "\\[clusterctl-Upgrade\\]"
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]
resources:
requests:
cpu: "4000m"
memory: "6Gi"
annotations:
testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere
testgrid-tab-name: periodic-clusterctl-upgrade-main
testgrid-alert-email: k8s-testing-clusterapi-vsphere+alerts@groups.vmware.com
description: Runs clusterctl upgrade tests for CAPV
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ presubmits:

- name: pull-cluster-api-provider-vsphere-verify-crds
always_run: false
run_if_changed: '^((api|cmd|config|contrib|controllers|pkg)/|Makefile|hack/verify-crds\.sh)'
run_if_changed: '^((api|cmd|config|contrib|controllers|pkg)/|Makefile|hack/verify-crds\.sh|go\.mod|go\.sum)'
decorate: true
path_alias: sigs.k8s.io/cluster-api-provider-vsphere
spec:
Expand All @@ -152,7 +152,7 @@ presubmits:

- name: pull-cluster-api-provider-vsphere-test
always_run: false
run_if_changed: '^((api|cmd|config|contrib|controllers|pkg|test)/|Makefile)'
run_if_changed: '^((api|cmd|config|contrib|controllers|pkg|test)/|Makefile|go\.mod|go\.sum)'
decorate: true
path_alias: sigs.k8s.io/cluster-api-provider-vsphere
spec:
Expand All @@ -177,7 +177,7 @@ presubmits:
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
always_run: false
run_if_changed: '^((api|cmd|config|contrib|controllers|pkg|test)/|Makefile)'
run_if_changed: '^((api|cmd|config|contrib|controllers|pkg|test)/|Makefile|go\.mod|go\.sum)'
decorate: true
path_alias: sigs.k8s.io/cluster-api-provider-vsphere
branches:
Expand Down Expand Up @@ -206,13 +206,16 @@ presubmits:
description: Runs integration tests

- name: pull-cluster-api-provider-vsphere-e2e
branches:
- ^master$
- ^release-1.*
labels:
preset-dind-enabled: "true"
preset-cluster-api-provider-vsphere-e2e-config: "true"
preset-cluster-api-provider-vsphere-gcs-creds: "true"
preset-kind-volume-mounts: "true"
always_run: false
run_if_changed: '^((api|cmd|config|contrib|controllers|pkg|test)/|Dockerfile|Makefile|hack/e2e\.sh)'
run_if_changed: '^((api|cmd|config|contrib|controllers|packaging|pkg|test)/|Dockerfile|Makefile|hack/e2e\.sh|go\.mod|go\.sum)'
decorate: true
path_alias: sigs.k8s.io/cluster-api-provider-vsphere
max_concurrency: 3
Expand All @@ -223,6 +226,9 @@ presubmits:
- runner.sh
args:
- ./hack/e2e.sh
env:
- name: GINKGO_FOCUS
value: "\\[PR-Blocking\\]"
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
Expand All @@ -237,3 +243,39 @@ presubmits:
testgrid-tab-name: pr-e2e
testgrid-alert-email: k8s-testing-clusterapi-vsphere+alerts@groups.vmware.com
description: Runs e2e tests

- name: pull-cluster-api-provider-vsphere-e2e-v1alpha
branches:
- ^release-0.7$
- ^release-0.8$
labels:
preset-dind-enabled: "true"
preset-cluster-api-provider-vsphere-e2e-config: "true"
preset-cluster-api-provider-vsphere-gcs-creds: "true"
preset-kind-volume-mounts: "true"
always_run: false
run_if_changed: '^((api|cmd|config|contrib|controllers|packaging|pkg|test)/|Dockerfile|Makefile|hack/e2e\.sh|go\.mod|go\.sum)'
decorate: true
path_alias: sigs.k8s.io/cluster-api-provider-vsphere
max_concurrency: 3
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20220124-681f3531ec-1.23
command:
- runner.sh
args:
- ./hack/e2e.sh
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
capabilities:
add: ["NET_ADMIN"]
resources:
requests:
cpu: "4000m"
memory: "6Gi"
annotations:
testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere
testgrid-tab-name: pr-e2e-v1alpha
testgrid-alert-email: k8s-testing-clusterapi-vsphere+alerts@groups.vmware.com
description: Runs e2e tests for v1alpha3 and v1alpha4 types

0 comments on commit 9e38157

Please sign in to comment.