Skip to content

Commit 77a6fc0

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 bcbaf1a commit 77a6fc0

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
@@ -178,6 +178,11 @@ test_e2e_debug:
178178
mkdir -p /tmp/artifacts
179179
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
180180

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

0 commit comments

Comments
 (0)