Skip to content

Commit

Permalink
Add inference graph pod logs for debugging in status check
Browse files Browse the repository at this point in the history
Signed-off-by: Sivanantham Chinnaiyan <[email protected]>
  • Loading branch information
sivanantha321 committed Feb 16, 2024
1 parent 1aebced commit a988430
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ jobs:
kubectl get pods -n kserve
kubectl describe pods -n kserve
- name: Run all E2E tests except graph
- name: Run predictor E2E tests
timeout-minutes: 40
run: |
./test/scripts/gh-actions/run-e2e-tests.sh "predictor" "6"
Expand Down Expand Up @@ -845,8 +845,6 @@ jobs:
./test/scripts/gh-actions/run-e2e-tests.sh "kourier" "6"
kubectl get pods -n kserve
- name: Check system status
if: always()
run: |
Expand Down
8 changes: 8 additions & 0 deletions test/scripts/gh-actions/status-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ for pod in $(kubectl get pods -l 'component in (explainer)' -o jsonpath='{.items
done
echo "::endgroup::"

echo "::group::InferenceGraph Pod logs"
for pod in $(kubectl get pods -l 'serving.kserve.io/inferencegraph=model-chainer' -o jsonpath='{.items[*].metadata.name}' -n kserve-ci-e2e-test); do
echo "===================================== Logs for Graph Pod: $pod ========================================="
kubectl logs "$pod" -c user-container -n kserve-ci-e2e-test --tail 500
echo "================================================================================================================"
done
echo "::endgroup::"

shopt -s nocasematch
if [[ $# -eq 1 && "$1" == "kourier" ]]; then
echo "::group::Kourier Gateway Pod logs"
Expand Down

0 comments on commit a988430

Please sign in to comment.