Skip to content

Commit f21fef8

Browse files
authored
Merge pull request #35161 from pohly/dra-e2e
DRA integration: fix periodic job
2 parents 3378084 + bc7ca5b commit f21fef8

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

config/jobs/kubernetes/sig-node/dra-ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@ periodics:
414414
decorate: true
415415
decoration_config:
416416
timeout: 90m
417+
extra_refs:
418+
- org: kubernetes
419+
repo: kubernetes
420+
base_ref: master
421+
path_alias: k8s.io/kubernetes
422+
workdir: true
417423
spec:
418424
containers:
419425
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20250717-57d1ca3de9-master

config/jobs/kubernetes/sig-node/dra.generate.conf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ timeout = 90m
2121
e2e_node_timeout = 60m
2222
# Values > 0 enable version skew testing with an older kubelet version.
2323
kubelet_skew = 0
24+
# Can be set to non-empty for jobs which need extra refs.
25+
need_kubernetes_repo =
26+
need_test_infra_repo =
27+
need_containerd_20_repo =
2428

2529
# This jobs runs e2e.test with a focus on tests for the Dynamic Resource Allocation feature (currently beta)
2630
# on a kind cluster with containerd updated to a version with CDI support.
@@ -85,12 +89,15 @@ description = Runs integration tests for DRA which need some additional setup in
8589
use_dind = true
8690
use_dind_cdi = true
8791
job_type = integration
92+
need_kubernetes_repo = true
8893
cluster = eks-prow-build-cluster
8994
run_if_changed = /(dra|dynamicresources|resourceclaim|deviceclass|resourceslice|resourceclaimtemplate|dynamic-resource-allocation|pkg/apis/resource|api/resource)/.*.go
9095

9196
# This job runs e2e_node.test with a focus on tests for the Dynamic Resource Allocation feature (currently beta)
9297
[node-e2e-crio-cgrpv1-dra]
9398
job_type = node
99+
need_kubernetes_repo = true
100+
need_test_infra_repo = true
94101
description = Runs E2E node tests for Dynamic Resource Allocation beta features with CRI-O using cgroup v1
95102
image_config_file = /home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/crio/latest/image-config-cgroupv1.yaml
96103
inject_ssh_public_key = true
@@ -102,6 +109,8 @@ release_informing = true
102109
# This job is the same as ci-node-e2e-cgrpv1-crio-dra, but for cgroup v2
103110
[node-e2e-crio-cgrpv2-dra]
104111
job_type = node
112+
need_kubernetes_repo = true
113+
need_test_infra_repo = true
105114
description = Runs E2E node tests for Dynamic Resource Allocation beta features with CRI-O using cgroup v2
106115
image_config_file = /home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/crio/latest/image-config-cgroupv2.yaml
107116
inject_ssh_public_key = true
@@ -110,13 +119,18 @@ release_informing = true
110119
# This job runs the same tests as ci-node-e2e-crio-dra with Containerd 1.7 runtime
111120
[node-e2e-containerd-1-7-dra]
112121
job_type = node
122+
need_kubernetes_repo = true
123+
need_test_infra_repo = true
113124
description = Runs E2E node tests for Dynamic Resource Allocation beta features with containerd 1.7
114125
image_config_file = /home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/dra/image-config-containerd-1.7.yaml
115126
release_informing = true
116127

117128
# This job runs the same tests as ci-node-e2e-crio-dra with Containerd 2.0 runtime
118129
[node-e2e-containerd-2-0-dra]
119130
job_type = node
131+
need_kubernetes_repo = true
132+
need_test_infra_repo = true
133+
need_containerd_20_repo = true
120134
description = Runs E2E node tests for Dynamic Resource Allocation beta features with containerd 2.0
121135
image_config_file = /home/prow/go/src/k8s.io/test-infra/jobs/e2e_node/containerd/containerd-release-2.0/image-config.yaml
122136
release_informing = true

config/jobs/kubernetes/sig-node/dra.jinja

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,22 @@ presubmits:
6464
{%- if not ci %}
6565
path_alias: k8s.io/kubernetes
6666
{%- endif %}
67-
{%- if job_type == "node" %}
67+
{%- if ci and need_kubernetes_repo or need_test_infra_repo or need_containerd_20_repo %}
6868
extra_refs:
69-
{%- if ci %}
69+
{%- if ci and need_kubernetes_repo %}
7070
- org: kubernetes
7171
repo: kubernetes
7272
base_ref: master
7373
path_alias: k8s.io/kubernetes
7474
workdir: true
7575
{%- endif %}
76+
{%- if need_test_infra_repo %}
7677
- org: kubernetes
7778
repo: test-infra
7879
base_ref: master
7980
path_alias: k8s.io/test-infra
80-
{%- if "containerd-2-0" in job_name %}
81+
{%- endif %}
82+
{%- if need_containerd_20_repo %}
8183
- org: containerd
8284
repo: containerd
8385
base_ref: release/2.0

0 commit comments

Comments
 (0)