未验证 提交 4fd334f5 编写于 作者: T tianshuo78520a 提交者: GitHub

CI check Coverage build size (#42145)

上级 a1d87776
......@@ -2986,20 +2986,11 @@ function build_develop() {
}
function check_coverage_build() {
if [ ! "${buildSize}" ];then
echo "build size not found"
exit 1
fi
if [ ${WITH_COVERAGE} != "ON" ];then
echo "WARNING: check_coverage need to compile with WITH_COVERAGE=ON, but got WITH_COVERAGE=OFF"
exit 1
fi
rm -f build_size
curl -O https://paddle-docker-tar.bj.bcebos.com/paddle_ci_index/build_size
curl -O https://xly-devops.bj.bcebos.com/PR/build_whl/${AGILE_PULL_ID}/${AGILE_REVISION}/coverage_build_size
dev_coverage_build_size=`cat build_size|sed 's#G##g'`
pr_coverage_build_size=`echo $buildSize|sed 's#G##g'`
pr_coverage_build_size=`cat coverage_build_size|sed 's#G##g'`
diff_coverage_build_size=`echo $(($pr_coverage_build_size - $dev_coverage_build_size))`
......@@ -3149,7 +3140,6 @@ function main() {
check_diff_file_for_coverage
cmake_gen_and_build ${PYTHON_ABI:-""} ${parallel_number}
enable_unused_var_check
check_coverage_build
;;
gpu_cicheck_coverage)
check_approvals_of_unittest 1
......@@ -3157,6 +3147,9 @@ function main() {
check_coverage
check_change_of_unittest ${PYTHON_ABI:-""}
;;
check_coverage_build)
check_coverage_build
;;
ci_preciseTest)
insert_pile_to_h_cu_diff
cmake_gen_and_build ${PYTHON_ABI:-""} ${parallel_number}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册