Skip to content

Commit

Permalink
To troubleshoot the issue, output the service log.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjgllgh committed Nov 19, 2024
1 parent 5111f94 commit 31ee15c
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,13 @@ jobs:
# Execute test by linkis-cli
POD_NAME=`kubectl get pods -n linkis -l app.kubernetes.io/instance=linkis-demo-mg-gateway -o jsonpath='{.items[0].metadata.name}'`
kubectl exec -it -n linkis ${POD_NAME} -- bash -c " \
sh /opt/linkis/bin/linkis-cli -engineType shell-1 -codeType shell -code \"pwd\" ";
kubectl exec -it -n linkis ${POD_NAME} -- bash -c " \
sh /opt/linkis/bin/linkis-cli -engineType python-python2 -codeType python -code 'print(\"hello\")' "
sh /opt/linkis/bin/linkis-cli --async=true -engineType shell-1 -codeType shell -code \"pwd\" ";
# Waiting for the task to be executed
sleep 120
#kubectl exec -it -n linkis ${POD_NAME} -- bash -c " \
#sh /opt/linkis/bin/linkis-cli -engineType python-python2 -codeType python -code 'print(\"hello\")' "
#todo
#kubectl exec -it -n linkis ${POD_NAME} -- bash -c " \
Expand All @@ -183,4 +186,24 @@ jobs:
#kubectl exec -it -n linkis ${POD_NAME} -- bash -c " \
#sh /opt/linkis/bin/linkis-cli -engineType spark-3.2.1 -codeType sql -code 'show databases' "
shell: bash

- name: get Server Log
run: |
# get publicservice log
POD_NAME=`kubectl get pods -n linkis -l app.kubernetes.io/instance=linkis-demo-ps-publicservice -o jsonpath='{.items[0].metadata.name}'`
kubectl logs -n linkis ${POD_NAME}
# get entrance log
POD_NAME=`kubectl get pods -n linkis -l app.kubernetes.io/instance=linkis-demo-cg-entrance -o jsonpath='{.items[0].metadata.name}'`
kubectl logs -n linkis ${POD_NAME}
# get linkismanager log
POD_NAME=`kubectl get pods -n linkis -l app.kubernetes.io/instance=linkis-demo-cg-linkismanager -o jsonpath='{.items[0].metadata.name}'`
kubectl logs -n linkis ${POD_NAME}
# get ecm log
POD_NAME=`kubectl get pods -n linkis -l app.kubernetes.io/instance=linkis-demo-cg-engineconnmanager -o jsonpath='{.items[0].metadata.name}'`
kubectl logs -n linkis ${POD_NAME}
shell: bash

0 comments on commit 31ee15c

Please sign in to comment.