Skip to content

Commit 6f5a2f9

Browse files
jpayne3506matmerr
authored andcommitted
ci: add OS scale timeout (#2490)
1 parent 5d668d0 commit 6f5a2f9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/integration/load/load_test.go

+8-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ var noopDeploymentMap = map[string]string{
4040
"linux": manifestDir + "/noop-deployment-linux.yaml",
4141
}
4242

43+
// This map is used exclusively for TestLoad. Windows is expected to take 10-15 minutes per iteration.
44+
// Will change this as scale testing results are verified. This will ensure we keep a standard performance metric.
45+
var scaleTimeoutMap = map[string]time.Duration{
46+
"windows": 15 * time.Minute,
47+
"linux": 10 * time.Minute,
48+
}
49+
4350
/*
4451
In order to run the scale tests, you need a k8s cluster and its kubeconfig.
4552
If no kubeconfig is passed, the test will attempt to find one in the default location for kubectl config.
@@ -64,8 +71,7 @@ todo: consider adding the following scenarios
6471
*/
6572
func TestLoad(t *testing.T) {
6673
clientset := kubernetes.MustGetClientset()
67-
68-
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Minute)
74+
ctx, cancel := context.WithTimeout(context.Background(), time.Duration(testConfig.Iterations)*scaleTimeoutMap[testConfig.OSType])
6975
defer cancel()
7076

7177
// Create namespace if it doesn't exist

0 commit comments

Comments
 (0)