From 5c1ecc9ff58537dcf75b9a0c9a2511b0d085f8c7 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Fri, 17 Jan 2025 23:31:26 -0800 Subject: [PATCH] network debug --- .github/workflows/publish-to-docker.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-to-docker.yml b/.github/workflows/publish-to-docker.yml index 0cfb3775e..975718f4c 100644 --- a/.github/workflows/publish-to-docker.yml +++ b/.github/workflows/publish-to-docker.yml @@ -95,6 +95,7 @@ jobs: run: | cd distributions/fireworks docker compose up -d + cd .. # Wait for the container to start timeout=300 while ! curl -s -f http://localhost:8321/v1/version > /dev/null && [ $timeout -gt 0 ]; do @@ -108,15 +109,15 @@ jobs: exit 1 fi - cd ../.. + - name: Run simple models list test on docker server + run: | + curl http://localhost:8321/v1/models/list + + # TODO: figure out why client cannot find server but curl works + - name: Run pytest on docker server + run: | pip install pytest pytest-md-report - LLAMA_STACK_BASE_URL="http://localhost:8321" pytest -v tests/client-sdk/inference/test_inference.py --md-report --md-report-verbose=1 - - - # - name: Run test on docker server - # run: | - # pip install pytest pytest-md-report - # LLAMA_STACK_BASE_URL="http://localhost:8321" pytest -v tests/client-sdk/inference/test_inference.py --md-report --md-report-verbose=1 + LLAMA_STACK_BASE_URL="http://0.0.0.0:8321" pytest -v tests/client-sdk/inference/test_inference.py --md-report --md-report-verbose=1 # - name: Push to dockerhub # run: |