Skip to content

Commit

Permalink
fetch volcano log when e2e failed
Browse files Browse the repository at this point in the history
Signed-off-by: lowang-bh <lhui_wang@163.com>
  • Loading branch information
lowang-bh committed Jun 18, 2023
1 parent 15ea54b commit a2c243f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,11 @@ 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() && env.GANG_SCHEDULER_NAME == 'volcano' }}
run: |
kubectl logs $(kubectl get po -n volcano-system | grep volcano-scheduler |cut -d" " -f1) -n volcano-system > volcano-scheduler.log
kubectl logs $(kubectl get po -n volcano-system | grep volcano-admission |cut -d" " -f1 | grep -v init) -n volcano-system > volcano-admission.log
kubectl logs $(kubectl get po -n volcano-system | grep volcano-controllers |cut -d" " -f1) -n volcano-system > volcano-controllers.log
kubectl describe podgroups.scheduling.volcano.sh -A

0 comments on commit a2c243f

Please sign in to comment.