Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit e596d2d

Browse files
committed
test: run OLM tests first
This seems to help in the CI, perhaps because performance of the cluster is still as good as it gets.
1 parent 27d5f2f commit e596d2d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/e2e/deploy/deploy.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,15 @@ func findOperatorOnce(c *Cluster) (*Deployment, error) {
10121012
return deployment, nil
10131013
}
10141014

1015+
// The order matters here: the deployments listed first will also run first,
1016+
// and somehow that helps OLM. When it was run at the end, there were OLM
1017+
// errors ("operatorhubio-catalog-lbdrz 0/1 CrashLoopBackOff") that did not
1018+
// occur locally or when running the tests on a "fresh" CI cluster.
10151019
var allDeployments = []string{
1020+
"olm", // operator installed by OLM
1021+
"olm-lvm-production",
1022+
"olm-direct-production",
1023+
10161024
"lvm-production",
10171025
"direct-production",
10181026
"operator",
@@ -1021,9 +1029,6 @@ var allDeployments = []string{
10211029
// Uses kube-system, to ensure that deployment in a namespace also works,
10221030
// and *no* controller.
10231031
"operator-direct-production",
1024-
"olm", // operator installed by OLM
1025-
"olm-lvm-production",
1026-
"olm-direct-production",
10271032
}
10281033
var deploymentRE = regexp.MustCompile(`^(operator|olm)?-?(\w*)?-?(testing|production)?-?([0-9\.]*)$`)
10291034

0 commit comments

Comments
 (0)