From e900120d37adc647cbe816f1f6e2e11ce0ecb0fc Mon Sep 17 00:00:00 2001 From: zhangqirui Date: Fri, 5 Jul 2024 17:25:26 +0800 Subject: [PATCH] feat(triton-linalg): modify ci script --- .github/ci_script/file_guard.py | 3 ++- .github/ci_script/triton-linalg-ci_script.sh | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/ci_script/file_guard.py b/.github/ci_script/file_guard.py index 6981849..574284a 100644 --- a/.github/ci_script/file_guard.py +++ b/.github/ci_script/file_guard.py @@ -1,8 +1,9 @@ import time import sys import os +import argparse -def file_guard(): +def file_guard(guard_status_file, guard_log_file): # where stores the last position that pointer pointed to. where= 0 while True: diff --git a/.github/ci_script/triton-linalg-ci_script.sh b/.github/ci_script/triton-linalg-ci_script.sh index f0daf11..1d6e7ff 100644 --- a/.github/ci_script/triton-linalg-ci_script.sh +++ b/.github/ci_script/triton-linalg-ci_script.sh @@ -64,7 +64,16 @@ echo "timestamp:${currentTimeStamp}" >> "$requests_path/${request_name}" # change dir group for server and client, or when server/client try to delete request, ftp may raise error. # start script python3 .github/ci_script/file_guard.py "$request_root/status" "$request_root/log" & +if [ $? -ne 0 ]; then + echo "Failed to execute file_guard.py program" + exit -1 +fi + python3 .github/ci_script/combine_log.py "$request_root/log" "$request_root/log_list" "$request_root/sub_logs" "$request_root/status" & +if [ $? -ne 0 ]; then + echo "Failed to execute combine_log.py program" + exit -1 +fi wait