1. 18 7月, 2023 1 次提交
    • M
      [Add] Paddle 代码 CI 中引入 xdoctest 检查 (#55295) · 26fba07c
      megemini 提交于
      * [Add]Add Xdoctester
      
      * [Fix]fix beta docstring
      
      * [Doctest]change dirichlet docstring
      
      * [Doctest]change gumbel docstring
      
      * [Doctest]change bernoulli docstring
      
      * [Doctest]change categorical docstring
      
      * [Doctest]change ops.py docstring
      
      * [Doctest]change conv docstring
      
      * [Doctest]change distance docstring, test=docs_preview
      
      * [Change]add ref
      
      * [Change]patch xdoctest debug
      26fba07c
  2. 03 7月, 2023 1 次提交
  3. 09 6月, 2023 1 次提交
  4. 31 3月, 2023 1 次提交
  5. 29 3月, 2023 1 次提交
  6. 28 3月, 2023 1 次提交
  7. 30 12月, 2022 1 次提交
  8. 20 12月, 2022 1 次提交
  9. 29 11月, 2022 1 次提交
  10. 07 11月, 2022 1 次提交
  11. 01 11月, 2022 1 次提交
  12. 23 10月, 2022 1 次提交
  13. 12 10月, 2022 2 次提交
  14. 14 9月, 2022 1 次提交
  15. 05 6月, 2022 1 次提交
    • S
      【code format check upgrade】 step2:yapf (#42944) · a072fca8
      Sing_chan 提交于
      * use yapf to format all python file
      
      * yapf exclude two unittests file for they rely on writing and reading file, and format will break them
      
      * disable diff_py_file because too many diff files cause command following failed
      a072fca8
  16. 30 5月, 2022 1 次提交
  17. 23 5月, 2022 1 次提交
  18. 09 3月, 2022 1 次提交
    • R
      build documents if public apis modified, meanwhile their samplecodes should be tested (#39728) · 041c4bca
      Ren Wei (任卫) 提交于
      * run document_preview when samplecodes be tested
      
      * run document_preview when samplecodes be tested
      
      * sphinx-build symbol link; and build-doc default
      
      * FLUIDDOCDIR typo
      
      * download the required configirations and some other scripts
      
      * install required python packages.
      
      * clone specified branch of docs repo, and if failed, clone the default branch
      
      * clean workspace for docs repo
      
      * use the conf.py imported by https://github.com/PaddlePaddle/docs/pull/4222/
      
      * download and install the boscmd
      
      * Optimaze the code comments.
      
      * specify the pypi index server
      
      * only do doc-build when running in cpu mode
      
      * pull docs pr
      
      git log
      
      paddle_pr_info
      
      * install jq
      
      * force using sphinx-build under py3.7
      
      * using our new domain name for preview
      
      * install python package error
      
      * don't build doc default
      041c4bca
  19. 18 8月, 2021 1 次提交
  20. 24 6月, 2021 1 次提交
    • R
      remove the tricks for `paddle.fluid.layers.ops.func` (#33731) · ba7e2a9f
      Ren Wei (任卫) 提交于
      * refactor check_pr_approval, allow using github login-id
      
      2. remove the tricks for paddle.fluid.layers.ops.func
      
      * add testcases
      
      * simplify the test data, and added to file diff approvals
      
      * remove a approver
      
      * test_print_signatrues runs on a simple pipeline, no paddle installed
      
      * testcases for print_signatrures and sampcd . python3 only.
      
      * remove unused import directives
      
      * remove unused import directives
      ba7e2a9f
  21. 22 6月, 2021 1 次提交
    • R
      Gpu samplecode test On PR-CPU-Py2 (#33634) · dd4297cd
      Ren Wei (任卫) 提交于
      * using argparse to handle selections
      
      * 2 TODOs
      
      * 先不更改pipeline配置,这里强制改成GPU版本
      
      * sorted the all_names
      
      * exec gpu sample codes tests incrementally
      
      * get all apis from the pr.spec file
      
      * condition with WITH_GPU
      
      WITH_GPU == ON
      
      save
      
      * delete the useless codes
      
      * delete the useless codes.
      
      test=document_fix
      
      * echo the diff result
      
      test=document_fix
      
      * dont reuse the variables
      
      * rename fun to _func not work. put it into the skiplist
      
      https://github.com/PaddlePaddle/Paddle/commit/038ffc795025170e8cda74bcd473b46301b9a1c0
      test=document_fix
      
      * skip it in check api approvals
      
      test=document_fix
      
      save
      
      * skip the private _variables
      
      * print signatures wrong. now rename it to _func
      
      test=document_fix
      dd4297cd
  22. 16 6月, 2021 1 次提交
  23. 10 6月, 2021 1 次提交
    • R
      fix the bug that `print_signature.py` cannot get all the public apis (#33423) · afa4bf51
      Ren Wei (任卫) 提交于
      * 增加方法获取和执行全量api的示例代码进行测试
      
      * start the sample code test for gpu
      
      * should import paddle separately
      
      * add a stdout handler, the default is stderr. the paddle_build.sh will catch the stdout content.
      
      * add RUN_ON_DEVICE into the requires set
      
      * if codeblok['required'] is empty, use the RUN_ON_DEVICE instead
      
      * set the threads to 16
      
      http://agroup.baidu.com/paddlepaddle-org-cn/md/article/4036225
      
      * 设置默认日志级别为INFO级别
      
      * using the logic from gen_doc.py
      
      * using modulelist to get the all apis
      
      * as we don't care which name is the shorttest, so fetch the first name in the all_names list
      
      * the new list from project
      
      * 先不启用gpu测试,先把print_signature获取不到全部API的问题解决了
      afa4bf51
  24. 14 5月, 2021 1 次提交
    • R
      use the `required` instruction to determine if the environment fits the sample... · 42aad304
      Ren Wei (任卫) 提交于
      use the `required` instruction to determine if the environment fits the sample code's required. (#32766)
      
      * add unittests
      
      * add find_last_future_line_end
      
      * extract_code_blocks_from_docstr and its testcases
      
      * test_codeblock_before_examples_is_ignored
      
      * sampcd_extract_to_file 拆为两步
      
      * update the codeblock element's format
      
      * code-block directive has no value options
      
      * insert the CODES_INTERTED_INTO_FRONTEND
      
      * using the new func insert_codes_into_codeblock
      
      * get_test_capacity and is_required_match
      
      * using the new funcitons in sampcd_extract_to_file
      
      * add some comments and refactor functions
      
      * using logger instead of all the print
      
      * remote wlist
      
      * collect summary info, and print them
      
      * call get capacity
      
      * update summary format
      
      * print the apis that don't have sample codes.
      
      * print the samples the consumed time more than 10s.
      
      print time
      
      * update unittest testcases
      
      * solve ResourceWarning: unclosed file
      
      * run tools test seperately
      
      * python2 does not have nonlocal keyword, using dict variable instead
      
      * remove unused import, rearrange a series of conditional statements.
      
      * remove wlist.json and its check approval
      
      * remove wlist.json and its check approval
      42aad304
  25. 25 4月, 2021 1 次提交
    • R
      Cleanup the unused codes for samplecode testing (#32525) · 2328921f
      Ren Wei (任卫) 提交于
      * update testcases
      
      * remove unused codes
      
      * update the docstring for samcd_processor
      
      * no need to import the six module
      
      * 我也不知道为何有一个前导空格,但现在有单元测试,取消这个空格没啥问题
      
      * add unittests for print_signatures; add the first case for 'required' mechanism when executing sample code testing
      
      * there is no paddle installed in PR-CI-APPROVAL
      
      test=document_fix
      2328921f
  26. 24 4月, 2021 1 次提交
    • R
      print the real name for Functions instead of the ArgSpec (#32379) · ef8671e5
      Ren Wei (任卫) 提交于
      * print the real name for Functions instead of the ArgSpec
      
      class function method
      
      * some API's name is not __module__ + __name__
      
      so, we disard them temporarily.
      
      * update the logging format for console
      
      * ommit the top level of paddle package.
      
      * these APIs have been removed.
      
      test=document_fix
      
      * Another Error occerd
      
      * print_signatures.py 's stdout is redirect to spec file, so should not print any other info.
      
      so sad.
      
      * print the error msg to stderr
      
      * disable the __init__ magic method
      
      * update unittest for sampcd_processor.py
      
      update unittest for sampcd_processor.py
      
      * PR-CI-APPROVAL 's python interpreter name is not 'python3'.
      
      it's a python3.9;
      it does not have paddle installed yet.
      
      此句在CI流水线竟然不可以用。报python3找不到
      此句在CI流水线竟然不可以用。因为环境没有安装paddle
      
      * testing only extract api from __all__
      
      paddle module(the top module) does not have __add__
      test=document_fix
      
      * should import paddle here
      
      * update the mechanism of extractiong and executing for the sample-codes test.
      
      更新抽取代码和执行代码的逻辑
      优化输出打印
      
      * good code style
      ef8671e5
  27. 19 4月, 2021 1 次提交
  28. 13 4月, 2021 1 次提交
  29. 24 11月, 2020 1 次提交
    • L
      Upgrade string literals to raw string (#28989) · 3815d7aa
      Leo Chen 提交于
      * upgrade comment string to raw string
      
      * fix string in
      
      * fix string with ' '
      
      * revert update on comments
      
      * upgrade only necessary
      
      * fix sample code checker
      
      * fix comments with '''
      3815d7aa
  30. 25 9月, 2020 1 次提交
  31. 25 8月, 2020 1 次提交
  32. 28 7月, 2020 1 次提交
  33. 29 6月, 2020 1 次提交
  34. 07 5月, 2020 1 次提交
  35. 09 4月, 2020 1 次提交
  36. 27 3月, 2020 1 次提交
  37. 24 3月, 2020 1 次提交
  38. 10 3月, 2020 1 次提交
  39. 06 3月, 2020 1 次提交