-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Add] bad statement check #57421
Merged
Merged
[Add] bad statement check #57421
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update 20230918
p.s. https://github.com/megemini/convert_doctest 已经同步更新 |
修改后的日志信息:2023-09-18 17:39:24 keystore.jceks not exist!
2023-09-18 17:39:24 exe task(buildId=*******, actionName=BUILD_START) confirm status is true
2023-09-18 17:39:24 insert listener now cache size is 1
2023-09-18 17:39:24 log path: /home/cce/docker/containers/0f098a5e8d17fb8356982ad1b1991b6c2f72af3dbe38fe9e5d628d7e47f2c4f7
2023-09-18 17:39:24 mkdir file PaddlePaddle/Paddle start!
2023-09-18 17:39:24 mkdir -p /workspace/Paddle
2023-09-18 17:39:24 exe task(buildId=*******, actionName=BUILD_CODE) confirm status is true
2023-09-18 17:39:24 build Paddle start!
2023-09-18 17:39:24 build code setEnvCmd and buildCmd
2023-09-18 17:39:25 + set -e
2023-09-18 17:39:25 + set +x
2023-09-18 17:39:25 + export APT_MIRROR=s#http://archive.ubuntu.com/ubuntu#mirror://mirrors.ubuntu.com/mirrors.txt#g
2023-09-18 17:39:25 + APT_MIRROR=s#http://archive.ubuntu.com/ubuntu#mirror://mirrors.ubuntu.com/mirrors.txt#g
2023-09-18 17:39:25 + export WITH_GPU=ON
2023-09-18 17:39:25 + WITH_GPU=ON
2023-09-18 17:39:25 + export CUDA_ARCH_NAME=Volta
2023-09-18 17:39:25 + CUDA_ARCH_NAME=Volta
2023-09-18 17:39:25 + export WITH_CACHE=ON
2023-09-18 17:39:25 + WITH_CACHE=ON
2023-09-18 17:39:25 + export WITH_AVX=ON
2023-09-18 17:39:25 + WITH_AVX=ON
2023-09-18 17:39:25 + export WITH_TESTING=OFF
2023-09-18 17:39:25 + WITH_TESTING=OFF
2023-09-18 17:39:25 + export WITH_COVERAGE=OFF
2023-09-18 17:39:25 + WITH_COVERAGE=OFF
2023-09-18 17:39:25 + export COVERALLS_UPLOAD=OFF
2023-09-18 17:39:25 + COVERALLS_UPLOAD=OFF
2023-09-18 17:39:25 + export CMAKE_BUILD_TYPE=Release
2023-09-18 17:39:25 + CMAKE_BUILD_TYPE=Release
2023-09-18 17:39:25 + export WITH_MKL=ON
2023-09-18 17:39:25 + WITH_MKL=ON
2023-09-18 17:39:25 + export GIT_PR_ID=57421
2023-09-18 17:39:25 + GIT_PR_ID=57421
2023-09-18 17:39:25 + export PADDLE_VERSION=0.0.0
2023-09-18 17:39:25 + PADDLE_VERSION=0.0.0
2023-09-18 17:39:25 + export WITH_DISTRIBUTE=ON
2023-09-18 17:39:25 + WITH_DISTRIBUTE=ON
2023-09-18 17:39:25 + export RUN_TEST=OFF
2023-09-18 17:39:25 + RUN_TEST=OFF
2023-09-18 17:39:25 + export BRANCH=develop
2023-09-18 17:39:25 + BRANCH=develop
2023-09-18 17:39:25 + export PY_VERSION=3.10
2023-09-18 17:39:25 + PY_VERSION=3.10
2023-09-18 17:39:25 + export SAMPLE_CODE_EXEC_THREADS=1
2023-09-18 17:39:25 + SAMPLE_CODE_EXEC_THREADS=1
2023-09-18 17:39:25 + export WITH_SHARED_PHI=ON
2023-09-18 17:39:25 + WITH_SHARED_PHI=ON
2023-09-18 17:39:25 + cd /
2023-09-18 17:39:25 + rm -rf /workspace
2023-09-18 17:39:25 + set +x
2023-09-18 17:39:45 + tar '--use-compress-program=pigz -1' -xpf build.tar.gz
2023-09-18 17:39:45 tar: Removing leading `/' from member names
2023-09-18 17:40:01 + cd /paddle
2023-09-18 17:40:01 + git checkout test
2023-09-18 17:40:01 Switched to branch 'test'
2023-09-18 17:40:01 + export PATH=/usr/local/python3.10.0/bin:/usr/local/python3.10.0/include:/usr/local/bin:/home/cmake-3.18.0-Linux-x86_64/bin:/usr/local/gcc-8.2/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/root/gopath/bin:/java/jdk1.8.0_192/bin
2023-09-18 17:40:01 + PATH=/usr/local/python3.10.0/bin:/usr/local/python3.10.0/include:/usr/local/bin:/home/cmake-3.18.0-Linux-x86_64/bin:/usr/local/gcc-8.2/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/root/gopath/bin:/java/jdk1.8.0_192/bin
2023-09-18 17:40:01 ++ which python3.10
2023-09-18 17:40:01 + ln -sf /usr/bin/python3.10 /usr/local/bin/python
2023-09-18 17:40:01 ++ which python3.10
2023-09-18 17:40:01 + ln -sf /usr/bin/python3.10 /usr/bin/python
2023-09-18 17:40:01 ++ which pip3.10
2023-09-18 17:40:01 + ln -sf /usr/local/bin/pip3.10 /usr/local/bin/pip
2023-09-18 17:40:01 + mkdir -p /home/data/cfs/.ccache/pr_ci_cpu_py2
2023-09-18 17:40:01 + export CCACHE_DIR=/home/data/cfs/.ccache/pr_ci_cpu_py2
2023-09-18 17:40:01 + CCACHE_DIR=/home/data/cfs/.ccache/pr_ci_cpu_py2
2023-09-18 17:40:01 + export work_dir=/paddle
2023-09-18 17:40:01 + work_dir=/paddle
2023-09-18 17:40:01 ++ md5sum
2023-09-18 17:40:01 ++ cat /paddle/cmake/external/arm_brpc.cmake /paddle/cmake/external/box_ps.cmake /paddle/cmake/external/brpc.cmake /paddle/cmake/external/cryptopp.cmake /paddle/cmake/external/cub.cmake /paddle/cmake/external/cudnn-frontend.cmake /paddle/cmake/external/cusparselt.cmake /paddle/cmake/external/cutlass.cmake /paddle/cmake/external/dgc.cmake /paddle/cmake/external/dirent.cmake /paddle/cmake/external/dlpack.cmake /paddle/cmake/external/eigen.cmake /paddle/cmake/external/flashattn.cmake /paddle/cmake/external/gflags.cmake /paddle/cmake/external/glog.cmake /paddle/cmake/external/gloo.cmake /paddle/cmake/external/gtest.cmake /paddle/cmake/external/jemalloc.cmake /paddle/cmake/external/lapack.cmake /paddle/cmake/external/leveldb.cmake /paddle/cmake/external/libmct.cmake /paddle/cmake/external/libxsmm.cmake /paddle/cmake/external/lite.cmake /paddle/cmake/external/mkldnn.cmake /paddle/cmake/external/mklml.cmake /paddle/cmake/external/onnxruntime.cmake /paddle/cmake/external/openblas.cmake /paddle/cmake/external/paddle2onnx.cmake /paddle/cmake/external/pocketfft.cmake /paddle/cmake/external/poplar.cmake /paddle/cmake/external/protobuf.cmake /paddle/cmake/external/pslib.cmake /paddle/cmake/external/pslib_brpc.cmake /paddle/cmake/external/pybind11.cmake /paddle/cmake/external/python.cmake /paddle/cmake/external/rocksdb.cmake /paddle/cmake/external/snappy.cmake /paddle/cmake/external/threadpool.cmake /paddle/cmake/external/utf8proc.cmake /paddle/cmake/external/warpctc.cmake /paddle/cmake/external/warprnnt.cmake /paddle/cmake/external/xbyak.cmake /paddle/cmake/external/xpu.cmake /paddle/cmake/external/xxhash.cmake /paddle/cmake/external/zlib.cmake cmake/third_party.cmake
2023-09-18 17:40:01 ++ awk '{print $1}'
2023-09-18 17:40:01 + export md5_content=*******
2023-09-18 17:40:01 + md5_content=*******
2023-09-18 17:40:01 + tar_dir=/root/third_party/PR_CI_Cpu_Py2_GCC8
2023-09-18 17:40:01 + file_tar=/root/third_party/PR_CI_Cpu_Py2_GCC8/*******.tar.gz
2023-09-18 17:40:01 + bce_file=/home/bce-python-sdk-0.8.27/BosClient.py
2023-09-18 17:40:01 + EXCODE=0
2023-09-18 17:40:01 + set +e
2023-09-18 17:40:01 + pip config set global.cache-dir /home/data/cfs/.cache/pip
2023-09-18 17:40:02 Writing to /root/.config/pip/pip.conf
2023-09-18 17:40:02 + pip install --upgrade pip
2023-09-18 17:40:04 DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
2023-09-18 17:40:04 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-09-18 17:40:04 + pip install -r /paddle/python/requirements.txt
2023-09-18 17:40:05 DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
2023-09-18 17:40:05 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-09-18 17:40:05 + pip install -r /paddle/python/unittest_py/requirements.txt
2023-09-18 17:40:08 DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
2023-09-18 17:40:09 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-09-18 17:40:09 + bash -x /paddle/paddle/scripts/paddle_build.sh build_and_check_gpu
2023-09-18 17:40:09 + set -ex
2023-09-18 17:40:09 + '[' -z develop ']'
2023-09-18 17:40:09 + EXIT_CODE=0
2023-09-18 17:40:09 + failed_test_lists=
2023-09-18 17:40:09 ++ mktemp -d
2023-09-18 17:40:09 + tmp_dir=/tmp/tmp.WBFXePmEjU
2023-09-18 17:40:09 + main build_and_check_gpu
2023-09-18 17:40:09 + local CMD=build_and_check_gpu
2023-09-18 17:40:09 + local parallel_number=
2023-09-18 17:40:09 + init
2023-09-18 17:40:09 + RED='\033[0;31m'
2023-09-18 17:40:09 + BLUE='\033[0;34m'
2023-09-18 17:40:09 + BOLD='\033[1m'
2023-09-18 17:40:09 + NONE='\033[0m'
2023-09-18 17:40:09 +++ dirname /paddle/paddle/scripts/paddle_build.sh
2023-09-18 17:40:09 ++ cd /paddle/paddle/scripts/../../
2023-09-18 17:40:09 ++ pwd
2023-09-18 17:40:09 + PADDLE_ROOT=/paddle
2023-09-18 17:40:09 + export PADDLE_ROOT
2023-09-18 17:40:09 + '[' -z '' ']'
2023-09-18 17:40:09 + SCRIPT_NAME=/paddle/paddle/scripts/paddle_build.sh
2023-09-18 17:40:09 + ENABLE_MAKE_CLEAN=ON
2023-09-18 17:40:09 + export FLAGS_call_stack_level=2
2023-09-18 17:40:09 + FLAGS_call_stack_level=2
2023-09-18 17:40:09 + export FLAGS_set_to_1d=False
2023-09-18 17:40:09 + FLAGS_set_to_1d=False
2023-09-18 17:40:09 + case $CMD in
2023-09-18 17:40:09 + set +e
2023-09-18 17:40:09 + example_info_gpu=
2023-09-18 17:40:09 + example_code_gpu=0
2023-09-18 17:40:09 + '[' ON == ON ']'
2023-09-18 17:40:09 ++ exec_samplecode_test gpu
2023-09-18 17:40:09 Processing ./build/pr_whl/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
2023-09-18 17:40:10 Requirement already satisfied: httpx in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (0.24.1)
2023-09-18 17:40:10 Requirement already satisfied: numpy>=1.13 in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (1.24.4)
2023-09-18 17:40:10 Requirement already satisfied: Pillow in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (10.0.0)
2023-09-18 17:40:10 Requirement already satisfied: decorator in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (5.1.1)
2023-09-18 17:40:10 Requirement already satisfied: astor in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (0.8.1)
2023-09-18 17:40:10 Requirement already satisfied: opt-einsum==3.3.0 in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (3.3.0)
2023-09-18 17:40:10 Requirement already satisfied: protobuf>=3.20.2 in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (4.24.0)
2023-09-18 17:40:10 Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from httpx->paddlepaddle-gpu==0.0.0) (2019.11.28)
2023-09-18 17:40:10 Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in /usr/local/lib/python3.10/dist-packages (from httpx->paddlepaddle-gpu==0.0.0) (0.17.3)
2023-09-18 17:40:10 Requirement already satisfied: idna in /usr/lib/python3/dist-packages (from httpx->paddlepaddle-gpu==0.0.0) (2.8)
2023-09-18 17:40:10 Requirement already satisfied: sniffio in /usr/local/lib/python3.10/dist-packages (from httpx->paddlepaddle-gpu==0.0.0) (1.3.0)
2023-09-18 17:40:10 Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.10/dist-packages (from httpcore<0.18.0,>=0.15.0->httpx->paddlepaddle-gpu==0.0.0) (0.14.0)
2023-09-18 17:40:10 Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.10/dist-packages (from httpcore<0.18.0,>=0.15.0->httpx->paddlepaddle-gpu==0.0.0) (3.7.1)
2023-09-18 17:40:10 Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.10/dist-packages (from anyio<5.0,>=3.0->httpcore<0.18.0,>=0.15.0->httpx->paddlepaddle-gpu==0.0.0) (1.1.3)
2023-09-18 17:40:11 Installing collected packages: paddlepaddle-gpu
2023-09-18 17:40:18 Successfully installed paddlepaddle-gpu-0.0.0
2023-09-18 17:40:19 0.0.0
2023-09-18 17:40:19 commit: d5604fdfb5fd79604b0bed5d3a50b3054e635bb2
2023-09-18 17:40:19 cuda: 11.8
2023-09-18 17:40:19 cudnn: 8.9.0
2023-09-18 17:40:19 xpu: False
2023-09-18 17:40:19 xpu_xccl: False
2023-09-18 17:40:19 cinn: False
2023-09-18 17:40:20 ----------------Codeblock Check Start--------------------
2023-09-18 17:40:20 >>> Check test mode ...
2023-09-18 17:40:20 using GPU_ID 0
2023-09-18 17:40:20 >>> Get test capacity ...
2023-09-18 17:40:20 Sample code test capacity: {'cpu', 'gpu'}
2023-09-18 17:40:20 >>> Get docstring from api ...
2023-09-18 17:40:21 paddle.Tensor.create_parameter in dev is *******, different from pr's *******
2023-09-18 17:40:21 paddle.Tensor.create_tensor in dev is *******, different from pr's *******
2023-09-18 17:40:21 paddle.linspace in dev is *******, different from pr's *******
2023-09-18 17:40:21 paddle.logspace in dev is *******, different from pr's *******
2023-09-18 17:40:21 API_PR is diff from API_DEV: dict_keys(['paddle.Tensor.create_parameter', 'paddle.Tensor.create_tensor', 'paddle.linspace', 'paddle.logspace'])
2023-09-18 17:40:21 Total api: 4
2023-09-18 17:40:21 >>> Checking plain sample code style before Paddle 2.5 ...
2023-09-18 17:40:21 >>> Prepare doctester ...
2023-09-18 17:40:21 Set xdoctest environ ...
2023-09-18 17:40:21 Environ: CPU , set to True.
2023-09-18 17:40:21 Environ: GPU , set to True.
2023-09-18 17:40:21 API check using Xdoctest prepared!-- Example Code
2023-09-18 17:40:21 running under python 3.10.12
2023-09-18 17:40:21 running under xdoctest 1.1.1
2023-09-18 17:40:21 >>> Running doctester ...
2023-09-18 17:40:21 paddle.Tensor.create_parameter:1 >>> Please do NOT use `fluid` api.
2023-09-18 17:40:21 paddle.Tensor.create_tensor:1 >>> Please add sample code skip reason.
2023-09-18 17:40:21 paddle.linspace:bad_skip >>> Please add sample code skip reason.
2023-09-18 17:40:21 paddle.linspace:bad_skip_empty >>> Please add sample code skip reason.
2023-09-18 17:40:24 ====== <exec> ======
2023-09-18 17:40:24 * DOCTEST : <modpath?>::paddle.linspace:comment_fluid:0, line 1 <- wrt source file
2023-09-18 17:40:24 [ 0. 2.5 5. 7.5 10. ]
2023-09-18 17:40:24 [0.]
2023-09-18 17:40:24 DOCTEST RESULT
2023-09-18 17:40:24 * SUCCESS: <modpath?>::paddle.linspace:comment_fluid:0
2023-09-18 17:40:24 ====== </exec> ======
2023-09-18 17:40:25 ====== <exec> ======
2023-09-18 17:40:25 * DOCTEST : <modpath?>::paddle.logspace:1:0, line 1 <- wrt source file
2023-09-18 17:40:25 [1.0000000e+00 5.6568542e+00 3.2000000e+01 1.8101933e+02 1.0240000e+03]
2023-09-18 17:40:25 DOCTEST RESULT
2023-09-18 17:40:25 * SUCCESS: <modpath?>::paddle.logspace:1:0
2023-09-18 17:40:25 ====== </exec> ======
2023-09-18 17:40:25 >>> Print summary ...
2023-09-18 17:40:25 ----------------Check results--------------------
2023-09-18 17:40:25 >>> Sample code test capacity: {'cpu', 'gpu'}
2023-09-18 17:40:25 >>> 2 sample codes ran success in env: {'cpu', 'gpu'}
2023-09-18 17:40:25 <DocTest(<modname?> paddle.linspace:comment_fluid:0 ln 1)>, running time: 1.208s
2023-09-18 17:40:25 <DocTest(<modname?> paddle.logspace:1:0 ln 1)>, running time: 1.057s
2023-09-18 17:40:25 >>> 4 bad statements detected in sample codes in env: {'cpu', 'gpu'}
2023-09-18 17:40:25 paddle.Tensor.create_parameter:1, running time: infs
2023-09-18 17:40:25 paddle.Tensor.create_tensor:1, running time: infs
2023-09-18 17:40:25 paddle.linspace:bad_skip, running time: infs
2023-09-18 17:40:25 paddle.linspace:bad_skip_empty, running time: infs
2023-09-18 17:40:25 >>> Mistakes found in sample codes in env: {'cpu', 'gpu'}!
2023-09-18 17:40:25 >>> Please recheck the sample codes.
2023-09-18 17:40:25 ----------------End of the Check--------------------
2023-09-18 17:40:25 + example_info_gpu='++ '\''['\'' -d /paddle/build/pr_whl '\'']'\''
2023-09-18 17:40:25 ++ pip install /paddle/build/pr_whl/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
2023-09-18 17:40:25 DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
2023-09-18 17:40:25 WARNING: Running pip as the '\''root'\'' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-09-18 17:40:25 ++ python -c '\''import paddle;print(paddle.__version__);paddle.version.show()'\''
2023-09-18 17:40:25 ++ cd /paddle/tools
2023-09-18 17:40:25 ++ '\''['\'' gpu = cpu '\'']'\''
2023-09-18 17:40:25 ++ '\''['\'' gpu = gpu '\'']'\''
2023-09-18 17:40:25 ++ SAMPLE_CODE_EXEC_THREADS=1
2023-09-18 17:40:25 ++ python sampcd_processor.py --threads=1 --debug --mode gpu
2023-09-18 17:40:25 paddle.Tensor.create_parameter:1 >>> Please do NOT use `fluid` api.
2023-09-18 17:40:25 paddle.Tensor.create_tensor:1 >>> Please add sample code skip reason.
2023-09-18 17:40:25 paddle.linspace:bad_skip >>> Please add sample code skip reason.
2023-09-18 17:40:25 paddle.linspace:bad_skip_empty >>> Please add sample code skip reason.
2023-09-18 17:40:25 ----------------Check results--------------------
2023-09-18 17:40:25 >>> Sample code test capacity: {'\''cpu'\'', '\''gpu'\''}
2023-09-18 17:40:25 >>> 4 bad statements detected in sample codes in env: {'\''cpu'\'', '\''gpu'\''}
2023-09-18 17:40:25 paddle.Tensor.create_parameter:1, running time: infs
2023-09-18 17:40:25 paddle.Tensor.create_tensor:1, running time: infs
2023-09-18 17:40:25 paddle.linspace:bad_skip, running time: infs
2023-09-18 17:40:25 paddle.linspace:bad_skip_empty, running time: infs
2023-09-18 17:40:25 >>> Mistakes found in sample codes in env: {'\''cpu'\'', '\''gpu'\''}!
2023-09-18 17:40:25 >>> Please recheck the sample codes.
2023-09-18 17:40:25 ----------------End of the Check--------------------
2023-09-18 17:40:25 ++ example_error=1
2023-09-18 17:40:25 ++ '\''['\'' 1 '\''!='\'' 0 '\'']'\''
2023-09-18 17:40:25 ++ echo '\''Code instance execution failed'\''
2023-09-18 17:40:25 Code instance execution failed
2023-09-18 17:40:25 ++ exit 5'
2023-09-18 17:40:25 + example_code_gpu=5
2023-09-18 17:40:25 ++ exec_samplecode_test cpu
2023-09-18 17:40:26 Processing ./build/pr_whl/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
2023-09-18 17:40:26 Requirement already satisfied: httpx in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (0.24.1)
2023-09-18 17:40:26 Requirement already satisfied: numpy>=1.13 in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (1.24.4)
2023-09-18 17:40:26 Requirement already satisfied: Pillow in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (10.0.0)
2023-09-18 17:40:26 Requirement already satisfied: decorator in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (5.1.1)
2023-09-18 17:40:26 Requirement already satisfied: astor in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (0.8.1)
2023-09-18 17:40:26 Requirement already satisfied: opt-einsum==3.3.0 in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (3.3.0)
2023-09-18 17:40:26 Requirement already satisfied: protobuf>=3.20.2 in /usr/local/lib/python3.10/dist-packages (from paddlepaddle-gpu==0.0.0) (4.24.0)
2023-09-18 17:40:26 Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from httpx->paddlepaddle-gpu==0.0.0) (2019.11.28)
2023-09-18 17:40:26 Requirement already satisfied: httpcore<0.18.0,>=0.15.0 in /usr/local/lib/python3.10/dist-packages (from httpx->paddlepaddle-gpu==0.0.0) (0.17.3)
2023-09-18 17:40:26 Requirement already satisfied: idna in /usr/lib/python3/dist-packages (from httpx->paddlepaddle-gpu==0.0.0) (2.8)
2023-09-18 17:40:26 Requirement already satisfied: sniffio in /usr/local/lib/python3.10/dist-packages (from httpx->paddlepaddle-gpu==0.0.0) (1.3.0)
2023-09-18 17:40:27 Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.10/dist-packages (from httpcore<0.18.0,>=0.15.0->httpx->paddlepaddle-gpu==0.0.0) (0.14.0)
2023-09-18 17:40:27 Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.10/dist-packages (from httpcore<0.18.0,>=0.15.0->httpx->paddlepaddle-gpu==0.0.0) (3.7.1)
2023-09-18 17:40:27 Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.10/dist-packages (from anyio<5.0,>=3.0->httpcore<0.18.0,>=0.15.0->httpx->paddlepaddle-gpu==0.0.0) (1.1.3)
2023-09-18 17:40:27 paddlepaddle-gpu is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.
2023-09-18 17:40:29 0.0.0
2023-09-18 17:40:29 commit: d5604fdfb5fd79604b0bed5d3a50b3054e635bb2
2023-09-18 17:40:29 cuda: 11.8
2023-09-18 17:40:29 cudnn: 8.9.0
2023-09-18 17:40:29 xpu: False
2023-09-18 17:40:29 xpu_xccl: False
2023-09-18 17:40:29 cinn: False
2023-09-18 17:40:29 ----------------Codeblock Check Start--------------------
2023-09-18 17:40:29 >>> Check test mode ...
2023-09-18 17:40:29 using CPU
2023-09-18 17:40:29 >>> Get test capacity ...
2023-09-18 17:40:29 Sample code test capacity: {'cpu'}
2023-09-18 17:40:29 >>> Get docstring from api ...
2023-09-18 17:40:31 paddle.Tensor.create_parameter in dev is *******, different from pr's *******
2023-09-18 17:40:31 paddle.Tensor.create_tensor in dev is *******, different from pr's *******
2023-09-18 17:40:31 paddle.linspace in dev is *******, different from pr's *******
2023-09-18 17:40:31 paddle.logspace in dev is *******, different from pr's *******
2023-09-18 17:40:31 API_PR is diff from API_DEV: dict_keys(['paddle.Tensor.create_parameter', 'paddle.Tensor.create_tensor', 'paddle.linspace', 'paddle.logspace'])
2023-09-18 17:40:31 Total api: 4
2023-09-18 17:40:31 >>> Checking plain sample code style before Paddle 2.5 ...
2023-09-18 17:40:31 >>> Prepare doctester ...
2023-09-18 17:40:31 Set xdoctest environ ...
2023-09-18 17:40:31 Environ: CPU , set to True.
2023-09-18 17:40:31 API check using Xdoctest prepared!-- Example Code
2023-09-18 17:40:31 running under python 3.10.12
2023-09-18 17:40:31 running under xdoctest 1.1.1
2023-09-18 17:40:31 >>> Running doctester ...
2023-09-18 17:40:31 paddle.Tensor.create_parameter:1 >>> Please do NOT use `fluid` api.
2023-09-18 17:40:31 paddle.Tensor.create_tensor:1 >>> Please add sample code skip reason.
2023-09-18 17:40:31 paddle.linspace:bad_skip >>> Please add sample code skip reason.
2023-09-18 17:40:31 paddle.linspace:bad_skip_empty >>> Please add sample code skip reason.
2023-09-18 17:40:32 ====== <exec> ======
2023-09-18 17:40:32 * DOCTEST : <modpath?>::paddle.linspace:comment_fluid:0, line 1 <- wrt source file
2023-09-18 17:40:32 [ 0. 2.5 5. 7.5 10. ]
2023-09-18 17:40:32 [0.]
2023-09-18 17:40:32 DOCTEST RESULT
2023-09-18 17:40:32 * SUCCESS: <modpath?>::paddle.linspace:comment_fluid:0
2023-09-18 17:40:32 ====== </exec> ======
2023-09-18 17:40:33 ====== <exec> ======
2023-09-18 17:40:33 * DOCTEST : <modpath?>::paddle.logspace:1:0, line 1 <- wrt source file
2023-09-18 17:40:33 [1.0000000e+00 5.6568542e+00 3.2000000e+01 1.8101933e+02 1.0240000e+03]
2023-09-18 17:40:33 DOCTEST RESULT
2023-09-18 17:40:33 * SUCCESS: <modpath?>::paddle.logspace:1:0
2023-09-18 17:40:33 ====== </exec> ======
2023-09-18 17:40:33 >>> Print summary ...
2023-09-18 17:40:33 ----------------Check results--------------------
2023-09-18 17:40:33 >>> Sample code test capacity: {'cpu'}
2023-09-18 17:40:33 >>> 2 sample codes ran success in env: {'cpu'}
2023-09-18 17:40:33 <DocTest(<modname?> paddle.linspace:comment_fluid:0 ln 1)>, running time: 1.081s
2023-09-18 17:40:33 <DocTest(<modname?> paddle.logspace:1:0 ln 1)>, running time: 1.090s
2023-09-18 17:40:33 >>> 4 bad statements detected in sample codes in env: {'cpu'}
2023-09-18 17:40:33 paddle.Tensor.create_parameter:1, running time: infs
2023-09-18 17:40:33 paddle.Tensor.create_tensor:1, running time: infs
2023-09-18 17:40:33 paddle.linspace:bad_skip, running time: infs
2023-09-18 17:40:33 paddle.linspace:bad_skip_empty, running time: infs
2023-09-18 17:40:33 >>> Mistakes found in sample codes in env: {'cpu'}!
2023-09-18 17:40:33 >>> Please recheck the sample codes.
2023-09-18 17:40:33 ----------------End of the Check--------------------
2023-09-18 17:40:34 + example_info='++ '\''['\'' -d /paddle/build/pr_whl '\'']'\''
2023-09-18 17:40:34 ++ pip install /paddle/build/pr_whl/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
2023-09-18 17:40:34 DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
2023-09-18 17:40:34 WARNING: Running pip as the '\''root'\'' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-09-18 17:40:34 ++ python -c '\''import paddle;print(paddle.__version__);paddle.version.show()'\''
2023-09-18 17:40:34 ++ cd /paddle/tools
2023-09-18 17:40:34 ++ '\''['\'' cpu = cpu '\'']'\''
2023-09-18 17:40:34 ++ python sampcd_processor.py --debug --mode cpu
2023-09-18 17:40:34 paddle.Tensor.create_parameter:1 >>> Please do NOT use `fluid` api.
2023-09-18 17:40:34 paddle.Tensor.create_tensor:1 >>> Please add sample code skip reason.
2023-09-18 17:40:34 paddle.linspace:bad_skip >>> Please add sample code skip reason.
2023-09-18 17:40:34 paddle.linspace:bad_skip_empty >>> Please add sample code skip reason.
2023-09-18 17:40:34 ----------------Check results--------------------
2023-09-18 17:40:34 >>> Sample code test capacity: {'\''cpu'\''}
2023-09-18 17:40:34 >>> 4 bad statements detected in sample codes in env: {'\''cpu'\''}
2023-09-18 17:40:34 paddle.Tensor.create_parameter:1, running time: infs
2023-09-18 17:40:34 paddle.Tensor.create_tensor:1, running time: infs
2023-09-18 17:40:34 paddle.linspace:bad_skip, running time: infs
2023-09-18 17:40:34 paddle.linspace:bad_skip_empty, running time: infs
2023-09-18 17:40:34 >>> Mistakes found in sample codes in env: {'\''cpu'\''}!
2023-09-18 17:40:34 >>> Please recheck the sample codes.
2023-09-18 17:40:34 ----------------End of the Check--------------------
2023-09-18 17:40:34 ++ example_error=1
2023-09-18 17:40:34 ++ '\''['\'' 1 '\''!='\'' 0 '\'']'\''
2023-09-18 17:40:34 ++ echo '\''Code instance execution failed'\''
2023-09-18 17:40:34 Code instance execution failed
2023-09-18 17:40:34 ++ exit 5'
2023-09-18 17:40:34 + example_code=5
2023-09-18 17:40:34 + summary_check_problems 10 '++ '\''['\'' -d /paddle/build/pr_whl '\'']'\''
2023-09-18 17:40:34 ++ pip install /paddle/build/pr_whl/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
2023-09-18 17:40:34 DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
2023-09-18 17:40:34 WARNING: Running pip as the '\''root'\'' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-09-18 17:40:34 ++ python -c '\''import paddle;print(paddle.__version__);paddle.version.show()'\''
2023-09-18 17:40:34 ++ cd /paddle/tools
2023-09-18 17:40:34 ++ '\''['\'' gpu = cpu '\'']'\''
2023-09-18 17:40:34 ++ '\''['\'' gpu = gpu '\'']'\''
2023-09-18 17:40:34 ++ SAMPLE_CODE_EXEC_THREADS=1
2023-09-18 17:40:34 ++ python sampcd_processor.py --threads=1 --debug --mode gpu
2023-09-18 17:40:34 paddle.Tensor.create_parameter:1 >>> Please do NOT use `fluid` api.
2023-09-18 17:40:34 paddle.Tensor.create_tensor:1 >>> Please add sample code skip reason.
2023-09-18 17:40:34 paddle.linspace:bad_skip >>> Please add sample code skip reason.
2023-09-18 17:40:34 paddle.linspace:bad_skip_empty >>> Please add sample code skip reason.
2023-09-18 17:40:34 ----------------Check results--------------------
2023-09-18 17:40:34 >>> Sample code test capacity: {'\''cpu'\'', '\''gpu'\''}
2023-09-18 17:40:34 >>> 4 bad statements detected in sample codes in env: {'\''cpu'\'', '\''gpu'\''}
2023-09-18 17:40:34 paddle.Tensor.create_parameter:1, running time: infs
2023-09-18 17:40:34 paddle.Tensor.create_tensor:1, running time: infs
2023-09-18 17:40:34 paddle.linspace:bad_skip, running time: infs
2023-09-18 17:40:34 paddle.linspace:bad_skip_empty, running time: infs
2023-09-18 17:40:34 >>> Mistakes found in sample codes in env: {'\''cpu'\'', '\''gpu'\''}!
2023-09-18 17:40:34 >>> Please recheck the sample codes.
2023-09-18 17:40:34 ----------------End of the Check--------------------
2023-09-18 17:40:34 ++ example_error=1
2023-09-18 17:40:34 ++ '\''['\'' 1 '\''!='\'' 0 '\'']'\''
2023-09-18 17:40:34 ++ echo '\''Code instance execution failed'\''
2023-09-18 17:40:34 Code instance execution failed
2023-09-18 17:40:34 ++ exit 5\n++ '\''['\'' -d /paddle/build/pr_whl '\'']'\''
2023-09-18 17:40:34 ++ pip install /paddle/build/pr_whl/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
2023-09-18 17:40:34 DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
2023-09-18 17:40:34 WARNING: Running pip as the '\''root'\'' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-09-18 17:40:34 ++ python -c '\''import paddle;print(paddle.__version__);paddle.version.show()'\''
2023-09-18 17:40:34 ++ cd /paddle/tools
2023-09-18 17:40:34 ++ '\''['\'' cpu = cpu '\'']'\''
2023-09-18 17:40:34 ++ python sampcd_processor.py --debug --mode cpu
2023-09-18 17:40:34 paddle.Tensor.create_parameter:1 >>> Please do NOT use `fluid` api.
2023-09-18 17:40:34 paddle.Tensor.create_tensor:1 >>> Please add sample code skip reason.
2023-09-18 17:40:34 paddle.linspace:bad_skip >>> Please add sample code skip reason.
2023-09-18 17:40:34 paddle.linspace:bad_skip_empty >>> Please add sample code skip reason.
2023-09-18 17:40:34 ----------------Check results--------------------
2023-09-18 17:40:34 >>> Sample code test capacity: {'\''cpu'\''}
2023-09-18 17:40:34 >>> 4 bad statements detected in sample codes in env: {'\''cpu'\''}
2023-09-18 17:40:34 paddle.Tensor.create_parameter:1, running time: infs
2023-09-18 17:40:34 paddle.Tensor.create_tensor:1, running time: infs
2023-09-18 17:40:34 paddle.linspace:bad_skip, running time: infs
2023-09-18 17:40:34 paddle.linspace:bad_skip_empty, running time: infs
2023-09-18 17:40:34 >>> Mistakes found in sample codes in env: {'\''cpu'\''}!
2023-09-18 17:40:34 >>> Please recheck the sample codes.
2023-09-18 17:40:34 ----------------End of the Check--------------------
2023-09-18 17:40:34 ++ example_error=1
2023-09-18 17:40:34 ++ '\''['\'' 1 '\''!='\'' 0 '\'']'\''
2023-09-18 17:40:34 ++ echo '\''Code instance execution failed'\''
2023-09-18 17:40:34 Code instance execution failed
2023-09-18 17:40:34 ++ exit 5'
2023-09-18 17:40:34 + set +x
2023-09-18 17:40:34 ===============================================================================
2023-09-18 17:40:34 *****Example code error***** Please fix the error listed in the information:
2023-09-18 17:40:34 ===============================================================================
2023-09-18 17:40:34 ++ '[' -d /paddle/build/pr_whl ']'
2023-09-18 17:40:34 ++ pip install /paddle/build/pr_whl/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
2023-09-18 17:40:34 DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
2023-09-18 17:40:34 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-09-18 17:40:34 ++ python -c 'import paddle;print(paddle.__version__);paddle.version.show()'
2023-09-18 17:40:34 ++ cd /paddle/tools
2023-09-18 17:40:34 ++ '[' gpu = cpu ']'
2023-09-18 17:40:34 ++ '[' gpu = gpu ']'
2023-09-18 17:40:34 ++ SAMPLE_CODE_EXEC_THREADS=1
2023-09-18 17:40:34 ++ python sampcd_processor.py --threads=1 --debug --mode gpu
2023-09-18 17:40:34 paddle.Tensor.create_parameter:1 >>> Please do NOT use `fluid` api.
2023-09-18 17:40:34 paddle.Tensor.create_tensor:1 >>> Please add sample code skip reason.
2023-09-18 17:40:34 paddle.linspace:bad_skip >>> Please add sample code skip reason.
2023-09-18 17:40:34 paddle.linspace:bad_skip_empty >>> Please add sample code skip reason.
2023-09-18 17:40:34 ----------------Check results--------------------
2023-09-18 17:40:34 >>> Sample code test capacity: {'cpu', 'gpu'}
2023-09-18 17:40:34 >>> 4 bad statements detected in sample codes in env: {'cpu', 'gpu'}
2023-09-18 17:40:34 paddle.Tensor.create_parameter:1, running time: infs
2023-09-18 17:40:34 paddle.Tensor.create_tensor:1, running time: infs
2023-09-18 17:40:34 paddle.linspace:bad_skip, running time: infs
2023-09-18 17:40:34 paddle.linspace:bad_skip_empty, running time: infs
2023-09-18 17:40:34 >>> Mistakes found in sample codes in env: {'cpu', 'gpu'}!
2023-09-18 17:40:34 >>> Please recheck the sample codes.
2023-09-18 17:40:34 ----------------End of the Check--------------------
2023-09-18 17:40:34 ++ example_error=1
2023-09-18 17:40:34 ++ '[' 1 '!=' 0 ']'
2023-09-18 17:40:34 ++ echo 'Code instance execution failed'
2023-09-18 17:40:34 Code instance execution failed
2023-09-18 17:40:34 ++ exit 5\n++ '[' -d /paddle/build/pr_whl ']'
2023-09-18 17:40:34 ++ pip install /paddle/build/pr_whl/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
2023-09-18 17:40:34 DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
2023-09-18 17:40:34 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
2023-09-18 17:40:34 ++ python -c 'import paddle;print(paddle.__version__);paddle.version.show()'
2023-09-18 17:40:34 ++ cd /paddle/tools
2023-09-18 17:40:34 ++ '[' cpu = cpu ']'
2023-09-18 17:40:34 ++ python sampcd_processor.py --debug --mode cpu
2023-09-18 17:40:34 paddle.Tensor.create_parameter:1 >>> Please do NOT use `fluid` api.
2023-09-18 17:40:34 paddle.Tensor.create_tensor:1 >>> Please add sample code skip reason.
2023-09-18 17:40:34 paddle.linspace:bad_skip >>> Please add sample code skip reason.
2023-09-18 17:40:34 paddle.linspace:bad_skip_empty >>> Please add sample code skip reason.
2023-09-18 17:40:34 ----------------Check results--------------------
2023-09-18 17:40:34 >>> Sample code test capacity: {'cpu'}
2023-09-18 17:40:34 >>> 4 bad statements detected in sample codes in env: {'cpu'}
2023-09-18 17:40:34 paddle.Tensor.create_parameter:1, running time: infs
2023-09-18 17:40:34 paddle.Tensor.create_tensor:1, running time: infs
2023-09-18 17:40:34 paddle.linspace:bad_skip, running time: infs
2023-09-18 17:40:34 paddle.linspace:bad_skip_empty, running time: infs
2023-09-18 17:40:34 >>> Mistakes found in sample codes in env: {'cpu'}!
2023-09-18 17:40:34 >>> Please recheck the sample codes.
2023-09-18 17:40:34 ----------------End of the Check--------------------
2023-09-18 17:40:34 ++ example_error=1
2023-09-18 17:40:34 ++ '[' 1 '!=' 0 ']'
2023-09-18 17:40:34 ++ echo 'Code instance execution failed'
2023-09-18 17:40:34 Code instance execution failed
2023-09-18 17:40:34 ++ exit 5
2023-09-18 17:40:34 ===============================================================================
2023-09-18 17:40:34 *****Example code FAIL*****
2023-09-18 17:40:34 ===============================================================================
2023-09-18 17:40:34 + EXCODE=10
2023-09-18 17:40:34 + echo 'EXCODE: 10'
2023-09-18 17:40:34 EXCODE: 10
2023-09-18 17:40:34 + echo 'ipipe_log_param_EXCODE: 10'
2023-09-18 17:40:34 ipipe_log_param_EXCODE: 10
2023-09-18 17:40:34 + set +x
2023-09-18 17:40:34 + exit 10
2023-09-18 17:40:34 {build code state=10}
|
SigureMo
approved these changes
Sep 19, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTMeow 🐾
13 tasks
Frida-a
pushed a commit
to Frida-a/Paddle
that referenced
this pull request
Oct 14, 2023
* [Add] bad statement check * [Change] fluid can in comment * [Fix] fix regex * [Change] add more test for TestResult * [Fix] default value * [Change] restore creation.py
danleifeng
pushed a commit
to danleifeng/Paddle
that referenced
this pull request
Nov 14, 2023
* [Add] bad statement check * [Change] fluid can in comment * [Fix] fix regex * [Change] add more test for TestResult * [Fix] default value * [Change] restore creation.py
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
Others
PR changes
Others
Description
对示例中的 bad(遗弃:fluid、不建议:无reason的skip,等) 语句进行检查。
涉及文件:
tools/sampcd_processor.py
添加 badstatement 检测tools/sampcd_processor_utils.py
重构 TestResult,以方便扩展结果类型tools/test_sampcd_processor.py
增加测试用例python/paddle/tensor/creation.py
临时文件,用于示例检查@SigureMo 请评审~