Skip to content

Commit

Permalink
checked added ut in cpu (#57674)
Browse files Browse the repository at this point in the history
  • Loading branch information
risemeup1 authored Sep 24, 2023
1 parent 19a8f0a commit 980546f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,6 @@ EOF
echo "Unittests with nightly labels are only run at night"
echo "========================================="
fi
bash $PADDLE_ROOT/tools/check_added_ut.sh
check_approvals_of_unittest 2
# serial_list: Some single tests need to reduce concurrency
single_list="^test_cdist$|^test_resnet$|^test_resnet_v2$|^test_concat_op$|^test_transformer$|^test_bert_with_stride$|^test_paddle_save_load$"
Expand Down Expand Up @@ -797,7 +796,6 @@ function run_linux_cpu_test() {
EOF
set -x
export TEST_NUM_PERCENT_CASES=0.15
bash $PADDLE_ROOT/tools/check_added_ut.sh
if [ -a "$PADDLE_ROOT/duplicate_ut" ];then
duplicate_uts=$(cat $PADDLE_ROOT/duplicate_ut|sed -e 's/\r//g')
if [[ "$duplicate_uts" != "" ]];then
Expand Down Expand Up @@ -2741,7 +2739,10 @@ function enable_unused_var_check() {
# Currently, use it in coverage CI job.
export FLAGS_enable_unused_var_check=1
}

function check_coverage_added_ut() {
# NOTE(risemeup1):The steps of checkinge added test can be placed on the cpu machine to save gpu resources
bash $PADDLE_ROOT/tools/check_added_ut.sh
}
function gen_doc_lib() {
mkdir -p ${PADDLE_ROOT}/build
cd ${PADDLE_ROOT}/build
Expand Down Expand Up @@ -3988,6 +3989,7 @@ function main() {
check_diff_file_for_coverage
run_setup ${PYTHON_ABI:-""} bdist_wheel ${parallel_number}
enable_unused_var_check
check_coverage_added_ut
check_coverage_build
;;
gpu_cicheck_coverage)
Expand Down

0 comments on commit 980546f

Please sign in to comment.