Skip to content

Commit

Permalink
sig-node: generate DRA jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
bart0sh committed Jan 7, 2025
1 parent 44b79d5 commit 4173535
Show file tree
Hide file tree
Showing 7 changed files with 503 additions and 349 deletions.
22 changes: 11 additions & 11 deletions config/jobs/kubernetes/sig-node/dra-canary.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

# GENERATED FILE - DO NOT EDIT!
#
# Instead, modify dra.jinja and run `make generate-jobs`.
presubmits:
kubernetes/kubernetes:
- name: canary-kind-dra
Expand All @@ -20,7 +24,7 @@ presubmits:
path_alias: k8s.io/kubernetes
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241218-d4b51bc3e8-master
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241230-3006692a6f-master
command:
- runner.sh
args:
Expand All @@ -31,12 +35,8 @@ presubmits:
curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" kind
kind build node-image --image=dra/node:latest .
trap 'kind export logs "${ARTIFACTS}/kind"; kind delete cluster' EXIT
# Which DRA features exist can change over time.
features=( $(grep '"DRA' pkg/features/kube_features.go | sed 's/.*"\(.*\)"/\1/') )
echo "Enabling DRA feature(s): ${features[*]}."
# Those additional features are not in kind.yaml, but they can be added at the end.
kind create cluster --retain --config <(cat test/e2e/dra/kind.yaml; for feature in ${features}; do echo " ${feature}: true"; done) --image dra/node:latest
KUBERNETES_PROVIDER=local KUBECONFIG=${HOME}/.kube/config GINKGO_PARALLEL_NODES=8 E2E_REPORT_DIR=${ARTIFACTS} GINKGO_TIMEOUT=1h hack/ginkgo-e2e.sh -ginkgo.label-filter="Feature: containsAny DynamicResourceAllocation && Feature: isSubsetOf { Alpha, Beta, DynamicResourceAllocation$(for feature in ${features}; do echo , ${feature}; done)} && !Flaky && !Slow"
kind create cluster --retain --config test/e2e/dra/kind.yaml --image dra/node:latest
KUBERNETES_PROVIDER=local KUBECONFIG=${HOME}/.kube/config GINKGO_PARALLEL_NODES=8 E2E_REPORT_DIR=${ARTIFACTS} GINKGO_TIMEOUT=2h30m hack/ginkgo-e2e.sh -ginkgo.label-filter='Feature: containsAny DynamicResourceAllocation && Feature: isSubsetOf { Beta, DynamicResourceAllocation } && !Flaky'
# docker-in-docker needs privileged mode
securityContext:
privileged: true
Expand Down Expand Up @@ -68,7 +68,7 @@ presubmits:
path_alias: k8s.io/kubernetes
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241218-d4b51bc3e8-master
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241230-3006692a6f-master
command:
- runner.sh
args:
Expand Down Expand Up @@ -123,7 +123,7 @@ presubmits:
path_alias: k8s.io/test-infra
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241218-d4b51bc3e8-master
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241230-3006692a6f-master
command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
Expand Down Expand Up @@ -177,7 +177,7 @@ presubmits:
path_alias: k8s.io/test-infra
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241218-d4b51bc3e8-master
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241230-3006692a6f-master
command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
Expand Down Expand Up @@ -231,7 +231,7 @@ presubmits:
path_alias: k8s.io/test-infra
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241218-d4b51bc3e8-master
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241230-3006692a6f-master
command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@

# GENERATED FILE - DO NOT EDIT!
#
# Instead, modify dra.jinja and run `make generate-jobs`.
periodics:
# This jobs runs e2e.test with a focus on tests for the Dynamic Resource Allocation feature (currently beta)
# on a kind cluster with containerd updated to a version with CDI support.
- name: ci-kind-dra
cluster: eks-prow-build-cluster
interval: 6h
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
annotations:
testgrid-dashboards: sig-node-dynamic-resource-allocation
testgrid-tab-name: ci-kind-dra
description: Runs E2E tests for Dynamic Resource Allocation beta features against a Kubernetes master cluster created with sigs.k8s.io/kind
testgrid-alert-email: [email protected]
testgrid-alert-email: [email protected],[email protected]
fork-per-release: "true"
decorate: true
decoration_config:
timeout: 3h
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
timeout: 90m
extra_refs:
- org: kubernetes
repo: kubernetes
Expand All @@ -29,15 +30,14 @@ periodics:
- runner.sh
args:
- /bin/sh
- -xc
- >
make WHAT="github.com/onsi/ginkgo/v2/ginkgo k8s.io/kubernetes/test/e2e/e2e.test" &&
curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" kind &&
kind build node-image --image=dra/node:latest . &&
trap 'kind export logs "${ARTIFACTS}/kind"; kind delete cluster' EXIT &&
kind create cluster --retain --config test/e2e/dra/kind.yaml --image dra/node:latest &&
- -xce
- |
make WHAT="github.com/onsi/ginkgo/v2/ginkgo k8s.io/kubernetes/test/e2e/e2e.test"
curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" kind
kind build node-image --image=dra/node:latest .
trap 'kind export logs "${ARTIFACTS}/kind"; kind delete cluster' EXIT
kind create cluster --retain --config test/e2e/dra/kind.yaml --image dra/node:latest
KUBERNETES_PROVIDER=local KUBECONFIG=${HOME}/.kube/config GINKGO_PARALLEL_NODES=8 E2E_REPORT_DIR=${ARTIFACTS} GINKGO_TIMEOUT=2h30m hack/ginkgo-e2e.sh -ginkgo.label-filter='Feature: containsAny DynamicResourceAllocation && Feature: isSubsetOf { Beta, DynamicResourceAllocation } && !Flaky'
# docker-in-docker needs privileged mode
securityContext:
privileged: true
Expand All @@ -49,26 +49,21 @@ periodics:
cpu: 2
memory: 9Gi

# This jobs runs e2e.test with a focus on tests for the Dynamic Resource Allocation feature (currently alpha, soon beta)
# on a kind cluster with containerd updated to a version with CDI support.
#
# Compared to ci-kind-dra, this one enables all DRA-related features.
- name: ci-kind-dra-all
cluster: eks-prow-build-cluster
interval: 6h
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
annotations:
testgrid-dashboards: sig-node-dynamic-resource-allocation
testgrid-tab-name: ci-kind-dra-all
description: Runs E2E tests for Dynamic Resource Allocation alpha and beta features against a Kubernetes master cluster created with sigs.k8s.io/kind
testgrid-alert-email: [email protected]
testgrid-alert-email: [email protected],[email protected]
fork-per-release: "true"
decorate: true
decoration_config:
timeout: 3h
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
timeout: 90m
extra_refs:
- org: kubernetes
repo: kubernetes
Expand All @@ -80,10 +75,9 @@ periodics:
command:
- runner.sh
args:
- /bin/bash
- -xc
- /bin/sh
- -xce
- |
set -ex
make WHAT="github.com/onsi/ginkgo/v2/ginkgo k8s.io/kubernetes/test/e2e/e2e.test"
curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" kind
kind build node-image --image=dra/node:latest .
Expand All @@ -94,7 +88,6 @@ periodics:
# Those additional features are not in kind.yaml, but they can be added at the end.
kind create cluster --retain --config <(cat test/e2e/dra/kind.yaml; for feature in ${features}; do echo " ${feature}: true"; done) --image dra/node:latest
KUBERNETES_PROVIDER=local KUBECONFIG=${HOME}/.kube/config GINKGO_PARALLEL_NODES=8 E2E_REPORT_DIR=${ARTIFACTS} GINKGO_TIMEOUT=1h hack/ginkgo-e2e.sh -ginkgo.label-filter="Feature: containsAny DynamicResourceAllocation && Feature: isSubsetOf { Alpha, Beta, DynamicResourceAllocation$(for feature in ${features}; do echo , ${feature}; done)} && !Flaky && !Slow"
# docker-in-docker needs privileged mode
securityContext:
privileged: true
Expand All @@ -106,19 +99,19 @@ periodics:
cpu: 2
memory: 9Gi

# This job runs e2e_node.test with a focus on tests for the Dynamic Resource Allocation feature (currently beta)
- name: ci-node-e2e-cgrpv1-crio-dra
cluster: k8s-infra-prow-build
cluster: eks-prow-build-cluster
interval: 6h
labels:
preset-service-account: "true"
preset-k8s-ssh: "true"
preset-pull-kubernetes-e2e: "true"
preset-pull-kubernetes-e2e-gce: "true"
annotations:
testgrid-dashboards: sig-node-cri-o, sig-node-dynamic-resource-allocation
testgrid-tab-name: ci-node-e2e-cgrpv1-crio-dra
testgrid-dashboards: sig-node-dynamic-resource-allocation, sig-node-cri-o
description: Runs E2E node tests for Dynamic Resource Allocation beta features with CRI-O using cgroup v1
testgrid-alert-email: [email protected],[email protected]
fork-per-release: "true"
labels:
preset-service-account: "true"
preset-k8s-ssh: "true"
decorate: true
decoration_config:
timeout: 90m
Expand All @@ -127,7 +120,6 @@ periodics:
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
workdir: true
- org: kubernetes
repo: test-infra
base_ref: master
Expand All @@ -145,7 +137,7 @@ periodics:
- '--node-test-args=--feature-gates=DynamicResourceAllocation=true --service-feature-gates=DynamicResourceAllocation=true --runtime-config=api/beta=true --container-runtime-endpoint=unix:///var/run/crio/crio.sock --container-runtime-process-name=/usr/local/bin/crio --container-runtime-pid-file= --kubelet-flags="--cgroup-driver=systemd --cgroups-per-qos=true --cgroup-root=/ --runtime-cgroups=/system.slice/crio.service --kubelet-cgroups=/system.slice/kubelet.service" --extra-log="{\"name\": \"crio.log\", \"journalctl\": [\"-u\", \"crio\"]}"'
- --node-tests=true
- --provider=gce
- '--test_args=--timeout=1h --label-filter="Feature: containsAny DynamicResourceAllocation && Feature: isSubsetOf { Beta, DynamicResourceAllocation } && !Flaky"'
- '--test_args=--timeout=1h --label-filter="Feature: containsAny DynamicResourceAllocation && Feature: isSubsetOf { Beta, DynamicResourceAllocation } && !Flaky && !Slow"'
- --timeout=65m
- --node-args=--image-config-file=/home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/crio/latest/image-config-cgroupv1-serial.yaml
env:
Expand All @@ -161,19 +153,19 @@ periodics:
cpu: 2
memory: 9Gi

# This job runs e2e_node.test with a focus on tests for the Dynamic Resource Allocation feature (currently beta)
- name: ci-node-e2e-cgrpv2-crio-dra
cluster: k8s-infra-prow-build
cluster: eks-prow-build-cluster
interval: 6h
labels:
preset-service-account: "true"
preset-k8s-ssh: "true"
preset-pull-kubernetes-e2e: "true"
preset-pull-kubernetes-e2e-gce: "true"
annotations:
testgrid-dashboards: sig-node-cri-o, sig-node-dynamic-resource-allocation
testgrid-dashboards: sig-node-dynamic-resource-allocation, sig-node-cri-o
description: Runs E2E node tests for Dynamic Resource Allocation beta features with CRI-O using cgroup v2
testgrid-tab-name: ci-node-e2e-cgrpv2-crio-dra
testgrid-alert-email: [email protected],[email protected]
fork-per-release: "true"
labels:
preset-service-account: "true"
preset-k8s-ssh: "true"
decorate: true
decoration_config:
timeout: 90m
Expand All @@ -182,7 +174,6 @@ periodics:
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
workdir: true
- org: kubernetes
repo: test-infra
base_ref: master
Expand All @@ -200,7 +191,7 @@ periodics:
- '--node-test-args=--feature-gates=DynamicResourceAllocation=true --service-feature-gates=DynamicResourceAllocation=true --runtime-config=api/beta=true --container-runtime-endpoint=unix:///var/run/crio/crio.sock --container-runtime-process-name=/usr/local/bin/crio --container-runtime-pid-file= --kubelet-flags="--cgroup-driver=systemd --cgroups-per-qos=true --cgroup-root=/ --runtime-cgroups=/system.slice/crio.service --kubelet-cgroups=/system.slice/kubelet.service" --extra-log="{\"name\": \"crio.log\", \"journalctl\": [\"-u\", \"crio\"]}"'
- --node-tests=true
- --provider=gce
- '--test_args=--timeout=1h --label-filter="Feature: containsAny DynamicResourceAllocation && Feature: isSubsetOf { Beta, DynamicResourceAllocation } && !Flaky"'
- '--test_args=--timeout=1h --label-filter="Feature: containsAny DynamicResourceAllocation && Feature: isSubsetOf { Beta, DynamicResourceAllocation } && !Flaky && !Slow"'
- --timeout=65m
- --node-args=--image-config-file=/home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/crio/latest/image-config-cgroupv2-serial.yaml
env:
Expand All @@ -216,19 +207,19 @@ periodics:
cpu: 2
memory: 9Gi

# This job runs the same tests as ci-node-e2e-crio-dra with Containerd 1.7 runtime
- name: ci-node-e2e-containerd-1-7-dra
cluster: k8s-infra-prow-build
cluster: eks-prow-build-cluster
interval: 6h
labels:
preset-service-account: "true"
preset-k8s-ssh: "true"
preset-pull-kubernetes-e2e: "true"
preset-pull-kubernetes-e2e-gce: "true"
annotations:
testgrid-dashboards: sig-node-dynamic-resource-allocation
testgrid-tab-name: ci-node-e2e-containerd-1-7-dra
testgrid-dashboards: sig-node-dynamic-resource-allocation, sig-node-containerd
description: Runs E2E node tests for Dynamic Resource Allocation beta features with containerd
testgrid-alert-email: [email protected],[email protected]
fork-per-release: "true"
labels:
preset-service-account: "true"
preset-k8s-ssh: "true"
decorate: true
decoration_config:
timeout: 90m
Expand All @@ -237,7 +228,6 @@ periodics:
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
workdir: true
- org: kubernetes
repo: test-infra
base_ref: master
Expand All @@ -251,10 +241,10 @@ periodics:
args:
- --deployment=node
- --gcp-zone=us-west1-b
- '--node-test-args=--feature-gates=DynamicResourceAllocation=true --service-feature-gates=DynamicResourceAllocation=true --runtime-config=api/beta=true --container-runtime-endpoint=unix:///var/run/containerd/containerd.sock --container-runtime-process-name=/usr/local/bin/containerd --container-runtime-pid-file= --kubelet-flags="--cgroup-driver=systemd --cgroups-per-qos=true --cgroup-root=/ --runtime-cgroups=/system.slice/containerd.service --kubelet-cgroups=/system.slice/kubelet.service" --extra-log="{\"name\": \"containerd.log\", \"journalctl\": [\"-u\", \"containerd\"]}"'
- '--node-test-args=--feature-gates=DynamicResourceAllocation=true --service-feature-gates=DynamicResourceAllocation=true --runtime-config=api/beta=true --container-runtime-endpoint=unix:///run/containerd/containerd.sock --container-runtime-process-name=/usr/bin/containerd --container-runtime-pid-file= --kubelet-flags="--cgroup-driver=systemd --cgroups-per-qos=true --cgroup-root=/ --runtime-cgroups=/system.slice/containerd.service --kubelet-cgroups=/system.slice/kubelet.service" --extra-log="{\"name\": \"containerd.log\", \"journalctl\": [\"-u\", \"containerd\"]}"'
- --node-tests=true
- --provider=gce
- '--test_args=--timeout=1h --label-filter="Feature: containsAny DynamicResourceAllocation && Feature: isSubsetOf { Beta, DynamicResourceAllocation } && !Flaky"'
- '--test_args=--timeout=1h --label-filter="Feature: containsAny DynamicResourceAllocation && Feature: isSubsetOf { Beta, DynamicResourceAllocation } && !Flaky && !Slow"'
- --timeout=65m
- --node-args=--image-config-file=/home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/dra/image-config-containerd-1.7.yaml
resources:
Expand Down
Loading

0 comments on commit 4173535

Please sign in to comment.