Skip to content

Commit

Permalink
Update common-instancetypes presubmits and add presubmits for release…
Browse files Browse the repository at this point in the history
…-0.4 (#3143)

* common-instancetypes: Update presubmit focus regexes

Update the focus regexes in the presubmits to match the new test names
with added test ids.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>

* common-instancetypes: Add presubmits for release-0.4

Add common-instancetypes presubmits for the release-0.4 branch.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>

* common-instancetypes: Enable branch-protection for all branches

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>

---------

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
  • Loading branch information
0xFelix authored Dec 22, 2023
1 parent cf45889 commit 4d47610
Show file tree
Hide file tree
Showing 3 changed files with 293 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,286 @@
presubmits:
kubevirt/common-instancetypes:
- name: pull-common-instancetypes
branches:
- release-0.4
always_run: true
optional: true
decorate: true
decoration_config:
timeout: 3h
max_concurrency: 5
labels:
preset-docker-mirror: "true"
cluster: kubevirt-prow-control-plane
spec:
containers:
- image: quay.io/kubevirtci/common-instancetypes-builder:v20231205-3b7ed7e
command:
- "/bin/bash"
- "-c"
- "make check-tree-clean all && cp _build/* /logs/artifacts"
resources:
requests:
memory: "1Gi"
- name: pull-common-instancetypes-cluster-functest
branches:
- release-0.4
always_run: false
run_if_changed: "instancetypes/.*|preferences/.*|scripts/.*|tests/functests/.*|tests/vendor/.*|tests/go.*"
cluster: kubevirt-prow-workloads
decorate: true
decoration_config:
grace_period: 5m0s
timeout: 1h0m0s
labels:
preset-docker-mirror-proxy: "true"
preset-podman-in-container-enabled: "true"
preset-podman-shared-images: "true"
preset-shared-images: "true"
max_concurrency: 1
spec:
containers:
- command:
- /usr/local/bin/runner.sh
- "/bin/sh"
- "-c"
- "make cluster-up && make cluster-sync && make cluster-functest"
env:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.skip="VirtualMachine using a preference is able to boot"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
requests:
memory: 20Gi
securityContext:
privileged: true
nodeSelector:
type: bare-metal-external
- name: pull-common-instancetypes-cluster-functest-fedora
branches:
- release-0.4
always_run: false
run_if_changed: "preferences/base/.*|preferences/components/.*|preferences/fedora/.*|tests/functests/.*|tests/vendor/.*|tests/go.*"
cluster: kubevirt-prow-workloads
decorate: true
decoration_config:
grace_period: 5m0s
timeout: 1h0m0s
labels:
preset-docker-mirror-proxy: "true"
preset-podman-in-container-enabled: "true"
preset-podman-shared-images: "true"
preset-shared-images: "true"
max_concurrency: 1
spec:
containers:
- command:
- /usr/local/bin/runner.sh
- "/bin/sh"
- "-c"
- "make cluster-up && make cluster-sync && make cluster-functest"
env:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with .*Fedora"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
requests:
memory: 20Gi
securityContext:
privileged: true
nodeSelector:
type: bare-metal-external
- name: pull-common-instancetypes-cluster-functest-centos-7
branches:
- release-0.4
always_run: false
run_if_changed: "preferences/base/.*|preferences/components/.*|preferences/centos/.*|tests/functests/.*|tests/vendor/.*|tests/go.*"
cluster: kubevirt-prow-workloads
decorate: true
decoration_config:
grace_period: 5m0s
timeout: 1h0m0s
labels:
preset-docker-mirror-proxy: "true"
preset-podman-in-container-enabled: "true"
preset-podman-shared-images: "true"
preset-shared-images: "true"
max_concurrency: 1
spec:
containers:
- command:
- /usr/local/bin/runner.sh
- "/bin/sh"
- "-c"
- "make cluster-up && make cluster-sync && make cluster-functest"
env:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with .*CentOS 7"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
requests:
memory: 20Gi
securityContext:
privileged: true
nodeSelector:
type: bare-metal-external
- name: pull-common-instancetypes-cluster-functest-centos-stream-8
branches:
- release-0.4
always_run: false
run_if_changed: "preferences/base/.*|preferences/components/.*|preferences/centos/.*|tests/functests/.*|tests/vendor/.*|tests/go.*"
cluster: kubevirt-prow-workloads
decorate: true
decoration_config:
grace_period: 5m0s
timeout: 1h0m0s
labels:
preset-docker-mirror-proxy: "true"
preset-podman-in-container-enabled: "true"
preset-podman-shared-images: "true"
preset-shared-images: "true"
max_concurrency: 1
spec:
containers:
- command:
- /usr/local/bin/runner.sh
- "/bin/sh"
- "-c"
- "make cluster-up && make cluster-sync && make cluster-functest"
env:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with .*CentOS Stream 8"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
requests:
memory: 20Gi
securityContext:
privileged: true
nodeSelector:
type: bare-metal-external
- name: pull-common-instancetypes-cluster-functest-centos-stream-9
branches:
- release-0.4
always_run: false
run_if_changed: "preferences/base/.*|preferences/components/.*|preferences/centos/.*|tests/functests/.*|tests/vendor/.*|tests/go.*"
cluster: kubevirt-prow-workloads
decorate: true
decoration_config:
grace_period: 5m0s
timeout: 1h0m0s
labels:
preset-docker-mirror-proxy: "true"
preset-podman-in-container-enabled: "true"
preset-podman-shared-images: "true"
preset-shared-images: "true"
max_concurrency: 1
spec:
containers:
- command:
- /usr/local/bin/runner.sh
- "/bin/sh"
- "-c"
- "make cluster-up && make cluster-sync && make cluster-functest"
env:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with .*CentOS Stream 9"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
requests:
memory: 20Gi
securityContext:
privileged: true
nodeSelector:
type: bare-metal-external
- name: pull-common-instancetypes-cluster-functest-ubuntu
branches:
- release-0.4
always_run: false
run_if_changed: "preferences/base/.*|preferences/components/.*|preferences/ubuntu/.*|tests/functests/.*|tests/vendor/.*|tests/go.*"
cluster: kubevirt-prow-workloads
decorate: true
decoration_config:
grace_period: 5m0s
timeout: 1h0m0s
labels:
preset-docker-mirror-proxy: "true"
preset-podman-in-container-enabled: "true"
preset-podman-shared-images: "true"
preset-shared-images: "true"
max_concurrency: 1
spec:
containers:
- command:
- /usr/local/bin/runner.sh
- "/bin/sh"
- "-c"
- "make cluster-up && make cluster-sync && make cluster-functest"
env:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with .*Ubuntu"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
requests:
memory: 20Gi
securityContext:
privileged: true
nodeSelector:
type: bare-metal-external
- name: pull-common-instancetypes-cluster-functest-validation-os
branches:
- release-0.4
always_run: false
run_if_changed: "preferences/base/.*|preferences/components/.*|preferences/windows/11/.*|tests/functests/.*|tests/vendor/.*|tests/go.*"
cluster: kubevirt-prow-workloads
decorate: true
decoration_config:
grace_period: 5m0s
timeout: 1h0m0s
labels:
preset-docker-mirror-proxy: "true"
preset-podman-in-container-enabled: "true"
preset-podman-shared-images: "true"
preset-shared-images: "true"
preset-kubevirtci-quay-credential: "true"
max_concurrency: 1
spec:
containers:
- command:
- /usr/local/bin/runner.sh
- "/bin/sh"
- "-c"
- |
cat "$QUAY_PASSWORD" | podman login --username $(cat "$QUAY_USER") --password-stdin=true quay.io
make cluster-up && make cluster-sync && make cluster-sync-containerdisks && make cluster-functest
env:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Windows guest with .*Validation OS"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
requests:
memory: 20Gi
securityContext:
privileged: true
nodeSelector:
type: bare-metal-external
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ presubmits:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with Fedora"'
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with .*Fedora"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
Expand Down Expand Up @@ -129,7 +129,7 @@ presubmits:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with CentOS 7"'
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with .*CentOS 7"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
Expand Down Expand Up @@ -168,7 +168,7 @@ presubmits:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with CentOS Stream 8"'
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with .*CentOS Stream 8"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
Expand Down Expand Up @@ -207,7 +207,7 @@ presubmits:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with CentOS Stream 9"'
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with .*CentOS Stream 9"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
Expand Down Expand Up @@ -246,7 +246,7 @@ presubmits:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with Ubuntu"'
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Linux guest with .*Ubuntu"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
Expand Down Expand Up @@ -288,7 +288,7 @@ presubmits:
- name: KUBEVIRT_MEMORY_SIZE
value: 16G
- name: FUNCTEST_EXTRA_ARGS
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Windows guest with Validation OS"'
value: '--ginkgo.focus="VirtualMachine using a preference is able to boot a Windows guest with .*Validation OS"'
image: quay.io/kubevirtci/golang:v20231115-51a244f
name: ""
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,7 @@ branch-protection:
main:
protect: true
common-instancetypes:
branches:
main:
protect: true
protect: true
common-templates:
branches:
master:
Expand Down

0 comments on commit 4d47610

Please sign in to comment.