Skip to content

Commit 57247ef

Browse files
committed
rename tests dir;fix stable ci bug
1 parent 136fc76 commit 57247ef

File tree

82 files changed

+59
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+59
-113
lines changed

.github/workflows/_accuracy_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
148148
git config --global --add safe.directory /workspace/FastDeploy
149149
cd FastDeploy
150-
pushd test/ce/deploy
150+
pushd tests/ce/deploy
151151
python3.10 deploy.py > dd.log 2>&1 &
152152
sleep 3
153153
curl -X POST http://0.0.0.0:${FLASK_PORT}/start \
@@ -157,7 +157,7 @@ jobs:
157157
curl -X POST http://localhost:${FLASK_PORT}/wait_for_infer?timeout=90
158158
popd
159159
160-
pushd test/ce/accuracy_cases
160+
pushd tests/ce/accuracy_cases
161161
export URL=http://localhost:${FD_API_PORT}/v1/chat/completions
162162
export TEMPLATE=TOKEN_LOGPROB
163163
export MODEL_SIZE=0.3B

.github/workflows/_base_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
148148
git config --global --add safe.directory /workspace/FastDeploy
149149
cd FastDeploy
150-
pushd test/ce/deploy
150+
pushd tests/ce/deploy
151151
python3.10 deploy.py > dd.log 2>&1 &
152152
sleep 3
153153
curl -X POST http://0.0.0.0:${FLASK_PORT}/start \
@@ -157,7 +157,7 @@ jobs:
157157
curl -X POST http://localhost:${FLASK_PORT}/wait_for_infer?timeout=90
158158
popd
159159
160-
pushd test/ce/server
160+
pushd tests/ce/server
161161
export URL=http://localhost:${FD_API_PORT}/v1/chat/completions
162162
export TEMPLATE=TOKEN_LOGPROB
163163
TEST_EXIT_CODE=0

.github/workflows/_stable_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
git config --global --add safe.directory /workspace/FastDeploy
148148
cd FastDeploy
149149
TEST_EXIT_CODE=0
150-
pushd test/ce/stable_cases
150+
pushd tests/ce/stable_cases
151151
bash launch_model.sh /MODELDATA
152152
bash run.sh || TEST_EXIT_CODE=1
153153
popd

.github/workflows/_unit_test_coverage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ jobs:
150150
python -m pip install coverage
151151
python -m pip install diff-cover
152152
python -m pip install ${fd_wheel_url}
153-
if [ -d "test/plugins" ]; then
154-
cd test/plugins
153+
if [ -d "tests/plugins" ]; then
154+
cd tests/plugins
155155
python setup.py install
156156
cd ../..
157157
else
158-
echo "Warning: test/plugins directory not found, skipping setup.py install"
158+
echo "Warning: tests/plugins directory not found, skipping setup.py install"
159159
fi
160160
export COVERAGE_FILE=/workspace/FastDeploy/coveragedata/.coverage
161161
export COVERAGE_RCFILE=/workspace/FastDeploy/scripts/.coveragerc
@@ -204,7 +204,7 @@ jobs:
204204
echo "diff_cov_result_json_url=${DIFF_COV_JSON_URL}" >> $GITHUB_OUTPUT
205205
echo "diff_cov_result_json_url=${DIFF_COV_JSON_URL}" >> $GITHUB_ENV
206206
fi
207-
unittest_result="test/failed_tests.log"
207+
unittest_result="tests/failed_tests.log"
208208
if [ -s ${unittest_result} ];then
209209
python ${push_file} ${unittest_result} ${target_path}/UnitTestResult
210210
target_path_stripped="${target_path#paddle-github-action/}"

scripts/coverage_run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
33
echo "$DIR"
44

5-
run_path="$DIR/../test/"
5+
run_path="$DIR/../tests/"
66
cd ${run_path}
77
ls
88

scripts/run_ci_gcu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ cat server.log
9797
echo -e "\n"
9898

9999
echo "Start inference..."
100-
python test/ci_use/GCU/run_ernie.py
100+
python tests/ci_use/GCU/run_ernie.py
101101
exit_code=$?
102102
echo -e "exit_code is ${exit_code}.\n"
103103

scripts/run_ci_iluvatar.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export INFERENCE_MSG_QUEUE_ID=232132
3131
export FD_DEBUG=1
3232
export PADDLE_XCCL_BACKEND=iluvatar_gpu
3333
export FD_SAMPLING_CLASS=rejection
34-
python test/ci_use/iluvatar_UT/run_ernie300B_4layer.py
34+
python tests/ci_use/iluvatar_UT/run_ernie300B_4layer.py
3535
exit_code=$?
3636
echo exit_code is ${exit_code}
3737

scripts/run_ci_xpu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ done
7777
cat server.log
7878

7979
# 执行服务化推理
80-
python test/ci_use/XPU_45T/run_45T.py
80+
python tests/ci_use/XPU_45T/run_45T.py
8181
exit_code=$?
8282
echo exit_code is ${exit_code}
8383

@@ -143,7 +143,7 @@ done
143143
cat server.log
144144

145145
# 执行服务化推理
146-
python test/ci_use/XPU_45T/run_45T.py
146+
python tests/ci_use/XPU_45T/run_45T.py
147147
kv_block_test_exit_code=$?
148148
echo kv_block_test_exit_code is ${kv_block_test_exit_code}
149149

scripts/run_pre_ce.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ python -m pip install -r requirements.txt
99
python -m pip install jsonschema aistudio_sdk==0.3.5
1010

1111
failed_files=()
12-
run_path="$DIR/../test/ci_use/"
12+
run_path="$DIR/../tests/ci_use/"
1313

1414
# load all test files
1515
for subdir in "$run_path"*/; do

scripts/run_unittest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ done <<< "$gpu_info"
4646
export CUDA_VISIBLE_DEVICES=${min_gpu}
4747

4848
# 使用 find 命令查找 test 目录下的 .py 文件
49-
test_files=$(find test -type f -name "test*.py")
49+
test_files=$(find tests -type f -name "test*.py")
5050

5151
# 遍历每个找到的测试文件
5252
for test_file in $test_files; do

0 commit comments

Comments
 (0)