Skip to content

Commit 99689ae

Browse files
fix: reduce test file size from 512MB to 10MB for CI
- 3x512MB concurrent uploads overwhelm 100m CPU pods - 10MB files still test full upload/download/encryption flow - Prevents 503 Service Unavailable errors on resource-constrained runners
1 parent eff5ceb commit 99689ae

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

e2e/cluster.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ case "${1:-run}" in
3636
docker compose -f $COMPOSE_FILE exec helm-test kubectl get all -n s3proxy
3737
;;
3838
load-test)
39-
echo "Running S3 load test (3 concurrent 512MB uploads)..."
39+
echo "Running S3 load test (3 concurrent 10MB uploads)..."
4040
docker compose -f $COMPOSE_FILE exec helm-test sh -c '
4141
# Get pod names for load balancing verification
4242
PODS=$(kubectl get pods -n s3proxy -l app=s3proxy-python -o jsonpath="{.items[*].metadata.name}")
@@ -60,11 +60,11 @@ case "${1:-run}" in
6060
echo \"Creating test bucket...\"
6161
aws --endpoint-url http://s3-gateway.s3proxy s3 mb s3://load-test-bucket 2>/dev/null || true
6262
63-
# Generate 3 random 512MB files
64-
echo \"Generating 512MB test files...\"
63+
# Generate 3 random 10MB files (small for CI, still tests full flow)
64+
echo \"Generating 10MB test files...\"
6565
mkdir -p /tmp/testfiles
6666
for i in 1 2 3; do
67-
dd if=/dev/urandom of=/tmp/testfiles/file-\$i.bin bs=1M count=512 2>/dev/null &
67+
dd if=/dev/urandom of=/tmp/testfiles/file-\$i.bin bs=1M count=10 2>/dev/null &
6868
done
6969
wait
7070
echo \"Files generated\"
@@ -269,7 +269,7 @@ case "${1:-run}" in
269269
echo ""
270270
echo "Commands:"
271271
echo " run - Deploy Kind cluster and s3proxy"
272-
echo " load-test - Run 1.5GB upload test + verify load balancing"
272+
echo " load-test - Run 30MB upload test + verify load balancing"
273273
echo " status - Show deployment status"
274274
echo " pods - Show pod details and resources"
275275
echo " logs - Stream s3proxy logs"

0 commit comments

Comments
 (0)