Skip to content

Commit

Permalink
Up wait time on online test
Browse files Browse the repository at this point in the history
  • Loading branch information
luandro committed Mar 25, 2024
1 parent 3ffc013 commit 7f9cb0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/online-stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Run docker-compose
run: docker-compose up -d
- name: Basic wait
run: sleep 100
run: sleep 120
- name: List running containers
run: docker ps
- name: Log last 10 lines from all containers
Expand All @@ -55,6 +55,7 @@ jobs:
echo $commit_hash
success=false
for i in {1..5}; do
echo "Attempt $i:"
response=$(docker exec kakawa_rag_api python -c "import requests; response = requests.get('http:https://kakawa_rag_api:8000/rag?query=How%20to%20install%20Mapeo&user_id=github_action&session_id=$commit_hash', headers={'accept': 'application/json'}); print(response.status_code)")
if [ "$response" -eq 200 ]; then
echo "RAG API endpoint is up and running."
Expand Down

0 comments on commit 7f9cb0f

Please sign in to comment.