From 8d0bae2de2a20a1d20cb15b6b97693ff509117c6 Mon Sep 17 00:00:00 2001 From: zhangchunle Date: Tue, 12 May 2020 11:19:26 +0800 Subject: [PATCH] add wlist monitor (#24384) --- tools/check_api_approvals.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/check_api_approvals.sh b/tools/check_api_approvals.sh index 933be9902c5..84311a4ced4 100644 --- a/tools/check_api_approvals.sh +++ b/tools/check_api_approvals.sh @@ -36,6 +36,7 @@ API_FILES=("CMakeLists.txt" "python/paddle/fluid/tests/unittests/white_list/op_threshold_white_list.py" "python/paddle/fluid/tests/unittests/white_list/check_op_sequence_batch_1_input_white_list.py" "python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py" + "tools/wlist.json" ) approval_line=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews?per_page=10000` @@ -139,6 +140,9 @@ for API_FILE in ${API_FILES[*]}; do elif [ "${API_FILE}" == "python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py" ];then echo_line="You must have one RD (Shixiaowei02 (Recommend), luotao1 or phlrain) approval for the python/paddle/fluid/tests/unittests/white_list/no_grad_set_white_list.py, which manages the white list of no_grad_set without value in operators. For more information, please refer to[https://github.com/PaddlePaddle/Paddle/wiki/It's-recommend-to-set-no_grad_set-to-be-None].\n" check_approval 1 39303645 6836917 43953930 + elif [ "${API_FILE}" == "tools/wlist.json" ];then + echo_line="You must have one TPM (saxon-zh or Boyan-Liu or swtkiwi) approval for the api whitelist for the tools/wlist.json.\n" + check_approval 1 31623103 2870059 27208573 else echo_line="You must have one RD (XiaoguangHu01,Xreki,luotao1,sneaxiy) approval for ${API_FILE}, which manages the underlying code for fluid.\n" check_approval 1 3048612 46782768 12538138 6836917 32832641 -- GitLab