Skip to content

Commit 229f05c

Browse files
committed
node dra: run_if_changed only for Go source code
These pre-submit checks are more useful when someone actually modifies source code and less useful for other changes (Go dependencies, Markdown).
1 parent 4a41917 commit 229f05c

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

config/jobs/kubernetes/sig-node/sig-node-presubmit.yaml

+7-8
Original file line numberDiff line numberDiff line change
@@ -3202,7 +3202,7 @@ presubmits:
32023202
always_run: false
32033203
# This covers most of the code related to dynamic resource allocation.
32043204
# Periodic variant: ci-kind-dra
3205-
run_if_changed: /dra/|/dynamicresources/|/resourceclaim/|/resourceclass/|/podscheduling/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/
3205+
run_if_changed: /(dra|dynamicresources|resourceclaim|deviceclass|resourceslice|resourceclaimtemplate|dynamic-resource-allocation|pkg/apis/resource|api/resource)/.*.go
32063206
# The tests might still be flaky or this job might get triggered accidentally for
32073207
# an unrelated PR.
32083208
optional: true
@@ -3259,7 +3259,7 @@ presubmits:
32593259
always_run: false
32603260
# This covers most of the code related to dynamic resource allocation.
32613261
# Periodic variant: ci-kind-dra-all
3262-
run_if_changed: /dra/|/dynamicresources/|/resourceclaim/|/resourceclass/|/podscheduling/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/
3262+
run_if_changed: /(dra|dynamicresources|resourceclaim|deviceclass|resourceslice|resourceclaimtemplate|dynamic-resource-allocation|pkg/apis/resource|api/resource)/.*.go
32633263
# The tests might still be flaky or this job might get triggered accidentally for
32643264
# an unrelated PR.
32653265
optional: true
@@ -4281,7 +4281,7 @@ presubmits:
42814281
# Automatically testing with one container runtime in one configuration is sufficient to detect basic problems in kubelet early.
42824282
# CRI-O was picked because it was solid for testing so far.
42834283
# Periodic variant: ci-node-e2e-crio-cgrpv1-dra-features
4284-
run_if_changed: /dra/|/dynamicresources/|/resourceclaim/|/resourceclass/|/podscheduling/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/|/test/e2e_node/dra_test.go
4284+
run_if_changed: (/dra/|/dynamicresources/|/resourceclaim/|/deviceclass/|/resourceslice/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/|/test/e2e_node/dra_).*\.(go|yaml)
42854285
optional: true
42864286
skip_report: false
42874287
labels:
@@ -4332,7 +4332,7 @@ presubmits:
43324332
# explicitly needs /test pull-kubernetes-node-e2e-crio-cgrpv1-dra-kubetest2 to run
43334333
always_run: false
43344334
# Don't run automatically while experimental!
4335-
# run_if_changed: /dra/|/dynamicresources/|/resourceclaim/|/resourceclass/|/podscheduling/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/|/test/e2e_node/dra_test.go
4335+
# run_if_changed: (/dra/|/dynamicresources/|/resourceclaim/|/deviceclass/|/resourceslice/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/|/test/e2e_node/dra_).*\.(go|yaml)
43364336
optional: true
43374337
skip_report: false
43384338
skip_branches:
@@ -4389,7 +4389,7 @@ presubmits:
43894389
# Automatically testing with one container runtime in one configuration is sufficient to detect basic problems in kubelet early.
43904390
# CRI-O was picked because it was solid for testing so far.
43914391
# Periodic variant: ci-node-e2e-cgrpv2-crio-dra
4392-
# run_if_changed: /dra/|/dynamicresources/|/resourceclaim/|/resourceclass/|/podscheduling/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/|/test/e2e_node/dra_test.go
4392+
# run_if_changed: (/dra/|/dynamicresources/|/resourceclaim/|/deviceclass/|/resourceslice/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/|/test/e2e_node/dra_).*\.(go|yaml)
43934393
optional: true
43944394
skip_report: false
43954395
labels:
@@ -4440,7 +4440,7 @@ presubmits:
44404440
# explicitly needs /test pull-kubernetes-node-e2e-crio-cgrpv2-dra-kubetest2 to run
44414441
always_run: false
44424442
# Don't run automatically while experimental!
4443-
# run_if_changed: /dra/|/dynamicresources/|/resourceclaim/|/resourceclass/|/podscheduling/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/|/test/e2e_node/dra_test.go
4443+
# run_if_changed: (/dra/|/dynamicresources/|/resourceclaim/|/deviceclass/|/resourceslice/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/|/test/e2e_node/dra_).*\.(go|yaml)
44444444
optional: true
44454445
skip_report: false
44464446
skip_branches:
@@ -4497,8 +4497,7 @@ presubmits:
44974497
# Automatically testing with one container runtime in one configuration is sufficient to detect basic problems in kubelet early.
44984498
# CRI-O was picked because it was solid for testing so far.
44994499
# Periodic variant: ci-node-e2e-containerd-1-7-dra
4500-
# run_if_changed: /dra/|/dynamicresources/|/resourceclaim/|/resourceclass/|/podscheduling/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/resource/|/api/resource/|/test/e2e_node/dra_test.go
4501-
optional: true
4500+
# run_if_changed: (/dra/|/dynamicresources/|/resourceclaim/|/deviceclass/|/resourceslice/|/resourceclaimtemplate/|/dynamic-resource-allocation/|/pkg/apis/r optional: true
45024501
skip_report: false
45034502
labels:
45044503
preset-service-account: "true"

0 commit comments

Comments
 (0)