Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Add hack scripts for smoke-performance testing #1242

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions hack/perf/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

export WAIT_BEFORE=${WAIT_BEFORE:-120s}
export WAIT_AFTER=${WAIT_AFTER:-300s}
export TEST_PERFORMANCE_USERS_PER_SCENARIO=${TEST_PERFORMANCE_USERS_PER_SCENARIO:-50}
export SKIP_RESOURCE_COUNTS=${SKIP_RESOURCE_COUNTS:-true}
13 changes: 13 additions & 0 deletions hack/perf/reset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -x

pushd $(dirname $0)
source ./env.sh

if [ -d ../../test/performance/toolchain-e2e.git ]; then
pushd ../../test/performance/toolchain-e2e.git
make clean-e2e-resources;
popd;
fi

oc delete pod $(oc get pods -n openshift-operators -o json| jq -rc '.items[] | select(.metadata.name | startswith("service-binding-operator")).metadata.name') -n openshift-operators
popd
8 changes: 8 additions & 0 deletions hack/perf/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash -x

pushd $(dirname $0)
source ./env.sh
pushd ../../
time make clean test-performance test-performance-collect-kpi -o deploy-from-index-image
popd
popd