未验证 提交 3fed97f4 编写于 作者: 石晓伟 提交者: GitHub

add ci reviewer for inference size (#52159)

上级 d9c3abe6
......@@ -1133,12 +1133,12 @@ function check_approvals_of_unittest() {
EOF
if [ $(awk "BEGIN{print 20<$AllDiffSize}") -eq 1 ] ; then
approval_line=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews?per_page=10000`
APPROVALS=`echo ${approval_line}|python ${PADDLE_ROOT}/tools/check_pr_approval.py 1 39303645 328693`
APPROVALS=`echo ${approval_line}|python ${PADDLE_ROOT}/tools/check_pr_approval.py 1 39303645 7845005 26377421`
echo "current pr ${GIT_PR_ID} got approvals: ${APPROVALS}"
if [ "${APPROVALS}" == "FALSE" ]; then
echo "=========================================================================================="
echo "This PR make the release inference library size growth exceeds 20 M."
echo "Then you must have one RD (Shixiaowei02 (Recommend) or Superjomn) approval for this PR\n"
echo "Then you must have one RD (jiweibo (Recommend), qingqing01 or Shixiaowei02) approval for this PR\n"
echo "=========================================================================================="
exit 6
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册