Skip to content

Commit 9b4c8b9

Browse files
committed
test=document_fix
1 parent c6e5870 commit 9b4c8b9

File tree

4 files changed

+39
-2
lines changed

4 files changed

+39
-2
lines changed

.github/workflows/_CPU.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
build-and-test:
2424
name: Build and test
2525
runs-on:
26-
group: GZ_BD-CPU
26+
group: CPU-test
2727

2828
steps:
2929
- name: Check docker image and run container

ci/run_linux_cpu_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ set +x
9494
rm -f $tmp_dir/*
9595
exec_times=0
9696
retry_unittests_record=''
97-
retry_time=2
97+
retry_time=4
9898
exec_time_array=('first' 'second' 'third' 'fourth')
9999
parallel_failed_tests_exec_retry_threshold=120
100100
exec_retry_threshold=30

ci/utils.sh

+35
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@ function show_ut_retry_result() {
171171
fi
172172
if [[ "$is_retry_execute" != "0" ]] && [[ "${exec_times}" == "0" ]] ;then
173173
failed_test_lists_ult=`echo "${failed_test_lists}" | grep -Po '[^ ].*$'`
174+
175+
echo "-------failed_test_lists-------0000000000000000000000000000000000000000000000000000000000000"
176+
echo "${failed_test_lists}"
177+
echo "-------failed_test_lists_ult-------"
178+
echo "${failed_test_lists_ult}"
179+
180+
174181
echo "========================================="
175182
echo "There are more than ${exec_retry_threshold_count} failed unit tests in parallel test, so no unit test retry!!!"
176183
echo "========================================="
@@ -179,6 +186,14 @@ function show_ut_retry_result() {
179186
exit 8;
180187
elif [[ "$is_retry_execute" != "0" ]] && [[ "${exec_times}" == "1" ]];then
181188
failed_test_lists_ult=`echo "${failed_test_lists}" | grep -Po '[^ ].*$'`
189+
190+
echo "-------failed_test_lists-------1111111111111111111111111111111111111111111111111111111111111"
191+
echo "${failed_test_lists}"
192+
echo "-------failed_test_lists_ult-------"
193+
echo "${failed_test_lists_ult}"
194+
echo "----------------------------------------"
195+
196+
182197
echo "========================================="
183198
echo "There are more than 10 failed unit tests, so no unit test retry!!!"
184199
echo "========================================="
@@ -187,10 +202,25 @@ function show_ut_retry_result() {
187202
exit 8;
188203
else
189204
retry_unittests_ut_name=$(echo "$retry_unittests_record" | grep -oEi "\-.+\(" | sed 's/(//' | sed 's/- //' )
205+
206+
echo "-------retry_unittests_record---------------------------------------------------------------------"
207+
echo "${retry_unittests_record}"
208+
echo "-------retry_unittests_ut_name-------"
209+
echo "${retry_unittests_ut_name}"
210+
echo "----------------------------------------"
211+
190212
if [ "$SYSTEM" == "Darwin" ]; then
191213
retry_unittests_record_judge=$(echo ${retry_unittests_ut_name}| tr ' ' '\n' | sort | uniq -c | awk '{if ($1 >=3) {print $2}}')
192214
else
193215
retry_unittests_record_judge=$(echo ${retry_unittests_ut_name}| tr ' ' '\n' | sort | uniq -c | awk '{if ($1 >=2) {print $2}}')
216+
217+
echo "-------retry_unittests_ut_name----------------------------------------------------------------"
218+
echo "${retry_unittests_ut_name}"
219+
echo "-------retry_unittests_record_judge-------"
220+
echo "${retry_unittests_record_judge}"
221+
echo "----------------------------------------"
222+
223+
194224
fi
195225
if [ -z "${retry_unittests_record_judge}" ];then
196226
echo "========================================"
@@ -200,6 +230,11 @@ function show_ut_retry_result() {
200230
echo "${retry_unittests_record}"
201231
else
202232
failed_ut_re=$(echo "${retry_unittests_record_judge}" | awk BEGIN{RS=EOF}'{gsub(/\n/,"|");print}')
233+
234+
echo "-------failed_ut_re----------------------------------------------------------------"
235+
echo "${failed_ut_re}"
236+
echo "-----------------------------------------------------------------------"
237+
203238
echo -e "${RED}========================================${NONE}"
204239
echo -e "${RED}There are failed tests, which have been executed re-run,but success rate is less than 50%:${NONE}"
205240
echo -e "${RED}Summary Failed Tests... ${NONE}"

test/deprecated/legacy_test/test_nce_deprecated.py

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
from paddle import base
2222
from paddle.base import Program, program_guard
2323

24+
a = 1 / 0
25+
2426

2527
def nce(
2628
input, weight, bias, sample_weight, labels, num_classes, num_sample_class

0 commit comments

Comments
 (0)