Fix several hardware CI test

Including gvisor, grpc, and deb deploy test.
This commit is contained in:
Hui, Chunyang 2022-06-08 03:09:26 +00:00 committed by volcano
parent bf2d729e46
commit cf15b3d04a
2 changed files with 6 additions and 10 deletions

@ -573,13 +573,6 @@ jobs:
sleep ${{ env.nap_time }}; sleep ${{ env.nap_time }};
docker exec $grpc_test bash -c "cd /root/demos/grpc/grpc_musl && ./run_client_on_occlum.sh" docker exec $grpc_test bash -c "cd /root/demos/grpc/grpc_musl && ./run_client_on_occlum.sh"
- name: Clean the environment
if: ${{ always() }}
run: docker stop $grpc_test
- name: Restart the docker
run: docker start $grpc_test
- name: Prepare grpc glibc sample project - name: Prepare grpc glibc sample project
run: docker exec $grpc_test bash -c "cd /root/demos/grpc/grpc_glibc && ./prepare_client_server_glibc.sh" run: docker exec $grpc_test bash -c "cd /root/demos/grpc/grpc_glibc && ./prepare_client_server_glibc.sh"
@ -653,8 +646,11 @@ jobs:
- name: Make install - name: Make install
run: docker exec $gvisor_test bash -c "source /opt/intel/sgxsdk/environment; cd /root/occlum; OCCLUM_RELEASE_BUILD=y make install" run: docker exec $gvisor_test bash -c "source /opt/intel/sgxsdk/environment; cd /root/occlum; OCCLUM_RELEASE_BUILD=y make install"
- name: Clone gvisor code
run: docker exec $gvisor_test bash -c "git clone https://github.com/occlum/gvisor.git"
- name: Run gvisor syscall test - name: Run gvisor syscall test
run: docker exec $gvisor_test bash -c "cd /root/gvisor_occlum; ./run_occlum_passed_tests.sh" run: docker exec $gvisor_test bash -c "cd /root/gvisor/occlum; ./run_occlum_passed_tests.sh"
- name: Clean the environment - name: Clean the environment
if: ${{ always() }} if: ${{ always() }}

@ -1,8 +1,8 @@
#! /bin/bash #! /bin/bash
set -xe set -xe
if [[ $1 != "ubuntu18.04" && $1 != "centos8.2" ]]; then if [[ $1 != "ubuntu20.04" ]]; then
echo "Must choose between <ubuntu18.04/centos8.2>." echo "Only ubuntu20.04 is supported."
exit 1 exit 1
fi fi