mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-23 00:17:25 +08:00
Add stable ci (#3460)
* add stable ci * fix * update * fix * rename tests dir;fix stable ci bug * add timeout limit * update
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
echo "$DIR"
|
||||
|
||||
run_path="$DIR/../test/"
|
||||
run_path="$DIR/../tests/"
|
||||
cd ${run_path}
|
||||
ls
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ cat server.log
|
||||
echo -e "\n"
|
||||
|
||||
echo "Start inference..."
|
||||
python test/ci_use/GCU/run_ernie.py
|
||||
python tests/ci_use/GCU/run_ernie.py
|
||||
exit_code=$?
|
||||
echo -e "exit_code is ${exit_code}.\n"
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ export INFERENCE_MSG_QUEUE_ID=232132
|
||||
export FD_DEBUG=1
|
||||
export PADDLE_XCCL_BACKEND=iluvatar_gpu
|
||||
export FD_SAMPLING_CLASS=rejection
|
||||
python test/ci_use/iluvatar_UT/run_ernie300B_4layer.py
|
||||
python tests/ci_use/iluvatar_UT/run_ernie300B_4layer.py
|
||||
exit_code=$?
|
||||
echo exit_code is ${exit_code}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ done
|
||||
cat server.log
|
||||
|
||||
# 执行服务化推理
|
||||
python test/ci_use/XPU_45T/run_45T.py
|
||||
python tests/ci_use/XPU_45T/run_45T.py
|
||||
exit_code=$?
|
||||
echo exit_code is ${exit_code}
|
||||
|
||||
@@ -143,7 +143,7 @@ done
|
||||
cat server.log
|
||||
|
||||
# 执行服务化推理
|
||||
python test/ci_use/XPU_45T/run_45T.py
|
||||
python tests/ci_use/XPU_45T/run_45T.py
|
||||
kv_block_test_exit_code=$?
|
||||
echo kv_block_test_exit_code is ${kv_block_test_exit_code}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ python -m pip install -r requirements.txt
|
||||
python -m pip install jsonschema aistudio_sdk==0.3.5
|
||||
|
||||
failed_files=()
|
||||
run_path="$DIR/../test/ci_use/"
|
||||
run_path="$DIR/../tests/ci_use/"
|
||||
|
||||
# load all test files
|
||||
for subdir in "$run_path"*/; do
|
||||
|
||||
@@ -46,7 +46,7 @@ done <<< "$gpu_info"
|
||||
export CUDA_VISIBLE_DEVICES=${min_gpu}
|
||||
|
||||
# 使用 find 命令查找 test 目录下的 .py 文件
|
||||
test_files=$(find test -type f -name "test*.py")
|
||||
test_files=$(find tests -type f -name "test*.py")
|
||||
|
||||
# 遍历每个找到的测试文件
|
||||
for test_file in $test_files; do
|
||||
|
||||
Reference in New Issue
Block a user