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:
YUNSHEN XIE
2025-08-20 08:57:17 +08:00
committed by GitHub
parent 67298cf4c0
commit 3a6058e445
87 changed files with 453 additions and 111 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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}
+2 -2
View File
@@ -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}
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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