Skip to content

Commit eff5ceb

Browse files
fix: remove TTY flag and add error checking in load test
- Remove -t flag from kubectl run (no TTY in CI) - Add exit code check to fail if load test pod errors - Fixes false positive "Tests passed" when uploads actually failed
1 parent bba52cb commit eff5ceb

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/helm-install-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ jobs:
119119
--set redis-ha.enabled=false \
120120
--set externalRedis.url="redis://redis:6379/0" \
121121
--set replicaCount=3 \
122+
--set resources.limits.cpu=100m \
123+
--set resources.requests.cpu=50m \
122124
--wait \
123125
--timeout 5m
124126

e2e/cluster.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ case "${1:-run}" in
5050
done
5151
5252
echo "=== Creating test pod with AWS CLI ==="
53-
kubectl run s3-load-test -n s3proxy --rm -it --restart=Never \
53+
kubectl run s3-load-test -n s3proxy --rm -i --restart=Never \
5454
--image=amazon/aws-cli:latest \
5555
--env="AWS_ACCESS_KEY_ID=minioadmin" \
5656
--env="AWS_SECRET_ACCESS_KEY=minioadmin" \
@@ -174,6 +174,12 @@ case "${1:-run}" in
174174
fi
175175
"
176176
177+
LOAD_TEST_EXIT=$?
178+
if [ $LOAD_TEST_EXIT -ne 0 ]; then
179+
echo "✗ Load test failed with exit code $LOAD_TEST_EXIT"
180+
exit 1
181+
fi
182+
177183
# Verify load balancing
178184
echo ""
179185
echo "=== Checking load balancing ==="

0 commit comments

Comments
 (0)