From 5e159f9f2937317a254674cf69bcbbae623eaf2a Mon Sep 17 00:00:00 2001 From: lowang-bh Date: Sun, 18 Jun 2023 17:36:55 +0800 Subject: [PATCH] fetch volcano log when e2e failed Signed-off-by: lowang-bh --- .github/workflows/integration-tests.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/integration-tests.yaml b/.github/workflows/integration-tests.yaml index a6889dc0ce..3b6ea72a40 100644 --- a/.github/workflows/integration-tests.yaml +++ b/.github/workflows/integration-tests.yaml @@ -96,3 +96,15 @@ jobs: python3 -m pip install -e sdk/python; pytest sdk/python/test --log-cli-level=info --namespace=default env: GANG_SCHEDULER_NAME: ${{ matrix.gang-scheduler-name }} + + - name: Collect volcano logs + if: ${{ failure() && matrix.gang-scheduler-name == 'volcano' }} + run: | + echo "dump volcano-scheduler logs..." + kubectl logs -n volcano-system -l app=volcano-scheduler --tail=-1 + echo "dump volcano-admission logs..." + kubectl logs -n volcano-system -l app=volcano-admission --tail=-1 + echo "dump volcano-controllers logs..." + kubectl logs -n volcano-system -l app=volcano-controller --tail=-1 + echo "dump podgroups description..." + kubectl describe podgroups.scheduling.volcano.sh -A