Skip to content

Commit 54740c8

Browse files
committed
kind jobs: stop relying on implicit SKIP=[Serial]
All jobs using e2e-k8s.sh with PARALLEL=true automatically skipped serial tests even though technically they now could run in the job: https://github.com/kubernetes-sigs/kind/blame/d1eecc46e30cac9d35cd32dc52677ef75ec22e18/hack/ci/e2e-k8s.sh#L226-L234 kubernetes-sigs/kind#4015 is changing that mandatory skip for jobs using LABEL_FILTER because it may be desirable to include serial tests, depending on the job. It's also better to be explicit about it in each job's LABEL_FILTER to avoid confusion and potential mistakes (not running tests that were expected to run). To prepare for that change, jobs get updated based on the following principles: - If a presubmit runs infrequently and is only invoked to test certain aspects, then including serial tests is desirable to get full test coverage of that aspect. Example: pull-kubernetes-e2e-kind-beta-features - If a presubmit runs always, serial tests should be excluded. Example: pull-kubernetes-e2e-kind - Periodic jobs should always run all supported tests, including the serial ones. Example: ci-kubernetes-e2e-kind - Canary jobs match the behavior of the non-canary variant. Example: pull-kubernetes-e2e-kind-canary To make it more obvious where the upcoming e2e-k8s.sh will change test selection, "Includes serial tests for the sake of completeness." comments get added. Those are not true *right now*, but will be once the script is changed.
1 parent 5403aee commit 54740c8

File tree

6 files changed

+24
-28
lines changed

6 files changed

+24
-28
lines changed

config/jobs/kubernetes-sigs/kind/kind-presubmits.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ presubmits:
191191
- cd ./../../k8s.io/kubernetes && ./../../sigs.k8s.io/kind/hack/ci/e2e.sh
192192
env:
193193
- name: LABEL_FILTER
194-
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky"
194+
value: "Conformance && Feature: isEmpty && !Slow && !Disruptive && !Flaky && !Serial"
195195
- name: PARALLEL
196196
value: "true"
197197
- name: IP_FAMILY
@@ -236,7 +236,7 @@ presubmits:
236236
- cd ./../../k8s.io/kubernetes && ./../../sigs.k8s.io/kind/hack/ci/e2e.sh
237237
env:
238238
- name: LABEL_FILTER
239-
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky"
239+
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky && !Serial"
240240
- name: PARALLEL
241241
value: "true"
242242
# we need privileged mode in order to do docker in docker
@@ -278,7 +278,7 @@ presubmits:
278278
- cd ./../../k8s.io/kubernetes && ./../../sigs.k8s.io/kind/hack/ci/e2e.sh
279279
env:
280280
- name: LABEL_FILTER
281-
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky"
281+
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky && !Serial"
282282
- name: PARALLEL
283283
value: "true"
284284
# we need privileged mode in order to do docker in docker

config/jobs/kubernetes-sigs/kube-network-policies/kube-network-policies-presubmits.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ presubmits:
2626
- name: "PARALLEL"
2727
value: "true"
2828
- name: LABEL_FILTER
29-
value: "!Slow && !Disruptive && !Flaky && Feature: containsAny NetworkPolicy"
29+
value: "!Serial && !Slow && !Disruptive && !Flaky && Feature: containsAny NetworkPolicy"
3030
- name: SKIP
3131
value: \[Feature:SCTPConnectivity\]
3232
command:
@@ -79,7 +79,7 @@ presubmits:
7979
- name: "PARALLEL"
8080
value: "true"
8181
- name: LABEL_FILTER
82-
value: "!Slow && !Disruptive && !Flaky && Feature: containsAny NetworkPolicy"
82+
value: "!Serial && !Slow && !Disruptive && !Flaky && Feature: containsAny NetworkPolicy"
8383
- name: SKIP
8484
value: \[Feature:SCTPConnectivity\]
8585
command:

config/jobs/kubernetes/sig-arch/kubernetes-code-organization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ presubmits:
2828
- ./../test-infra/experiment/dependencies/update-dependencies-and-run-tests.sh --test-mode kind
2929
env:
3030
- name: LABEL_FILTER
31+
# Includes serial tests for the sake of completeness.
3132
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky"
3233
- name: PARALLEL
3334
value: "true"
@@ -119,6 +120,7 @@ presubmits:
119120
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
120121
env:
121122
- name: LABEL_FILTER
123+
# Includes serial tests for the sake of completeness.
122124
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky"
123125
- name: PARALLEL
124126
value: "true"

config/jobs/kubernetes/sig-network/sig-network-kind.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ periodics:
948948
- name: RUNTIME_CONFIG
949949
value: '{"api/all":"true"}'
950950
- name: LABEL_FILTER
951-
value: "(Conformance || sig-network ) && !Feature: containsAny {Networking-IPv6, LoadBalancer, IPv6DualStack} && !Disruptive && !Flaky"
951+
value: "(Conformance || sig-network ) && !Serial && !Feature: containsAny {Networking-IPv6, LoadBalancer, IPv6DualStack} && !Disruptive && !Flaky"
952952
- name: SKIP
953953
value: SCTPConnectivity
954954
- name: PARALLEL

config/jobs/kubernetes/sig-release/release-branch-jobs/1.34.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ periodics:
10291029
-C "${PATH%%:*}/" && e2e-k8s.sh
10301030
env:
10311031
- name: LABEL_FILTER
1032-
value: 'Feature: isEmpty && !Slow && !Disruptive && !Flaky'
1032+
value: '!Serial && Feature: isEmpty && !Slow && !Disruptive && !Flaky'
10331033
- name: PARALLEL
10341034
value: "true"
10351035
image: gcr.io/k8s-staging-test-infra/krte:v20250925-95b5a2c7a5-1.34
@@ -1076,7 +1076,7 @@ periodics:
10761076
- name: IP_FAMILY
10771077
value: ipv6
10781078
- name: LABEL_FILTER
1079-
value: 'Feature: isEmpty && !Slow && !Disruptive && !Flaky'
1079+
value: '!Serial && Feature: isEmpty && !Slow && !Disruptive && !Flaky'
10801080
- name: PARALLEL
10811081
value: "true"
10821082
image: gcr.io/k8s-staging-test-infra/krte:v20250925-95b5a2c7a5-1.34
@@ -1202,6 +1202,7 @@ presubmits:
12021202
--test-mode kind
12031203
env:
12041204
- name: LABEL_FILTER
1205+
# Includes serial tests for the sake of completeness.
12051206
value: 'Feature: isEmpty && !Slow && !Disruptive && !Flaky'
12061207
- name: PARALLEL
12071208
value: "true"
@@ -1280,6 +1281,7 @@ presubmits:
12801281
- -C "${PATH%%:*}/" && e2e-k8s.sh
12811282
env:
12821283
- name: LABEL_FILTER
1284+
# Includes serial tests for the sake of completeness.
12831285
value: 'Feature: isEmpty && !Slow && !Disruptive && !Flaky'
12841286
- name: PARALLEL
12851287
value: "true"

config/jobs/kubernetes/sig-testing/kubernetes-kind-presubmits.yaml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ presubmits:
2323
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
2424
env:
2525
- name: LABEL_FILTER
26-
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky"
26+
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky && !Serial"
2727
- name: PARALLEL
2828
value: "true"
2929
# we need privileged mode in order to do docker in docker
@@ -70,7 +70,7 @@ presubmits:
7070
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
7171
env:
7272
- name: LABEL_FILTER
73-
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky"
73+
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky && !Serial"
7474
- name: PARALLEL
7575
value: "true"
7676
# we need privileged mode in order to do docker in docker
@@ -112,7 +112,7 @@ presubmits:
112112
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
113113
env:
114114
- name: LABEL_FILTER
115-
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky"
115+
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky && !Serial"
116116
- name: PARALLEL
117117
value: "true"
118118
# enable IPV6 in bootstrap image
@@ -162,7 +162,7 @@ presubmits:
162162
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && e2e-k8s.sh
163163
env:
164164
- name: LABEL_FILTER
165-
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky"
165+
value: "Feature: isEmpty && !Slow && !Disruptive && !Flaky && !Serial"
166166
- name: PARALLEL
167167
value: "true"
168168
# enable IPV6 in bootstrap image
@@ -300,6 +300,7 @@ presubmits:
300300
- name: RUNTIME_CONFIG
301301
value: '{"api/beta":"true", "api/ga":"true"}'
302302
- name: LABEL_FILTER
303+
# Includes serial tests for the sake of completeness.
303304
value: "Feature: isSubsetOf OffByDefault && !Alpha && !Deprecated && !Slow && !Disruptive && !Flaky"
304305
- name: PARALLEL
305306
value: "true"
@@ -345,11 +346,8 @@ presubmits:
345346
value: '{"AllBeta":true}'
346347
- name: RUNTIME_CONFIG
347348
value: '{"api/beta":"true", "api/ga":"true"}'
348-
- name: FOCUS
349-
value: ""
350-
- name: SKIP
351-
value: ""
352349
- name: LABEL_FILTER
350+
# Includes serial tests for the sake of completeness.
353351
value: "Feature: isEmpty && !Deprecated && !Slow && !Disruptive && !Flaky"
354352
- name: PARALLEL
355353
value: "true"
@@ -395,11 +393,8 @@ presubmits:
395393
value: '{"AllBeta":true}'
396394
- name: RUNTIME_CONFIG
397395
value: '{"api/beta":"true", "api/ga":"true"}'
398-
- name: FOCUS
399-
value: ""
400-
- name: SKIP
401-
value: ""
402396
- name: LABEL_FILTER
397+
# Includes serial tests for the sake of completeness.
403398
value: "Conformance && !Deprecated && !Slow && !Disruptive && !Flaky"
404399
- name: PARALLEL
405400
value: "true"
@@ -447,6 +442,7 @@ presubmits:
447442
- name: RUNTIME_CONFIG
448443
value: '{"api/all":"true"}'
449444
- name: LABEL_FILTER
445+
# Includes serial tests for the sake of completeness.
450446
value: "Feature: isSubsetOf OffByDefault && !Deprecated && !Slow && !Disruptive && !Flaky"
451447
- name: PARALLEL
452448
value: "true"
@@ -493,11 +489,8 @@ presubmits:
493489
value: '{"AllAlpha":true,"AllBeta":true,"EventedPLEG":false}'
494490
- name: RUNTIME_CONFIG
495491
value: '{"api/all":"true"}'
496-
- name: FOCUS
497-
value: ""
498-
- name: SKIP
499-
value: ""
500492
- name: LABEL_FILTER
493+
# Includes serial tests for the sake of completeness.
501494
value: "Feature: isEmpty && !Deprecated && !Slow && !Disruptive && !Flaky"
502495
- name: PARALLEL
503496
value: "true"
@@ -544,11 +537,8 @@ presubmits:
544537
value: '{"AllAlpha":true,"AllBeta":true,"EventedPLEG":false}'
545538
- name: RUNTIME_CONFIG
546539
value: '{"api/all":"true"}'
547-
- name: FOCUS
548-
value: ""
549-
- name: SKIP
550-
value: ""
551540
- name: LABEL_FILTER
541+
# Includes serial tests for the sake of completeness.
552542
value: "Conformance && !Deprecated && !Slow && !Disruptive && !Flaky"
553543
- name: PARALLEL
554544
value: "true"
@@ -595,6 +585,7 @@ presubmits:
595585
- name: RUNTIME_CONFIG
596586
value: '{"api/all":"true"}'
597587
- name: LABEL_FILTER
588+
# Includes serial tests for the sake of completeness.
598589
value: "Feature: isSubsetOf OffByDefault && !Deprecated && !Slow && !Disruptive && !Flaky"
599590
- name: PARALLEL
600591
value: "true"
@@ -653,6 +644,7 @@ presubmits:
653644
- name: RUNTIME_CONFIG
654645
value: '{"api/alpha":"true", "api/ga":"true"}'
655646
- name: LABEL_FILTER
647+
# Includes serial tests for the sake of completeness.
656648
value: "Feature: isSubsetOf EventedPLEG && !Slow && !Disruptive && !Flaky"
657649
- name: PARALLEL
658650
value: "true"

0 commit comments

Comments
 (0)