Skip to content

Commit d93df3b

Browse files
committed
add docker logs
1 parent 96b5438 commit d93df3b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/actions/run-and-record-tests/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,14 @@ runs:
8282
echo "No recording changes"
8383
fi
8484
85-
- name: Write inference logs to file
85+
- name: Write docker logs to file
8686
if: ${{ always() }}
8787
shell: bash
8888
run: |
8989
sudo docker logs ollama > ollama-${{ inputs.inference-mode }}.log || true
90+
distro_name=$(echo "${{ inputs.stack-config }}" | sed 's/^docker://')
91+
stack_container_name="llama-stack-test-$distro_name"
92+
sudo docker logs $stack_container_name > docker-${distro_name}-${{ inputs.inference-mode }}.log || true
9093
9194
- name: Upload logs
9295
if: ${{ always() }}

scripts/docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ start_container() {
236236
echo "=== Starting Docker Container ==="
237237

238238
# Get the repo root for volume mount
239-
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
239+
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)
240240
REPO_ROOT=$(cd "$SCRIPT_DIR/.." && pwd)
241241

242242
# Determine the actual image name (may have localhost/ prefix)

0 commit comments

Comments
 (0)