Skip to content

Commit

Permalink
common-instancetypes: Add presubmits to validate individual preferenc…
Browse files Browse the repository at this point in the history
…es (#3132)

This adds presubmit jobs that validate individual preferences by trying
to boot a guest os with its preference.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
  • Loading branch information
0xFelix authored Dec 18, 2023
1 parent d77b896 commit e7be9d9
Showing 1 changed file with 203 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ presubmits:
branches:
- main
always_run: false
run_if_changed: "instancetypes/.*|preferences/.*|scripts/.*|tests/.*"
run_if_changed: "instancetypes/.*|preferences/.*|scripts/.*|tests/functests/.*|tests/vendor/.*|tests/go.*"
cluster: kubevirt-prow-workloads
decorate: true
decoration_config:
Expand All @@ -51,6 +51,208 @@ presubmits:
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-kubevirt-functest-fedora
branches:
- main
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-bazel-cache: "true"
preset-bazel-unnested: "true"
preset-docker-mirror-proxy: "true"
preset-gcs-credentials: "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 kubevirt-up && make kubevirt-sync && make kubevirt-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-kubevirt-functest-centos-7
branches:
- main
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-bazel-cache: "true"
preset-bazel-unnested: "true"
preset-docker-mirror-proxy: "true"
preset-gcs-credentials: "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 kubevirt-up && make kubevirt-sync && make kubevirt-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-kubevirt-functest-centos-stream-8
branches:
- main
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-bazel-cache: "true"
preset-bazel-unnested: "true"
preset-docker-mirror-proxy: "true"
preset-gcs-credentials: "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 kubevirt-up && make kubevirt-sync && make kubevirt-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-kubevirt-functest-centos-stream-9
branches:
- main
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-bazel-cache: "true"
preset-bazel-unnested: "true"
preset-docker-mirror-proxy: "true"
preset-gcs-credentials: "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 kubevirt-up && make kubevirt-sync && make kubevirt-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-kubevirt-functest-ubuntu
branches:
- main
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-bazel-cache: "true"
preset-bazel-unnested: "true"
preset-docker-mirror-proxy: "true"
preset-gcs-credentials: "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 kubevirt-up && make kubevirt-sync && make kubevirt-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:
Expand Down

0 comments on commit e7be9d9

Please sign in to comment.