Skip to content

Commit

Permalink
bring back bigger scale e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 committed Feb 7, 2024
1 parent 4a020dd commit 9d55549
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ jobs:
replicas: ["1", "3"]
test_cases:
- { requests: 60, expected_replicas: 1 }
# remove broken test, put this back when scaling issues are solved
# - { requests: 300, expected_replicas: 2 }
- { requests: 300, expected_replicas: 2 }
runs-on: ubuntu-latest
name: E2E Lingo.replicas=${{ matrix.replicas }} requests=${{ matrix.test_cases.requests }} expected_replicas=${{ matrix.test_cases.expected_replicas }}
steps:
Expand Down
6 changes: 4 additions & 2 deletions tests/e2e/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ until kubectl get deployment stapi-minilm-l6-v2; do
sleep 1
done


checks=$((REQUESTS / 2))
echo "Waiting for deployment to scale down back to 0 within ~2 minutes"
for i in {1..30}; do
if [ "$i" -eq 30 ]; then
for i in $(seq 1 ${checks}); do
if [ "${i}" -eq "${checks}" ]; then
echo "Test failed: Expected 0 replica after not having requests for more than 1 minute, got $replicas"
kubectl logs -l app=lingo --tail=-1
exit 1
Expand Down

0 comments on commit 9d55549

Please sign in to comment.