未验证 提交 50836e1d 编写于 作者: T tianshuo78520a 提交者: GitHub

Fix model_benchmark_ci (#35183)

* notest;test=model_benchmark_ci

* notest;test=model_benchmark_ci

* fix
上级 5310ceab
......@@ -16,7 +16,7 @@
function check_whl {
bash -x paddle/scripts/paddle_build.sh build
bash -x paddle/scripts/paddle_build.sh build_only
[ $? -ne 0 ] && echo "build paddle failed." && exit 1
pip uninstall -y paddlepaddle_gpu
pip install build/python/dist/*.whl
......@@ -35,13 +35,14 @@ function check_whl {
rm -rf ${PADDLE_ROOT}/build/third_party
fi
bash -x paddle/scripts/paddle_build.sh build
bash -x paddle/scripts/paddle_build.sh build_only
[ $? -ne 0 ] && echo "build paddle failed." && exit 1
unzip -q python/dist/*.whl -d /tmp/develop
unzip -q build/python/dist/*.whl -d /tmp/develop
sed -i '/version.py/d' /tmp/pr/*/RECORD
sed -i '/version.py/d' /tmp/develop/*/RECORD
diff_whl=`diff /tmp/pr/*/RECORD /tmp/develop/*/RECORD|wc -l`
[ $? -ne 0 ] && echo "diff paddle whl failed." && exit 1
if [ ${diff_whl} -eq 0 ];then
echo "paddle whl does not diff in PR-CI-Model-benchmark, so skip this ci"
echo "ipipe_log_param_isSkipTest_model_benchmark: 1"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册