Skip to content

Commit 5f78fe8

Browse files
authored
Added steps to disable csvcopy to diable (#413)
* Added steps to disable csvcopy to diable Signed-off-by: Tarun Kumar <[email protected]> * Add olm file Signed-off-by: Tarun Kumar <[email protected]> * minor changes Signed-off-by: Tarun Kumar <[email protected]> * Add documenatation Signed-off-by: Tarun Kumar <[email protected]> * openshiftlib Signed-off-by: Tarun Kumar <[email protected]>
1 parent f0619ff commit 5f78fe8

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

tests/Tests/700__sandbox/701__performance_sandbox.robot

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Library OperatingSystem
44
Library Collections
55
Library Process
66
Library String
7-
7+
Library OpenShiftLibrary
8+
Suite Setup Performance Suite Setup
89

910
*** Variables ***
1011
${NAMESPACE} openshift-kube-apiserver
@@ -20,7 +21,6 @@ Verify RHODS Performance For Sandbox Onboarding Process
2021
[Tags] ODS-1404
2122
... Sandbox
2223
... Performance-Test
23-
Run git clone https://github.com/codeready-toolchain/toolchain-e2e.git
2424
Run Keyword And Continue On Failure Run Performance Test On RHODS Operator
2525
Verify Sandbox Toolchain Data
2626

@@ -65,8 +65,8 @@ Run Performance Test On RHODS Operator
6565

6666
Verify Sandbox Toolchain Data
6767
[Documentation] Compare the memory utilization of kube api server pod
68-
${result} Run cat ${EXECDIR}/log.txt | grep "invalid\\|failed"
69-
IF "failed" in $result or "invalid" in $result
68+
${result} Run cat ${EXECDIR}/log.txt | grep "invalid\\|failed\\|error"
69+
IF "failed" in $result or "invalid" in $result or "error" in $result
7070
FAIL RHODS onboarding script is not executed successfully.Check log for more detail.
7171
ELSE
7272
${k_data} Run cat ${EXECDIR}/log.txt | grep -i "openshift-kube-apiserver"
@@ -79,3 +79,10 @@ Verify Sandbox Toolchain Data
7979
... expected in toolchain result=> ${km_data[0]} : ${m_value}
8080
END
8181
END
82+
83+
Performance Suite Setup
84+
[Documentation] Disable CopiedCSVs in OLMConfig to not watch csv created in every namespace
85+
... since copied CSVs consume an untenable amount of resources, such as OLM’s memory usage,
86+
... cluster etcd limits, and networking
87+
Oc Apply kind=OLMConfig src=tests/Tests/700__sandbox/olm.yaml
88+
Run git clone https://github.com/codeready-toolchain/toolchain-e2e.git

tests/Tests/700__sandbox/olm.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: operators.coreos.com/v1
2+
kind: OLMConfig
3+
metadata:
4+
name: cluster
5+
spec:
6+
features:
7+
disableCopiedCSVs: true

0 commit comments

Comments
 (0)