Refine log output for demo test CI
This commit is contained in:
		
							parent
							
								
									ffe532f2f5
								
							
						
					
					
						commit
						cb75897085
					
				
							
								
								
									
										30
									
								
								.github/workflows/demo_test.yml
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										30
									
								
								.github/workflows/demo_test.yml
									
									
									
									
										vendored
									
									
								
							| @ -413,11 +413,15 @@ jobs: | |||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/pytorch/distributed; SGX_MODE=SIM ./build_pytorch_occlum_instance.sh" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/pytorch/distributed; SGX_MODE=SIM ./build_pytorch_occlum_instance.sh" | ||||||
| 
 | 
 | ||||||
|     - name: Start pytorch Occlum instance node one |     - name: Start pytorch Occlum instance node one | ||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/pytorch/distributed/occlum_instance; WORLD_SIZE=2 RANK=0 occlum run /bin/python3 mnist.py --epoch 3 --no-cuda --seed 42 --save-model &" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/pytorch/distributed/occlum_instance; WORLD_SIZE=2 RANK=0 occlum run /bin/python3 mnist.py --epoch 3 --no-cuda --seed 42 --save-model > pytorch_1.log 2>&1 &" | ||||||
| 
 | 
 | ||||||
|     - name: Start pytorch Occlum instance node two |     - name: Start pytorch Occlum instance node two | ||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/pytorch/distributed/occlum_instance_2; WORLD_SIZE=2 RANK=1 occlum run /bin/python3 mnist.py --epoch 3 --no-cuda --seed 42 --save-model" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/pytorch/distributed/occlum_instance_2; WORLD_SIZE=2 RANK=1 occlum run /bin/python3 mnist.py --epoch 3 --no-cuda --seed 42 --save-model" | ||||||
|      | 
 | ||||||
|  |     - name: Check error log | ||||||
|  |       if: ${{ always() }} | ||||||
|  |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/pytorch/distributed/occlum_instance; cat pytorch_1.log" | ||||||
|  | 
 | ||||||
|     - name: Clean distributed Pytorch test |     - name: Clean distributed Pytorch test | ||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos && rm -rf ./pytorch/distributed" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos && rm -rf ./pytorch/distributed" | ||||||
| 
 | 
 | ||||||
| @ -748,7 +752,7 @@ jobs: | |||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/flink && SGX_MODE=SIM ./run_flink_jobmanager_on_host.sh" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/flink && SGX_MODE=SIM ./run_flink_jobmanager_on_host.sh" | ||||||
| 
 | 
 | ||||||
|     - name: Run flink taskmanager |     - name: Run flink taskmanager | ||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/flink && SGX_MODE=SIM ./run_flink_on_occlum_glibc.sh tm" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/flink && SGX_MODE=SIM ./run_flink_on_occlum_glibc.sh tm > flink.log 2>&1 &" | ||||||
| 
 | 
 | ||||||
|     - name: Run flink task |     - name: Run flink task | ||||||
|       run: | |       run: | | ||||||
| @ -759,6 +763,10 @@ jobs: | |||||||
|       if: ${{ always() }} |       if: ${{ always() }} | ||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/flink; cat occlum_instance_taskmanager/flink--taskmanager-0.log" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/flink; cat occlum_instance_taskmanager/flink--taskmanager-0.log" | ||||||
| 
 | 
 | ||||||
|  |     - name: Check error log | ||||||
|  |       if: ${{ always() }} | ||||||
|  |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/flink; cat flink.log" | ||||||
|  | 
 | ||||||
|     - name: Clean Flink test |     - name: Clean Flink test | ||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos && rm -rf ./flink" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos && rm -rf ./flink" | ||||||
| 
 | 
 | ||||||
| @ -847,13 +855,17 @@ jobs: | |||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/golang/vault && ./prepare_vault.sh" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/golang/vault && ./prepare_vault.sh" | ||||||
| 
 | 
 | ||||||
|     - name: Run the Vault server on Occlum |     - name: Run the Vault server on Occlum | ||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/golang/vault && SGX_MODE=SIM ./run_occlum_vault_server.sh" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/golang/vault && SGX_MODE=SIM ./run_occlum_vault_server.sh > vault.log 2>&1 &" | ||||||
| 
 | 
 | ||||||
|     - name: Run the Vault client |     - name: Run the Vault client | ||||||
|       run: | |       run: | | ||||||
|         sleep ${{ env.nap_time }}; |         sleep ${{ env.nap_time }}; | ||||||
|         docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/golang/vault && ./run_occlum_vault_test.sh" |         docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/golang/vault && ./run_occlum_vault_test.sh" | ||||||
|      | 
 | ||||||
|  |     - name: Check error log | ||||||
|  |       if: ${{ always() }} | ||||||
|  |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/golang/vault; cat vault.log" | ||||||
|  | 
 | ||||||
|     - name: Clean Vault test |     - name: Clean Vault test | ||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos && rm -rf ./golang/vault" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos && rm -rf ./golang/vault" | ||||||
| 
 | 
 | ||||||
| @ -883,13 +895,17 @@ jobs: | |||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/sofaboot && ./download_compile_sofaboot.sh" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/sofaboot && ./download_compile_sofaboot.sh" | ||||||
| 
 | 
 | ||||||
|     - name: Run SOFABoot web demo |     - name: Run SOFABoot web demo | ||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/sofaboot && SGX_MODE=SIM ./run_sofaboot_on_occlum.sh" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/sofaboot && SGX_MODE=SIM ./run_sofaboot_on_occlum.sh > sofa.log 2>&1 &" | ||||||
| 
 | 
 | ||||||
|     - name: Check SOFABoot result |     - name: Check SOFABoot result | ||||||
|       run: | |       run: | | ||||||
|         sleep ${{ env.nap_time }}; |         sleep ${{ env.nap_time }}; | ||||||
|         docker exec ${{ github.job }} bash -c "curl -s http://localhost:8080/actuator/readiness | grep -v DOWN" |         docker exec ${{ github.job }} bash -c "curl -s http://localhost:8080/actuator/readiness | grep -v DOWN" | ||||||
|      | 
 | ||||||
|  |     - name: Check error log | ||||||
|  |       if: ${{ always() }} | ||||||
|  |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos/sofaboot; cat sofa.log" | ||||||
|  | 
 | ||||||
|     - name: Clean Sofaboot test |     - name: Clean Sofaboot test | ||||||
|       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos && rm -rf ./sofaboot" |       run: docker exec ${{ github.job }} bash -c "cd /root/occlum/demos && rm -rf ./sofaboot" | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										28
									
								
								src/libos/Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										28
									
								
								src/libos/Cargo.lock
									
									
									
										generated
									
									
									
								
							| @ -592,11 +592,11 @@ dependencies = [ | |||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_alloc" | name = "sgx_alloc" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_backtrace_sys" | name = "sgx_backtrace_sys" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "cc", |  "cc", | ||||||
|  "sgx_build_helper", |  "sgx_build_helper", | ||||||
| @ -605,11 +605,11 @@ dependencies = [ | |||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_build_helper" | name = "sgx_build_helper" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_cov" | name = "sgx_cov" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "lazy_static", |  "lazy_static", | ||||||
|  "profiler_builtins", |  "profiler_builtins", | ||||||
| @ -621,18 +621,18 @@ dependencies = [ | |||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_demangle" | name = "sgx_demangle" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_libc" | name = "sgx_libc" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "sgx_types", |  "sgx_types", | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_rand" | name = "sgx_rand" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "sgx_trts", |  "sgx_trts", | ||||||
|  "sgx_tstd", |  "sgx_tstd", | ||||||
| @ -641,14 +641,14 @@ dependencies = [ | |||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_tcrypto" | name = "sgx_tcrypto" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "sgx_types", |  "sgx_types", | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_tprotected_fs" | name = "sgx_tprotected_fs" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "sgx_trts", |  "sgx_trts", | ||||||
|  "sgx_types", |  "sgx_types", | ||||||
| @ -656,7 +656,7 @@ dependencies = [ | |||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_trts" | name = "sgx_trts" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "sgx_libc", |  "sgx_libc", | ||||||
|  "sgx_types", |  "sgx_types", | ||||||
| @ -664,14 +664,14 @@ dependencies = [ | |||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_tse" | name = "sgx_tse" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "sgx_types", |  "sgx_types", | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_tstd" | name = "sgx_tstd" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "hashbrown_tstd", |  "hashbrown_tstd", | ||||||
|  "sgx_alloc", |  "sgx_alloc", | ||||||
| @ -686,11 +686,11 @@ dependencies = [ | |||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_types" | name = "sgx_types" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
| name = "sgx_unwind" | name = "sgx_unwind" | ||||||
| version = "1.1.5" | version = "1.1.6" | ||||||
| dependencies = [ | dependencies = [ | ||||||
|  "sgx_build_helper", |  "sgx_build_helper", | ||||||
| ] | ] | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user