Skip to content

Commit 8abba70

Browse files
committed
[DEBUG] Adapt validation for paddleformers==0.2
1 parent 0e4df5a commit 8abba70

File tree

9 files changed

+19
-22
lines changed

9 files changed

+19
-22
lines changed

.github/workflows/_accuracy_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
FULL_REPO="${{ github.repository }}"
4545
REPO_NAME="${FULL_REPO##*/}"
4646
BASE_BRANCH="${{ github.base_ref }}"
47-
docker pull ${docker_image}
47+
4848
# Clean the repository directory before starting
4949
docker run --rm --net=host -v $(pwd):/workspace -w /workspace \
5050
-e "REPO_NAME=${REPO_NAME}" \
@@ -140,7 +140,7 @@ jobs:
140140
-v "${CACHE_DIR}/ConfigDir:/root/.config" \
141141
-e TZ="Asia/Shanghai" \
142142
--gpus '"device='"${DEVICES}"'"' ${docker_image} /bin/bash -xc '
143-
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/
143+
python -m pip install paddlepaddle-gpu==3.1.1 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
144144
145145
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
146146

.github/workflows/_base_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
FULL_REPO="${{ github.repository }}"
4545
REPO_NAME="${FULL_REPO##*/}"
4646
BASE_BRANCH="${{ github.base_ref }}"
47-
docker pull ${docker_image}
47+
4848
# Clean the repository directory before starting
4949
docker run --rm --net=host -v $(pwd):/workspace -w /workspace \
5050
-e "REPO_NAME=${REPO_NAME}" \
@@ -140,7 +140,7 @@ jobs:
140140
-v "${CACHE_DIR}/ConfigDir:/root/.config" \
141141
-e TZ="Asia/Shanghai" \
142142
--gpus '"device='"${DEVICES}"'"' ${docker_image} /bin/bash -xc '
143-
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/
143+
python -m pip install paddlepaddle-gpu==3.1.1 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
144144
145145
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
146146

.github/workflows/_build_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
elif [[ "${PADDLEVERSION}" != "" ]];then
149149
python -m pip install paddlepaddle-gpu==${PADDLEVERSION} -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
150150
else
151-
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/
151+
python -m pip install paddlepaddle-gpu==3.1.1 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
152152
fi
153153
154154
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

.github/workflows/_logprob_test_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
docker_image: ${{ inputs.DOCKER_IMAGE }}
4040
paddletest_archive_url: ${{ inputs.PADDLETEST_ARCHIVE_URL }}
4141
run: |
42-
docker pull ${docker_image}
4342
# Clean the repository directory before starting
4443
docker run --rm --net=host -v $(pwd):/workspace -w /workspace \
4544
-e "REPO_NAME=${REPO_NAME}" \
@@ -115,6 +114,7 @@ jobs:
115114
echo "Removing stale container: ${runner_name}"
116115
docker rm -f ${runner_name} || true
117116
fi
117+
118118
docker run --rm --ipc=host --pid=host --net=host \
119119
--name ${runner_name} \
120120
-v $(pwd):/workspace \
@@ -130,7 +130,7 @@ jobs:
130130
-v "${CACHE_DIR}/ConfigDir:/root/.config" \
131131
-e TZ="Asia/Shanghai" \
132132
--gpus '"device='"${DEVICES}"'"' ${docker_image} /bin/bash -xc '
133-
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/
133+
python -m pip install paddlepaddle-gpu==3.1.1 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
134134
135135
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
136136

.github/workflows/_pre_ce_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
FULL_REPO="${{ github.repository }}"
4747
REPO_NAME="${FULL_REPO##*/}"
4848
BASE_BRANCH="${{ github.base_ref }}"
49-
docker pull ${docker_image}
49+
5050
# Clean the repository directory before starting
5151
docker run --rm --net=host -v $(pwd):/workspace -w /workspace \
5252
-e "REPO_NAME=${REPO_NAME}" \
@@ -139,7 +139,7 @@ jobs:
139139
--gpus "\"device=${DEVICES}\"" ${docker_image} /bin/bash -c '
140140
git config --global --add safe.directory /workspace/FastDeploy
141141
cd FastDeploy
142-
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/
142+
python -m pip install paddlepaddle-gpu==3.1.1 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
143143
python -m pip install ${fd_wheel_url}
144144
bash scripts/run_pre_ce.sh
145145
'

.github/workflows/_stable_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
FULL_REPO="${{ github.repository }}"
4545
REPO_NAME="${FULL_REPO##*/}"
4646
BASE_BRANCH="${{ github.base_ref }}"
47-
docker pull ${docker_image}
47+
4848
# Clean the repository directory before starting
4949
docker run --rm --net=host -v $(pwd):/workspace -w /workspace \
5050
-e "REPO_NAME=${REPO_NAME}" \
@@ -146,7 +146,7 @@ jobs:
146146
-v "${CACHE_DIR}/ConfigDir:/root/.config" \
147147
-e TZ="Asia/Shanghai" \
148148
--gpus '"device='"${DEVICES}"'"' ${docker_image} /bin/bash -xc '
149-
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/
149+
python -m pip install paddlepaddle-gpu==3.1.1 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
150150
151151
pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
152152

.github/workflows/_unit_test_coverage.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
FULL_REPO="${{ github.repository }}"
6161
REPO_NAME="${FULL_REPO##*/}"
6262
BASE_BRANCH="${{ github.base_ref }}"
63-
docker pull ${docker_image}
63+
6464
# Clean the repository directory before starting
6565
docker run --rm --net=host -v $(pwd):/workspace -w /workspace \
6666
-e "REPO_NAME=${REPO_NAME}" \
@@ -164,19 +164,15 @@ jobs:
164164
165165
git config --global --add safe.directory /workspace/FastDeploy
166166
cd FastDeploy
167-
git diff origin/${BASE_REF}..HEAD --unified=0 > diff.txt
168-
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/
167+
python -m pip install paddlepaddle-gpu==3.1.1 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
168+
169169
pip config set global.extra-index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
170170
171171
python -m pip install coverage
172172
python -m pip install diff-cover
173173
python -m pip install pytest-cov
174174
python -m pip install jsonschema aistudio_sdk==0.3.5
175175
python -m pip install ${fd_wheel_url}
176-
rm -rf fastdeploy
177-
# coverage subprocess use
178-
python -m pip install ${fd_wheel_url} --no-deps --target=/workspace/FastDeploy
179-
export PYTHONPATH=/workspace/FastDeploy/
180176
if [ -d "tests/plugins" ]; then
181177
cd tests/plugins
182178
python setup.py install
@@ -186,11 +182,12 @@ jobs:
186182
fi
187183
export COVERAGE_FILE=/workspace/FastDeploy/coveragedata/.coverage
188184
export COVERAGE_RCFILE=/workspace/FastDeploy/scripts/.coveragerc
185+
export COVERAGE_PROCESS_START=/workspace/FastDeploy/scripts/.coveragerc
189186
TEST_EXIT_CODE=0
190187
bash scripts/coverage_run.sh || TEST_EXIT_CODE=8
188+
git diff origin/${BASE_REF}..HEAD --unified=0 > diff.txt
191189
echo "TEST_EXIT_CODE=${TEST_EXIT_CODE}" >> exit_code.env
192190
coverage combine coveragedata/ || echo "No data to combine"
193-
coverage report
194191
coverage xml -o python_coverage_all.xml
195192
COVERAGE_EXIT_CODE=0
196193
if [[ "$IS_PR" == "true" ]]; then
@@ -231,7 +228,7 @@ jobs:
231228
echo "diff_cov_result_json_url=${DIFF_COV_JSON_URL}" >> $GITHUB_OUTPUT
232229
echo "diff_cov_result_json_url=${DIFF_COV_JSON_URL}" >> $GITHUB_ENV
233230
fi
234-
unittest_result="failed_tests.log"
231+
unittest_result="tests/failed_tests.log"
235232
if [ -s ${unittest_result} ];then
236233
python ${push_file} ${unittest_result} ${target_path}/UnitTestResult
237234
target_path_stripped="${target_path#paddle-github-action/}"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tqdm
1010
pynvml
1111
uvicorn==0.29.0
1212
fastapi
13-
paddleformers>=0.1.4
13+
paddleformers @ https://paddle-qa.bj.bcebos.com/FastDeploy/paddleformers-0.1.2.post20250902-py3-none-any.whl
1414
redis
1515
etcd3
1616
httpx

scripts/run_unittest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pwd
1717

1818
git config --global --add safe.directory /workspace1/FastDeploy
1919

20-
python -m pip install --force-reinstall --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu126/
20+
python -m pip install paddlepaddle-gpu==3.1.1 -i https://www.paddlepaddle.org.cn/packages/stable/cu126/
2121
python -m pip install --upgrade --force-reinstall -r requirements/unittest/requirements.txt
2222
python -m pip install xgrammar==0.1.19 torch==2.6.0
2323
bash tools/build_wheel.sh

0 commit comments

Comments
 (0)