Skip to content

Commit 77372cf

Browse files
committed
Label short workloads in scheduler_perf tests
1 parent 09fc399 commit 77372cf

File tree

3 files changed

+24
-16
lines changed

3 files changed

+24
-16
lines changed

test/integration/scheduler_perf/README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,21 @@ make test-integration WHAT=./test/integration/scheduler_perf KUBE_TEST_ARGS=-use
111111

112112
Integration testing uses the same `config/performance-config.yaml` as
113113
benchmarking. By default, workloads labeled as `integration-test`
114-
are executed as part of integration testing. `-test-scheduling-label-filter` can be used to
115-
change that.
114+
are executed as part of integration testing (in ci-kubernetes-integration-master job).
115+
`-test-scheduling-label-filter` can be used to change that.
116+
All test cases should have at least one workload labeled as `integration-test`.
116117

117-
Running the integration tests as above will only execute the workloads labeled as `short`.
118-
`SHORT=--short=false` variable added to the command can be used to disable this filtering.
118+
Running the integration tests with command above will only execute the workloads labeled as `short`.
119+
`SHORT=--short=false` variable added to the command can be used to disable this filtering.
119120

120121
We should make each test case with `short` label very small,
121122
so that all tests with the label should take less than 5 min to complete.
123+
The test cases labeled as `short` are executed in pull-kubernetes-integration job.
124+
125+
### Labels used by CI jobs
126+
127+
| CI Job | Labels |
128+
|----------------------------------|------------------------|
129+
| ci-kubernetes-integration-master | integration-test |
130+
| pull-kubernetes-integration | integration-test,short |
131+
| ci-benchmark-scheduler-perf | performance |

test/integration/scheduler_perf/config/performance-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
collectMetrics: true
3030
workloads:
3131
- name: 5Nodes
32-
labels: [integration-test, fast]
32+
labels: [integration-test, fast, short]
3333
params:
3434
initNodes: 5
3535
initPods: 5
@@ -70,7 +70,7 @@
7070
namespace: sched-1
7171
workloads:
7272
- name: 5Nodes
73-
labels: [integration-test, fast]
73+
labels: [integration-test, fast, short]
7474
params:
7575
initNodes: 5
7676
initPods: 1
@@ -106,7 +106,7 @@
106106
collectMetrics: true
107107
workloads:
108108
- name: 5Nodes
109-
labels: [integration-test, fast]
109+
labels: [integration-test, fast, short]
110110
params:
111111
initNodes: 5
112112
initPods: 5
@@ -239,7 +239,7 @@
239239
collectMetrics: true
240240
workloads:
241241
- name: 5Nodes
242-
labels: [integration-test, fast]
242+
labels: [integration-test, fast, short]
243243
params:
244244
initNodes: 5
245245
initPods: 5
@@ -438,7 +438,7 @@
438438
collectMetrics: true
439439
workloads:
440440
- name: 5Nodes
441-
labels: [integration-test, fast]
441+
labels: [integration-test, fast, short]
442442
params:
443443
initNodes: 5
444444
initPods: 5
@@ -479,7 +479,7 @@
479479
collectMetrics: true
480480
workloads:
481481
- name: 5Nodes
482-
labels: [integration-test, fast]
482+
labels: [integration-test, fast, short]
483483
params:
484484
initNodes: 5
485485
initPods: 10
@@ -617,7 +617,7 @@
617617
collectMetrics: true
618618
workloads:
619619
- name: 5Nodes
620-
labels: [integration-test, fast]
620+
labels: [integration-test, fast, short]
621621
params:
622622
initNodes: 5
623623
initPods: 20
@@ -686,7 +686,7 @@
686686
collectMetrics: true
687687
workloads:
688688
- name: 5Nodes/2InitPods
689-
labels: [integration-test, fast]
689+
labels: [integration-test, fast, short]
690690
params:
691691
initNodes: 5
692692
initPods: 2
@@ -1181,7 +1181,7 @@
11811181
collectMetrics: true
11821182
workloads:
11831183
- name: fast
1184-
labels: [integration-test, fast]
1184+
labels: [integration-test, fast, short]
11851185
params:
11861186
# This testcase runs through all code paths without
11871187
# taking too long overall.

test/integration/scheduler_perf/scheduler_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ package benchmark
1818

1919
import (
2020
"testing"
21-
22-
"k8s.io/utils/ptr"
2321
)
2422

2523
func TestScheduling(t *testing.T) {
@@ -32,7 +30,7 @@ func TestScheduling(t *testing.T) {
3230
}
3331

3432
if testing.Short() {
35-
testSchedulingLabelFilter = ptr.To(*testSchedulingLabelFilter + ",+short")
33+
*testSchedulingLabelFilter += ",+short"
3634
}
3735

3836
for _, tc := range testCases {

0 commit comments

Comments
 (0)