Skip to content

Commit 50836e1

Browse files
Fix model_benchmark_ci (#35183)
* notest;test=model_benchmark_ci * notest;test=model_benchmark_ci * fix
1 parent 5310cea commit 50836e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/test_ci_model_benchmark.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
function check_whl {
19-
bash -x paddle/scripts/paddle_build.sh build
19+
bash -x paddle/scripts/paddle_build.sh build_only
2020
[ $? -ne 0 ] && echo "build paddle failed." && exit 1
2121
pip uninstall -y paddlepaddle_gpu
2222
pip install build/python/dist/*.whl
@@ -35,13 +35,14 @@ function check_whl {
3535
rm -rf ${PADDLE_ROOT}/build/third_party
3636
fi
3737

38-
bash -x paddle/scripts/paddle_build.sh build
38+
bash -x paddle/scripts/paddle_build.sh build_only
3939
[ $? -ne 0 ] && echo "build paddle failed." && exit 1
40-
unzip -q python/dist/*.whl -d /tmp/develop
40+
unzip -q build/python/dist/*.whl -d /tmp/develop
4141

4242
sed -i '/version.py/d' /tmp/pr/*/RECORD
4343
sed -i '/version.py/d' /tmp/develop/*/RECORD
4444
diff_whl=`diff /tmp/pr/*/RECORD /tmp/develop/*/RECORD|wc -l`
45+
[ $? -ne 0 ] && echo "diff paddle whl failed." && exit 1
4546
if [ ${diff_whl} -eq 0 ];then
4647
echo "paddle whl does not diff in PR-CI-Model-benchmark, so skip this ci"
4748
echo "ipipe_log_param_isSkipTest_model_benchmark: 1"

0 commit comments

Comments
 (0)