File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
test/integration/scheduler_perf Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,12 @@ make test-integration WHAT=./test/integration/scheduler_perf KUBE_TEST_ARGS=-use
110
110
```
111
111
112
112
Integration testing uses the same ` config/performance-config.yaml ` as
113
- benchmarking. By default, workloads labeled as ` integration-test ` are executed
114
- as part of integration testing. ` -test-scheduling-label-filter ` can be used to
115
- change that.
113
+ 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.
116
116
117
- We should make each test case with ` integration-test ` label very small,
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.
119
+
120
+ We should make each test case with ` short ` label very small,
118
121
so that all tests with the label should take less than 5 min to complete.
Original file line number Diff line number Diff line change 1
1
# The following labels are used in this file:
2
2
# - fast: short execution time, ideally less than 30 seconds
3
3
# - integration-test: used to select workloads that
4
- # run in pull -kubernetes-integration. Choosing those tests
4
+ # run in ci -kubernetes-integration-master . Choosing those tests
5
5
# is a tradeoff between code coverage and overall runtime.
6
- # We should make each test case with integration-test label very small,
6
+ # - short: used to select workloads that
7
+ # run in pull-kubernetes-integration.
8
+ # We should make each test case with short label very small,
7
9
# so that all tests with the label should take less than 5 min to complete.
10
+ # They can be run using --short=true flag.
8
11
# - performance: used to select workloads that run
9
12
# in ci-benchmark-scheduler-perf. Such workloads
10
13
# must run long enough (ideally, longer than 10 seconds)
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ package benchmark
18
18
19
19
import (
20
20
"testing"
21
+
22
+ "k8s.io/utils/ptr"
21
23
)
22
24
23
25
func TestScheduling (t * testing.T ) {
@@ -29,6 +31,10 @@ func TestScheduling(t *testing.T) {
29
31
t .Fatal (err )
30
32
}
31
33
34
+ if testing .Short () {
35
+ testSchedulingLabelFilter = ptr .To (* testSchedulingLabelFilter + ",+short" )
36
+ }
37
+
32
38
for _ , tc := range testCases {
33
39
t .Run (tc .Name , func (t * testing.T ) {
34
40
for _ , w := range tc .Workloads {
You can’t perform that action at this time.
0 commit comments