From 60c2350fdfbd3d0c3ca21ab3b72e1c2e9aac852f Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Mon, 20 Oct 2025 22:25:55 -0700 Subject: [PATCH] fix(ci): read docker logs from file instead of removed container Use the log file dumped during container cleanup instead of trying to run docker logs on an already-removed container. --- scripts/integration-tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/integration-tests.sh b/scripts/integration-tests.sh index 433914967..93739052b 100755 --- a/scripts/integration-tests.sh +++ b/scripts/integration-tests.sh @@ -418,10 +418,10 @@ else echo "--- Last 100 lines of server.log ---" tail -100 server.log elif [[ "$STACK_CONFIG" == *"docker:"* ]]; then - container_name="llama-stack-test-$DISTRO" - if docker ps -a --format '{{.Names}}' | grep -q "^${container_name}$"; then - echo "--- Last 100 lines of docker logs for $container_name ---" - docker logs "$container_name" 2>&1 | tail -100 + docker_log_file="docker-${DISTRO}-${INFERENCE_MODE}.log" + if [[ -f "$docker_log_file" ]]; then + echo "--- Last 100 lines of $docker_log_file ---" + tail -100 "$docker_log_file" fi fi