fix(ci): improve workflow logging and bot notifications

- Link pre-commit bot comment to workflow run instead of PR for better debugging
- Dump docker container logs before removal to ensure logs are actually captured
This commit is contained in:
Ashwin Bharambe 2025-10-20 22:02:55 -07:00
parent 122de785c4
commit dd5182ceed
3 changed files with 6 additions and 5 deletions

View file

@ -238,6 +238,8 @@ if [[ "$STACK_CONFIG" == *"docker:"* && "$COLLECT_ONLY" == false ]]; then
echo "Stopping Docker container..."
container_name="llama-stack-test-$DISTRO"
if docker ps -a --format '{{.Names}}' | grep -q "^${container_name}$"; then
echo "Dumping container logs before stopping..."
docker logs "$container_name" > "docker-${DISTRO}-${INFERENCE_MODE}.log" 2>&1 || true
echo "Stopping and removing container: $container_name"
docker stop "$container_name" 2>/dev/null || true
docker rm "$container_name" 2>/dev/null || true