Skip to content

Commit 410907f

Browse files
tianshuo78520aluotao1
authored andcommitted
added monitoring of python/requirements.txt file (#17957)
1 parent 969e637 commit 410907f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ RUN curl -s -q https://glide.sh/get | sh
7575
# 2. Manually add ~IPluginFactory() in IPluginFactory class of NvInfer.h, otherwise, it couldn't work in paddle.
7676
# See https://github.com/PaddlePaddle/Paddle/issues/10129 for details.
7777

78-
RUN wget -q https://paddlepaddledeps.cdn.bcebos.com/TensorRT-4.0.1.6-ubuntu14.04.x86_64-gnu.cuda.8.0.cudnn7.0.tar.gz --no-check-certificate && \
78+
RUN wget -q https://paddlepaddledeps.bj.bcebos.com/TensorRT-4.0.1.6-ubuntu14.04.x86_64-gnu.cuda.8.0.cudnn7.0.tar.gz --no-check-certificate && \
7979
tar -zxf TensorRT-4.0.1.6-ubuntu14.04.x86_64-gnu.cuda.8.0.cudnn7.0.tar.gz -C /usr/local && \
8080
cp -rf /usr/local/TensorRT/include /usr && \
8181
cp -rf /usr/local/TensorRT/lib /usr

paddle/scripts/paddle_build.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ function assert_api_spec_approvals() {
468468
"paddle/fluid/framework/ir/node.h"
469469
"paddle/fluid/framework/ir/graph.h"
470470
"paddle/fluid/framework/framework.proto"
471+
"python/requirements.txt"
471472
"python/paddle/fluid/compiler.py"
472473
"python/paddle/fluid/__init__.py"
473474
"paddle/fluid/operators/distributed/send_recv.proto.in")
@@ -476,7 +477,7 @@ function assert_api_spec_approvals() {
476477
echo "checking ${API_FILE} change, PR: ${GIT_PR_ID}, changes: ${API_CHANGE}"
477478
if [ "${API_CHANGE}" ] && [ "${GIT_PR_ID}" != "" ]; then
478479
# NOTE: per_page=10000 should be ok for all cases, a PR review > 10000 is not human readable.
479-
# approval_user_list: XiaoguangHu01 46782768,chengduoZH 30176695,Xreki 12538138,luotao1 6836917,sneaxiy 32832641,tensor-tang 21351065,jacquesqiao 3048612,xsrobin 50069408 qingqing01 7845005.
480+
# approval_user_list: XiaoguangHu01 46782768,chengduoZH 30176695,Xreki 12538138,luotao1 6836917,sneaxiy 32832641,tensor-tang 21351065,jacquesqiao 3048612,xsrobin 50069408,qingqing01 7845005,junjun315 3124479.
480481
if [ "${API_FILE}" == "paddle/fluid/API.spec" ];then
481482
APPROVALS=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews?per_page=10000 | \
482483
python ${PADDLE_ROOT}/tools/check_pr_approval.py 2 50069408 46782768 30176695 6836917 7845005`
@@ -490,6 +491,9 @@ function assert_api_spec_approvals() {
490491
elif [ "${API_FILE}" == "python/paddle/fluid/__init__.py" ];then
491492
APPROVALS=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews?per_page=10000 | \
492493
python ${PADDLE_ROOT}/tools/check_pr_approval.py 1 50069408`
494+
elif [ "${API_FILE}" == "python/requirements.txt" ];then
495+
APPROVALS=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews?per_page=10000 | \
496+
python ${PADDLE_ROOT}/tools/check_pr_approval.py 1 3124479`
493497
else
494498
APPROVALS=`curl -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/PaddlePaddle/Paddle/pulls/${GIT_PR_ID}/reviews?per_page=10000 | \
495499
python ${PADDLE_ROOT}/tools/check_pr_approval.py 1 21351065 3048612 46782768 30176695 12538138 6836917 32832641`
@@ -500,6 +504,8 @@ function assert_api_spec_approvals() {
500504
echo "You must have one RD (chengduoZH or XiaoguangHu01 or qingqing01 or luotao1) and one PM (xsrobin) approval for the api change! ${API_FILE} for the management reason of API interface and API document."
501505
elif [ "${API_FILE}" == "CMakeLists.txt" ];then
502506
echo "You must have one RD (luotao1 or chengduoZH or XiaoguangHu01) approval for the cmakelist change! ${API_FILE} for the management reason of the Compilation parameter."
507+
elif [ "${API_FILE}" == "python/requirements.txt" ];then
508+
echo "You must have junjun315 approval for the python/requirements.txt change! ${API_FILE} for the management reason of the Compilation parameter."
503509
elif [ "${API_FILE}" == "python/paddle/fluid/__init__.py" ];then
504510
echo "You must have xsrobin approval for the python/paddle/fluid/__init__.py change! ${API_FILE} for the management reason of the environment variables."
505511
else

0 commit comments

Comments
 (0)