Skip to content

Commit 3be7d44

Browse files
committed
ci : test k6 install and load test execution in e2e workflow
- Add another Makefile target for load test execution - Execute this target in e2e test script Signed-off-by: Rohan Kumar <[email protected]>
1 parent dad556b commit 3be7d44

File tree

4 files changed

+832
-0
lines changed

4 files changed

+832
-0
lines changed

.ci/openshift_e2e.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,6 @@ make install
7272
export CLEAN_UP_AFTER_SUITE="false"
7373
make test_e2e
7474
bumpLogs
75+
76+
make test_load ARGS="--mode operator --max-vus 250 --separate-namespaces false --test-duration-minutes 25 --dwo-namespace devworkspace-controller --logs-dir ${ARTIFACT_DIR}/load-testing-logs"
7577
make uninstall

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ test_e2e_debug:
180180
mkdir -p /tmp/artifacts
181181
dlv test --listen=:2345 --headless=true --api-version=2 ./test/e2e/cmd/workspaces_test.go -- --ginkgo.fail-fast --ginkgo.junit-report=/tmp/artifacts/junit-workspaces-operator.xml
182182

183+
test_load:
184+
@echo "Starting Load Testing Script..." && \
185+
bash ./test/load/runk6.sh $(ARGS) && \
186+
echo "Done"
187+
183188
### manager: Build manager binary
184189
manager: generate fmt vet
185190
go build -o bin/manager main.go

0 commit comments

Comments
 (0)