diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 85d3b9a23e..a7ad38b945 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -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 " \ @@ -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 \ No newline at end of file