Skip to content

Commit

Permalink
feat(triton-linalg): modify ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangqirui committed Jul 8, 2024
1 parent 162315b commit e900120
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/ci_script/file_guard.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
9 changes: 9 additions & 0 deletions .github/ci_script/triton-linalg-ci_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e900120

Please sign in to comment.