@ -73,11 +73,17 @@ if [ "$op_type_spec_diff" != "" ]; then
check_approval 1 9301846 33742067 7913861
fi
op_desc_diff = ` python ${ PADDLE_ROOT } /tools/check_op_desc.py ${ PADDLE_ROOT } /paddle/fluid/OP_DESC_DEV.spec ${ PADDLE_ROOT } /paddle/fluid/OP_DESC_PR.spec`
if [ " $op_desc_diff " != "" ] ; then
echo_line = "You must have one RD (liym27 (Recommend), zhhsplendid, Aurelius84, lanxianghit or phlrain) approval for the changes of Inputs/Output/Attrs of OPs. The changes of OPs will cause that the new version inference fails to load model trained by the old version.\n"
check_approval 1 33742067 7913861 9301846 47554610 43953930
fi
for API_FILE in ${ API_FILES [*] } ; do
API_CHANGE = ` git diff --name-only upstream/$BRANCH | grep " ${ API_FILE } " | grep -v "/CMakeLists.txt" || true `
echo " checking ${ API_FILE } change, PR: ${ GIT_PR_ID } , changes: ${ API_CHANGE } "
if [ " ${ API_CHANGE } " ] && [ " ${ GIT_PR_ID } " != "" ] ; then
# NOTE: per_page=10000 should be ok for all cases, a PR review > 10000 is not human readable.q
# NOTE: per_page=10000 should be ok for all cases, a PR review > 10000 is not human readable.
# approval_user_list: XiaoguangHu01 46782768,Xreki 12538138,luotao1 6836917,sneaxiy 32832641,qingqing01 7845005,guoshengCS 14105589,heavengate 12605721,kuke 3064195,Superjomn 328693,lanxianghit 47554610,cyj1986 39645414,hutuxian 11195205,frankwhzhang 20274488,nepeplwu 45024560,Dianhai 38231817,JiabinYang 22361972,chenwhql 22561442,zhiqiu 6888866,seiriosPlus 5442383,gongweibao 10721757,saxon-zh 2870059,Boyan-Liu 2870059, zhouwei25 52485244, Aurelius84 9301846, liym27 33742067, zhhsplendid 7913861.
if [ " ${ API_FILE } " = = "paddle/fluid/op_use_default_grad_op_maker.spec" ] ; then
echo_line = "You must have one RD (sneaxiy (Recommend) or luotao1) approval for op_use_default_grad_op_maker.spec, which manages the grad_op memory optimization.\n"
@ -113,7 +119,7 @@ fi
HAS_DEFINE_FLAG = ` git diff -U0 upstream/$BRANCH | grep -o -m 1 "DEFINE_int32" | grep -o -m 1 "DEFINE_bool" | grep -o -m 1 "DEFINE_string" || true `
if [ ${ HAS_DEFINE_FLAG } ] && [ " ${ GIT_PR_ID } " != "" ] ; then
echo_line = "You must have one RD lanxianghit approval for the usage (either add or delete) of DEFINE_int32/DEFINE_bool/DEFINE_string flag.\n"
check_approval 1 47554610
check_approval 1 47554610
fi
HAS_UNITTEST_SKIP = ` git diff -U0 upstream/$BRANCH | grep "^+[[:space:]]\{0,\}@unittest.skip" || true `
@ -167,6 +173,7 @@ fi
python ${ PADDLE_ROOT } /tools/diff_api.py ${ PADDLE_ROOT } /paddle/fluid/API_DEV.spec ${ PADDLE_ROOT } /paddle/fluid/API_PR.spec
python ${ PADDLE_ROOT } /tools/check_op_register_type.py ${ PADDLE_ROOT } /paddle/fluid/OP_TYPE_DEV.spec ${ PADDLE_ROOT } /paddle/fluid/OP_TYPE_PR.spec
python ${ PADDLE_ROOT } /tools/check_op_desc.py ${ PADDLE_ROOT } /paddle/fluid/OP_DESC_DEV.spec ${ PADDLE_ROOT } /paddle/fluid/OP_DESC_PR.spec
if [ -n " ${ echo_list } " ] ; then
exit 1