Skip to content

Commit 21caa63

Browse files
authored
update base test (#3304)
* update base test 额外启动一次服务测试repetition stop * Update _base_test.yml
1 parent 42af0b4 commit 21caa63

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/_base_test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,12 @@ jobs:
150150
export URL=http://localhost:${FD_API_PORT}/v1/chat/completions
151151
export TEMPLATE=TOKEN_LOGPROB
152152
TEST_EXIT_CODE=0
153-
python -m pytest -sv test_base_chat.py test_compare_top_logprobs.py test_logprobs.py test_params_boundary.py test_seed_usage.py test_stream.py || TEST_EXIT_CODE=$?
153+
python -m pytest -sv test_base_chat.py test_compare_top_logprobs.py test_logprobs.py test_params_boundary.py test_seed_usage.py test_stream.py || TEST_EXIT_CODE=1
154+
curl -X POST http://0.0.0.0:${FLASK_PORT}/switch \
155+
-H "Content-Type: application/json" \
156+
-d "{\"--model\": \"/MODELDATA/ERNIE-4.5-0.3B-Paddle\", \"--early-stop-config\": \"{\\\"enable_early_stop\\\":true, \\\"window_size\\\":6, \\\"threshold\\\":0.93}\"}"
157+
curl -X POST http://localhost:${FLASK_PORT}/wait_for_infer?timeout=90
158+
python -m pytest -sv test_repetition_early_stop.py || TEST_EXIT_CODE=1
154159
popd
155160
echo "TEST_EXIT_CODE=${TEST_EXIT_CODE}" >> /workspace/FastDeploy/exit_code.env
156161
'

0 commit comments

Comments
 (0)