Skip to content

Commit

Permalink
chore: fix ModuleNotFoundError
Browse files Browse the repository at this point in the history
  • Loading branch information
JashBook committed Nov 17, 2023
1 parent 588d256 commit 6889bda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/kubechat-test-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ jobs:
secrets: inherit

deploy-kubechat:
needs: [ create-postgresql, create-redis, create-qdrant, create-elasticsearch, create-vllm-baichuan, create-vllm-vicuna ]
needs: [ terraform-init-k8s, create-postgresql, create-redis, create-qdrant, create-elasticsearch, create-vllm-baichuan, create-vllm-vicuna ]
uses: ./.github/workflows/test-kubechat.yml
with:
cloud-provider: ${{ inputs.CLOUD_PROVIDER }}
Expand All @@ -238,11 +238,10 @@ jobs:
test-args: "${{ inputs.ARGS }}"
k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
branch-name: ${{ inputs.BRANCH_NAME }}
branch-name2: ${{ inputs.BRANCH_NAME2 }}
secrets: inherit

test-kubechat:
needs: [ deploy-kubechat ]
needs: [ terraform-init-k8s, deploy-kubechat ]
uses: ./.github/workflows/test-kubechat.yml
with:
cloud-provider: ${{ inputs.CLOUD_PROVIDER }}
Expand All @@ -252,7 +251,6 @@ jobs:
test-type-name: "test-kubechat"
test-args: "${{ inputs.ARGS }}"
k8s-cluster-name: ${{ needs.terraform-init-k8s.outputs.k8s-cluster-name }}
branch-name: ${{ inputs.BRANCH_NAME }}
branch-name2: ${{ inputs.BRANCH_NAME2 }}
secrets: inherit

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-kubechat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
--name ${{ inputs.k8s-cluster-name }}
fi
- name: run kubechat test
- name: deploy kubechat
if: ${{ inputs.test-type == '0' }}
run: |
file_log="$(date +%Y-%m-%d-%T)".log
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
echo test-result=[PASSED] >> $GITHUB_OUTPUT
fi
- name: checkout customsuites
- name: checkout customsuites code
if: ${{ inputs.test-type != '0' }}
uses: actions/checkout@v4
with:
Expand All @@ -180,10 +180,9 @@ jobs:
path: ./customsuites
token: ${{ env.GITHUB_TOKEN }}

- name: run kubechat test
- name: port-forward KubeChat Service
if: ${{ inputs.test-type != '0' }}
run: |
echo "port-forwarding KubeChat service..."
nohup kubectl port-forward service/kubechat --namespace kubechat 8000:8000 &
- name: run kubechat test
Expand All @@ -192,6 +191,7 @@ jobs:
file_log="$(date +%Y-%m-%d-%T)".log
touch ${file_log}
cd customsuites
pip3 install -r requirements.txt
python3 infratest.py --type 7 | tee -a ${file_log}
test_ret="$( grep "【FAILED】" ${file_log}|| true )"
Expand Down

0 comments on commit 6889bda

Please sign in to comment.