Skip to content

Commit 1b24ec0

Browse files
committed
Dump logs for every container in e2e test
Signed-off-by: Jun Duan <jun.duan.phd@outlook.com>
1 parent cd147e8 commit 1b24ec0

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/ci-e2e-openshift.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,12 +490,15 @@ jobs:
490490
if: always()
491491
run: |
492492
for pod in $(kubectl get pods -n "$FMA_NAMESPACE" -o 'jsonpath={.items[*].metadata.name} ') ; do
493-
echo ""
494-
echo "=== Previous log of $pod ==="
495-
kubectl logs -n "$FMA_NAMESPACE" $pod --previous || true
496-
echo ""
497-
echo "=== Log of $pod ==="
498-
kubectl logs -n "$FMA_NAMESPACE" $pod || true
493+
containers=$(kubectl get pod -n "$FMA_NAMESPACE" "$pod" -o 'jsonpath={.spec.containers[*].name}')
494+
for container in $containers ; do
495+
echo ""
496+
echo "=== Previous log of $pod (container: $container) ==="
497+
kubectl logs -n "$FMA_NAMESPACE" "$pod" -c "$container" --previous || true
498+
echo ""
499+
echo "=== Log of $pod (container: $container) ==="
500+
kubectl logs -n "$FMA_NAMESPACE" "$pod" -c "$container" || true
501+
done
499502
done
500503
501504
- name: Dump vLLM instance logs from launchers

0 commit comments

Comments
 (0)