Skip to content

Commit 6397780

Browse files
committed
For CI debug
Signed-off-by: Yao, Qing <qing.yao@intel.com>
1 parent 1509212 commit 6397780

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

PolyLingua/tests/test_compose_on_gaudi.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,17 @@ EOF
9090

9191
# Start Docker Containers
9292
echo "Starting services with docker compose..."
93-
docker compose -f compose.yaml up -d > ${LOG_PATH}/start_services_with_compose.log 2>&1
93+
if ! docker compose -f compose.yaml up -d > ${LOG_PATH}/start_services_with_compose.log 2>&1; then
94+
echo "::error::Docker Compose failed to start. Printing logs..."
95+
cat "${LOG_PATH}/start_services_with_compose.log"
96+
echo "::group::Docker Compose PS"
97+
docker compose -f compose.yaml ps
98+
echo "::endgroup::"
99+
echo "::group::Docker Logs"
100+
docker compose -f compose.yaml logs
101+
echo "::endgroup::"
102+
exit 1
103+
fi
94104

95105
# Wait for vLLM service to be ready
96106
echo "Waiting for vLLM service to initialize (this may take several minutes)..."

0 commit comments

Comments
 (0)