We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fd30a2 commit b840c5cCopy full SHA for b840c5c
.github/workflows/pr-e2e-tests.yaml
@@ -67,6 +67,19 @@ jobs:
67
- name: Install dependencies
68
run: poetry install --with dev
69
- name: Wait for Weaviate to start
70
- run: count=0; until curl --fail -s localhost:8080/v1/.well-known/ready; do ((count++)); [ $count -ge 10 ] && echo "Reached maximum retry limit" && exit 1; sleep 15; done
+ run: |
71
+ count=0
72
+ until curl -s localhost:8080/v1/.well-known/ready; do
73
+ exit_code=$?
74
+ # Check if the exit code is 22 (HTTP failure) or 7 (connection refused)
75
+ if [ $exit_code -eq 22 ] || [ $exit_code -eq 7 ]; then
76
+ ((count++))
77
+ if [ $count -ge 10 ]; then
78
+ echo "Reached maximum retry limit"
79
+ exit 1
80
+ fi
81
+ sleep 15
82
83
+ done
84
- name: Run tests
85
run: poetry run pytest ./tests/e2e
0 commit comments