-
Notifications
You must be signed in to change notification settings - Fork 777
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
[Remove] 代码检查移交给 Paddle CI #6129
Conversation
docs/api/gen_doc.py
Outdated
@@ -1545,15 +1305,10 @@ def parse_args(): | |||
gen_en_files() | |||
check_cn_en_match() | |||
if need_run_sample_codes: |
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.
这个参数感觉也可以直接删了,现在有 CI 会传入 --need-run-sample-codes
或者环境变量 RUN_SAMPLE_CODES
嘛?
看样子这些参数应该都可以删了
--run-sample-codes
和环境变量RUN_SAMPLE_CODES
--threads
和环境变量RUN_SAMPLE_CODES_THREADS
--run-on-device
--gpu_id
相关用到的代码应该也是可以清理的,这样 gen_doc.py
应该可以大幅瘦身,毕竟原来承担了太多它不应该承担的职能,也没人能维护的起来……修改后应该会好很多(虽然还是全 Paddle 最烂的代码)
docs/api/gen_doc.py
Outdated
|
||
return "\n".join(codeblock_clean) | ||
|
||
|
||
def extract_code_blocks_from_docstr(docstr, google_style=True): |
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.
extract_code_blocks_from_docstr
是否可以迁移到 docs/api/copy_codes_from_en_doc.py
了呢?
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.
感觉里面类似 cb_required_pat
这种旧格式才需要的逻辑也可以清理掉了,Paddle repo 是不是有同样的逻辑,应该也是可以清理的?(如果觉得这个 PR 改动太多,我们可以在下一个 PR 再处理也可以,渐进式修改可以减少出问题的概率)
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 🐾 !
现在 gen_doc.py
比以前顺眼多了
PR types
Others
PR changes
Others
Description
中国软件开源创新大赛:飞桨框架任务挑战赛
赛题五:将 xdoctest 引入到飞桨框架工作流中
RFC [Add]将 xdoctest 引入到飞桨框架工作流中v1
ISSUE 赛题五:将 xdoctest 引入到飞桨框架工作流中 Tracking Issue
第二阶段
任务:代码检查移交
将 docs 中关于代码检查的代码全部删除。
涉及文件:
ci_scripts/check_api_cn.sh
删除掉检查部分ci_scripts/chinese_samplecode_processor.py
删除此文件docs/api/gen_doc.py
删除掉检查部分关联 PR:PaddlePaddle/Paddle#56573
@SigureMo @luotao1 @jzhang533 @sunzhongkai588
请评审,谢谢!:)