Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
92810e69
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
92810e69
编写于
9月 09, 2021
作者:
Z
zhangchunle
提交者:
GitHub
9月 09, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test=document_fix (#35606)
上级
16a2fdaf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
39 addition
and
7 deletion
+39
-7
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+39
-7
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
92810e69
...
@@ -1037,7 +1037,9 @@ failed_test_lists=''
...
@@ -1037,7 +1037,9 @@ failed_test_lists=''
tmp_dir
=
`
mktemp
-d
`
tmp_dir
=
`
mktemp
-d
`
function
collect_failed_tests
()
{
function
collect_failed_tests
()
{
echo
"collect_failed_tests begineee!!!"
for
file
in
`
ls
$tmp_dir
`
;
do
for
file
in
`
ls
$tmp_dir
`
;
do
echo
"fileis
$file
"
exit_code
=
0
exit_code
=
0
grep
-q
'The following tests FAILED:'
$tmp_dir
/
$file
||
exit_code
=
$?
grep
-q
'The following tests FAILED:'
$tmp_dir
/
$file
||
exit_code
=
$?
if
[
$exit_code
-ne
0
]
;
then
if
[
$exit_code
-ne
0
]
;
then
...
@@ -1048,6 +1050,7 @@ function collect_failed_tests() {
...
@@ -1048,6 +1050,7 @@ function collect_failed_tests() {
${
failuretest
}
"
${
failuretest
}
"
fi
fi
done
done
echo
"collect_failed_tests finished!!!"
}
}
# getting qucik disable ut list
# getting qucik disable ut list
...
@@ -1065,7 +1068,7 @@ function get_quickly_disable_ut() {
...
@@ -1065,7 +1068,7 @@ function get_quickly_disable_ut() {
function
card_test
()
{
function
card_test
()
{
set
-m
set
-m
echo
"
$2
bengingggggg!!!!!"
case_count
$1
$2
case_count
$1
$2
ut_startTime_s
=
`
date
+%s
`
ut_startTime_s
=
`
date
+%s
`
...
@@ -1137,6 +1140,7 @@ function card_test() {
...
@@ -1137,6 +1140,7 @@ function card_test() {
else
else
echo
"
$2
card TestCases Total Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
echo
"
$2
card TestCases Total Time:
$[
$ut_endTime_s
-
$ut_startTime_s
]s"
fi
fi
echo
"
$2
card TestCases finished!!!! "
set
+m
set
+m
}
}
...
@@ -1292,22 +1296,41 @@ set +x
...
@@ -1292,22 +1296,41 @@ set +x
single_ut_startTime_s
=
`
date
+%s
`
single_ut_startTime_s
=
`
date
+%s
`
card_test
"
$single_card_tests_high_parallel
"
1 24
# run cases 24 job each time with single GPU
card_test
"
$single_card_tests_high_parallel
"
1 24
# run cases 24 job each time with single GPU
echo
"single_card_tests_high_parallel finished!!!"
card_test
"
$single_card_tests_secondary_high_parallel
"
1 15
# run cases 15 job each time with single GPU
card_test
"
$single_card_tests_secondary_high_parallel
"
1 15
# run cases 15 job each time with single GPU
echo
"single_card_tests_secondary_high_parallel finished!!!"
card_test
"
$single_card_tests_third_high_parallel
"
1 12
# run cases 12 job each time with single GPU
card_test
"
$single_card_tests_third_high_parallel
"
1 12
# run cases 12 job each time with single GPU
echo
"single_card_tests_third_high_parallel finished!!!"
card_test
"
$single_card_tests_medium_parallel
"
1 7
# run cases 7 job each time with single GPU
card_test
"
$single_card_tests_medium_parallel
"
1 7
# run cases 7 job each time with single GPU
echo
"single_card_tests_medium_parallel finished!!!"
card_test
"
$single_card_tests_non_parallel
"
1 2
# run cases 2 job each time with single GPU
card_test
"
$single_card_tests_non_parallel
"
1 2
# run cases 2 job each time with single GPU
echo
"single_card_tests_non_parallel finished!!!"
single_ut_endTime_s
=
`
date
+%s
`
single_ut_endTime_s
=
`
date
+%s
`
echo
"single_card_tests finished!!!"
multi_ut_startTime_s
=
`
date
+%s
`
multi_ut_startTime_s
=
`
date
+%s
`
echo
"multiple_card_tests begined!!!!!"
card_test
"
$multiple_card_tests_medium_parallel
"
2 4
# run cases 2 job each time with two GPUs
card_test
"
$multiple_card_tests_medium_parallel
"
2 4
# run cases 2 job each time with two GPUs
echo
"multiple_card_tests_medium_parallel finished!!!"
card_test
"
$multiple_card_tests_non_parallel
"
2 2
# run cases 1 job each time with two GPUs
card_test
"
$multiple_card_tests_non_parallel
"
2 2
# run cases 1 job each time with two GPUs
echo
"multiple_card_tests_non_parallel finished!!!"
multi_ut_endTime_s
=
`
date
+%s
`
multi_ut_endTime_s
=
`
date
+%s
`
echo
"multiple_card_tests finished!!!"
exclu_ut_startTime_s
=
`
date
+%s
`
exclu_ut_startTime_s
=
`
date
+%s
`
echo
"exclu_card_tests begined!!!!!"
card_test
"
$exclusive_tests_high_parallel
"
-1
5
# run cases exclusively, in this cases would be run with 2/4/8 GPUs
card_test
"
$exclusive_tests_high_parallel
"
-1
5
# run cases exclusively, in this cases would be run with 2/4/8 GPUs
echo
"exclusive_tests_high_parallel finished!!!"
card_test
"
$exclusive_tests_medium_parallel
"
-1
3
# run cases exclusively, in this cases would be run with 2/4/8 GPUs
card_test
"
$exclusive_tests_medium_parallel
"
-1
3
# run cases exclusively, in this cases would be run with 2/4/8 GPUs
echo
"exclusive_tests_medium_parallel finished!!!"
card_test
"
$exclusive_tests_non_parallel
"
-1
2
# run cases exclusively, in this cases would be run with 2/4/8 GPUs
card_test
"
$exclusive_tests_non_parallel
"
-1
2
# run cases exclusively, in this cases would be run with 2/4/8 GPUs
echo
"exclusive_tests_non_parallel finished!!!"
exclu_ut_endTime_s
=
`
date
+%s
`
exclu_ut_endTime_s
=
`
date
+%s
`
echo
"exclusive_tests finished!!!"
echo
"ipipe_log_param_1aaa_TestCases_Total_Time:
$[
$single_ut_endTime_s
-
$single_ut_startTime_s
]s"
echo
"ipipe_log_param_2aaa_TestCases_Total_Time:
$[
$multi_ut_endTime_s
-
$multi_ut_startTime_s
]s"
echo
"ipipe_log_param_Exclusiveaaaa_TestCases_Total_Time:
$[
$exclu_ut_endTime_s
-
$exclu_ut_startTime_s
]s"
echo
"ipipe_log_param_1_TestCases_Total_Time:
$[
$single_ut_endTime_s
-
$single_ut_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
echo
"ipipe_log_param_1_TestCases_Total_Time:
$[
$single_ut_endTime_s
-
$single_ut_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
echo
"ipipe_log_param_2_TestCases_Total_Time:
$[
$multi_ut_endTime_s
-
$multi_ut_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
echo
"ipipe_log_param_2_TestCases_Total_Time:
$[
$multi_ut_endTime_s
-
$multi_ut_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
...
@@ -1393,21 +1416,29 @@ set +x
...
@@ -1393,21 +1416,29 @@ set +x
fi
fi
done
done
echo
"rerun one_card_retry beginee!!!"
if
[[
"
$one_card_retry
"
!=
""
]]
;
then
if
[[
"
$one_card_retry
"
!=
""
]]
;
then
card_test
"
$one_card_retry
"
1 4
card_test
"
$one_card_retry
"
1 4
fi
fi
echo
"rerun one_card_retry finished!!!"
echo
"rerun multiple_card_retry beginee!!!"
if
[[
"
$multiple_card_retry
"
!=
""
]]
;
then
if
[[
"
$multiple_card_retry
"
!=
""
]]
;
then
card_test
"
$multiple_card_retry
"
2
card_test
"
$multiple_card_retry
"
2
fi
fi
echo
"rerun multiple_card_retry finished!!!"
echo
"rerun exclusive_retry beginee!!!"
if
[[
"
$exclusive_retry
"
!=
""
]]
;
then
if
[[
"
$exclusive_retry
"
!=
""
]]
;
then
card_test
"
$exclusive_retry
"
-1
card_test
"
$exclusive_retry
"
-1
fi
fi
echo
"rerun exclusive_retry finished!!!"
exec_times
=
$[$exec_times
+1]
exec_times
=
$[$exec_times
+1]
echo
"exec_times:
$exec_times
"
failed_test_lists
=
''
failed_test_lists
=
''
collect_failed_tests
collect_failed_tests
echo
"failed_test_listsssssss:
$failed_test_lists
"
rm
-f
$tmp_dir
/
*
rm
-f
$tmp_dir
/
*
one_card_retry
=
''
one_card_retry
=
''
multiple_card_retry
=
''
multiple_card_retry
=
''
...
@@ -1417,9 +1448,10 @@ set +x
...
@@ -1417,9 +1448,10 @@ set +x
fi
fi
rerun_ut_endTime_s
=
`
date
+%s
`
rerun_ut_endTime_s
=
`
date
+%s
`
echo
"ipipe_log_param_Rerunaaaa_TestCases_Total_Time:
$[
$rerun_ut_endTime_s
-
$rerun_ut_startTime_s
]s"
echo
"ipipe_log_param_Rerun_TestCases_Total_Time:
$[
$rerun_ut_endTime_s
-
$rerun_ut_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
echo
"ipipe_log_param_Rerun_TestCases_Total_Time:
$[
$rerun_ut_endTime_s
-
$rerun_ut_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
ut_actual_total_endTime_s
=
`
date
+%s
`
ut_actual_total_endTime_s
=
`
date
+%s
`
echo
"ipipe_log_param_actualaaaaa_TestCases_Total_Time:
$[
$ut_actual_total_endTime_s
-
$ut_actual_total_startTime_s
]s"
echo
"ipipe_log_param_actual_TestCases_Total_Time:
$[
$ut_actual_total_endTime_s
-
$ut_actual_total_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
echo
"ipipe_log_param_actual_TestCases_Total_Time:
$[
$ut_actual_total_endTime_s
-
$ut_actual_total_startTime_s
]s"
>>
${
PADDLE_ROOT
}
/build/build_summary.txt
if
[[
"
$EXIT_CODE
"
!=
"0"
]]
;
then
if
[[
"
$EXIT_CODE
"
!=
"0"
]]
;
then
show_ut_retry_result
show_ut_retry_result
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录