From a988430137e4d342824763acce6fc1456ca5fec9 Mon Sep 17 00:00:00 2001 From: Sivanantham Chinnaiyan Date: Fri, 16 Feb 2024 13:46:01 +0530 Subject: [PATCH] Add inference graph pod logs for debugging in status check Signed-off-by: Sivanantham Chinnaiyan --- .github/workflows/e2e-test.yml | 4 +--- test/scripts/gh-actions/status-check.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 538a01fbcbb..d6b34bac382 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -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" @@ -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: | diff --git a/test/scripts/gh-actions/status-check.sh b/test/scripts/gh-actions/status-check.sh index aa289d402c8..bdd28387b73 100755 --- a/test/scripts/gh-actions/status-check.sh +++ b/test/scripts/gh-actions/status-check.sh @@ -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"