Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
pollyyan 3c110736d7 | 2 years ago | |
---|---|---|
distributed | 2 years ago | |
framework | 2 years ago | |
inference | 2 years ago | |
lite | 2 years ago | |
models | 2 years ago | |
tools/codestyle | 2 years ago | |
.pre-commit-config.yaml | 2 years ago | |
README.md | 2 years ago |
. -------------------------------------> 项目根目录
├── README.md
│
├── distributed/ -------------------------> 分布式测试case
│
├── framework/ -------------------------> 主框架Paddle测试case
│
├── inference/ -------------------------> 预测相关测试case
│
├── lite/ -------------------------> Lite相关测试case
│
└── models/ -------------------------> 模型相关的测试case
代码审查包括两部分,一个是基于现有开源代码格式规范的审查,通过pre-commit来审查,另一个是基于自定义要求的审查,在tools/codestyle
下。
pre-commit审核主要是三种,包括black
,flake8
,pylint
,在CI阶段代码审查执行。本地运行方式是安装pre-commit,一个简单的方法是用python3+使用pip install pre-commit
来安装。
执行方式pre-commit run --file [your code file]
,black
会自动调整代码格式和一些简单的规范错误。具体规范配置请见根目录.pre-commit-config.yaml
文件。
合入必须要求通过全部CI检测,原则上禁止强行Merge,如果有Pylint代码格式阻塞,可以讨论是否禁止某一条规范生效,必须要求一个QA Reviewer,禁止出现敏感代码。
CI任务名称 | 关键字 | 效果 |
---|---|---|
linux-ci | notest,test=linux_ci | 只触发linux-ci任务,其余均不触发 |
linux-inference-ci | notest,test=linux_inference_ci | 只触发linux-inference-ci任务,其余均不触发 |
CodeStyle | notest,test=codestyle | 只触发CodeStyle任务,其余均不触发 |
任务类型 | 关键字 | 效果 |
---|---|---|
框架任务 | run_mode=framework | linux-inference-ci任务不执行 |
预测任务 | run_mode=inference | linux-ci任务不执行 |
模型任务 | run_mode=model | linux-ci任务与linux-inference-ci任务不执行 |
PaddlePaddle API测试库
Python Shell Batchfile Text
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》