Skip to content

Commit ddc501c

Browse files
committed
TRT-2403: Restore to previous grouping
1 parent 205da96 commit ddc501c

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

pkg/test/ginkgo/cmd_runsuite.go

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -436,18 +436,6 @@ func (o *GinkgoRunSuiteOptions) Run(suite *TestSuite, clusterConfig *clusterdisc
436436
return strings.Contains(t.name, "[sig-storage]")
437437
})
438438

439-
cliTests, kubeTests := splitTests(kubeTests, func(t *testCase) bool {
440-
return strings.Contains(t.name, "[sig-cli]")
441-
})
442-
443-
appsTests, kubeTests := splitTests(kubeTests, func(t *testCase) bool {
444-
return strings.Contains(t.name, "[sig-apps]")
445-
})
446-
447-
nodeTests, kubeTests := splitTests(kubeTests, func(t *testCase) bool {
448-
return strings.Contains(t.name, "[sig-node]")
449-
})
450-
451439
networkK8sTests, kubeTests := splitTests(kubeTests, func(t *testCase) bool {
452440
return strings.Contains(t.name, "[sig-network]")
453441
})
@@ -461,17 +449,14 @@ func (o *GinkgoRunSuiteOptions) Run(suite *TestSuite, clusterConfig *clusterdisc
461449
})
462450

463451
// separate from cliTests
464-
mustGatherTests, cliTests := splitTests(cliTests, func(t *testCase) bool {
452+
mustGatherTests, openshiftTests := splitTests(openshiftTests, func(t *testCase) bool {
465453
return strings.Contains(t.name, "[sig-cli] oc adm must-gather")
466454
})
467455

468456
logrus.Infof("Found %d openshift tests", len(openshiftTests))
469457
logrus.Infof("Found %d kubernetes tests", len(kubeTests))
470458
logrus.Infof("Found %d storage tests", len(storageTests))
471459
logrus.Infof("Found %d network k8s tests", len(networkK8sTests))
472-
logrus.Infof("Found %d cli tests", len(cliTests))
473-
logrus.Infof("Found %d apps tests", len(appsTests))
474-
logrus.Infof("Found %d node tests", len(nodeTests))
475460
logrus.Infof("Found %d network tests", len(networkTests))
476461
logrus.Infof("Found %d builds tests", len(buildsTests))
477462
logrus.Infof("Found %d must-gather tests", len(mustGatherTests))
@@ -483,9 +468,6 @@ func (o *GinkgoRunSuiteOptions) Run(suite *TestSuite, clusterConfig *clusterdisc
483468
originalOpenshift := openshiftTests
484469
originalStorage := storageTests
485470
originalNetworkK8s := networkK8sTests
486-
originalCLI := cliTests
487-
originalApps := appsTests
488-
originalNode := nodeTests
489471
originalNetwork := networkTests
490472
originalBuilds := buildsTests
491473
originalMustGather := mustGatherTests
@@ -494,16 +476,13 @@ func (o *GinkgoRunSuiteOptions) Run(suite *TestSuite, clusterConfig *clusterdisc
494476
kubeTests = append(kubeTests, copyTests(originalKube)...)
495477
openshiftTests = append(openshiftTests, copyTests(originalOpenshift)...)
496478
storageTests = append(storageTests, copyTests(originalStorage)...)
497-
cliTests = append(cliTests, copyTests(originalCLI)...)
498-
appsTests = append(appsTests, copyTests(originalApps)...)
499-
nodeTests = append(nodeTests, copyTests(originalNode)...)
500479
networkK8sTests = append(networkK8sTests, copyTests(originalNetworkK8s)...)
501480
networkTests = append(networkTests, copyTests(originalNetwork)...)
502481
buildsTests = append(buildsTests, copyTests(originalBuilds)...)
503482
mustGatherTests = append(mustGatherTests, copyTests(originalMustGather)...)
504483
}
505484
}
506-
expectedTestCount += len(openshiftTests) + len(kubeTests) + len(storageTests) + len(cliTests) + len(appsTests) + len(nodeTests) + len(networkK8sTests) + len(networkTests) + len(buildsTests) + len(mustGatherTests)
485+
expectedTestCount += len(openshiftTests) + len(kubeTests) + len(storageTests) + len(networkK8sTests) + len(networkTests) + len(buildsTests) + len(mustGatherTests)
507486

508487
abortFn := neverAbort
509488
testCtx := ctx
@@ -538,18 +517,6 @@ func (o *GinkgoRunSuiteOptions) Run(suite *TestSuite, clusterConfig *clusterdisc
538517
q.Execute(testCtx, networkK8sTestsCopy, max(1, parallelism/2), testOutputConfig, abortFn) // run network tests separately.
539518
tests = append(tests, networkK8sTestsCopy...)
540519

541-
cliTestsCopy := copyTests(cliTests)
542-
q.Execute(testCtx, cliTestsCopy, max(1, parallelism/2), testOutputConfig, abortFn) // cli tests only run at half the parallelism, so we can avoid high cpu problems.
543-
tests = append(tests, cliTestsCopy...)
544-
545-
appsTestsCopy := copyTests(appsTests)
546-
q.Execute(testCtx, appsTestsCopy, max(1, parallelism/2), testOutputConfig, abortFn) // apps tests only run at half the parallelism, so we can avoid high cpu problems.
547-
tests = append(tests, appsTestsCopy...)
548-
549-
nodeTestsCopy := copyTests(nodeTests)
550-
q.Execute(testCtx, nodeTestsCopy, max(1, parallelism/2), testOutputConfig, abortFn) // run node tests separately at half the parallelism, so we can avoid high cpu problems.
551-
tests = append(tests, nodeTestsCopy...)
552-
553520
networkTestsCopy := copyTests(networkTests)
554521
q.Execute(testCtx, networkTestsCopy, max(1, parallelism/2), testOutputConfig, abortFn) // run network tests separately.
555522
tests = append(tests, networkTestsCopy...)

0 commit comments

Comments
 (0)