Skip to content

Commit b97e95d

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 cf4c38d commit b97e95d

File tree

5 files changed

+489
-1
lines changed

5 files changed

+489
-1
lines changed

.ci/oci.Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,10 @@ RUN yum install --assumeyes -d1 python3-pip nodejs gettext && \
3030
chmod +x ./kubectl && \
3131
mv ./kubectl /usr/local/bin && \
3232
# Install chectl
33-
bash <(curl -sL https://che-incubator.github.io/chectl/install.sh) --channel=next
33+
bash <(curl -sL https://che-incubator.github.io/chectl/install.sh) --channel=next && \
34+
# Install k6 manually
35+
curl -L https://github.com/grafana/k6/releases/latest/download/k6-v1.1.0-linux-amd64.tar.gz -o k6.tar.gz && \
36+
tar -xzf k6.tar.gz && \
37+
mv k6-v*/k6 /usr/local/bin/k6 && \
38+
chmod +x /usr/local/bin/k6 && \
39+
rm -rf k6.tar.gz k6-v*

.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_dwo_load
7577
make uninstall

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ test_e2e_debug:
115115
mkdir -p /tmp/artifacts
116116
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
117117

118+
test_dwo_load:
119+
@echo "Starting Load Testing Script..." && \
120+
bash ./test/load/runk6.sh && \
121+
echo "Done"
122+
118123
### manager: Build manager binary
119124
manager: generate fmt vet
120125
go build -o bin/manager main.go

0 commit comments

Comments
 (0)