[CI/Build] Add CI end-to-end (E2E) tests (#139)
* [CI/Build] Add CI end-to-end (E2E) tests Signed-off-by: Chenchao Hu <huchenchao@example.com>
This commit is contained in:
25
ci/scripts/server/wait_vllm.sh
Executable file
25
ci/scripts/server/wait_vllm.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
source ci/scripts/common/env.sh
|
||||
source ci/scripts/common/log.sh
|
||||
|
||||
log "Waiting for vLLM to be ready: ${VLLM_API_BASE}/v1/models"
|
||||
|
||||
docker exec "${DOCKER_NAME}" bash -lc "
|
||||
set -e
|
||||
|
||||
for i in {1..90}; do
|
||||
if curl -sf ${VLLM_API_BASE}/v1/models >/dev/null; then
|
||||
echo 'vLLM is ready'
|
||||
tail -n 500 ${VLLM_LOG} || true
|
||||
exit 0
|
||||
fi
|
||||
sleep 5
|
||||
done
|
||||
|
||||
echo 'vLLM start failed'
|
||||
echo '==== last 500 lines of vllm.log ===='
|
||||
tail -n 500 ${VLLM_LOG} || true
|
||||
exit 1
|
||||
"
|
||||
Reference in New Issue
Block a user