diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 9b9a004b962076..bc0494ac45e2f7 100644 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -687,14 +687,18 @@ EOF 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$" get_precision_ut_mac if [[ "$on_precision" == "0" ]];then - ctest -E "($disable_ut_quickly)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile + ctest -E "($disable_ut_quickly|$single_list)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile + ctest -R "${single_list}" -E "($disable_ut_quickly)" --output-on-failure -j 1 | tee $tmpfile else ctest -R "($UT_list_prec)" -E "($disable_ut_quickly)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile tmpfile_rand=`date +%s%N` tmpfile=$tmp_dir/$tmpfile_rand - ctest -R "($UT_list_prec_1)" -E "($disable_ut_quickly)" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile + ctest -R "($UT_list_prec_1)" -E "(${disable_ut_quickly}|${single_list})" -LE ${nightly_label} --output-on-failure -j $2 | tee $tmpfile + ctest -R "($single_list)" -E "(${disable_ut_quickly})" --output-on-failure -j 1 | tee $tmpfile fi failed_test_lists='' collect_failed_tests @@ -743,7 +747,7 @@ EOF done rm -f $tmp_dir/* failed_test_lists='' - ctest -R "($retry_unittests_regular)" --output-on-failure -j $2 | tee $tmpfile + ctest -R "($retry_unittests_regular)" --output-on-failure -j 4 | tee $tmpfile collect_failed_tests exec_times=$[$exec_times+1] done