Skip to content

Commit

Permalink
Cherry-Pick[56259 56206] Fix Mac test timeout (#56525)
Browse files Browse the repository at this point in the history
* fix pr-ci-build error;test=document_fix

* Cherry-Pick[56259 56206] Fix Mac test timeout
  • Loading branch information
tianshuo78520a authored Aug 24, 2023
1 parent 09ed607 commit 1851543
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1851543

Please sign in to comment.