Giter Club home page Giter Club logo

paddletest's Introduction

PaddleTest

目录结构

.    -------------------------------------> 项目根目录
├── 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 触发规则

  • 默认触发全部CI任务
  • 只触发某一个CI任务,需要在commit信息中添加相应的关键字
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任务,其余均不触发

CI任务分类触发

  • 框架内容合入不触发linux-inference-ci任务
  • 预测内容合入不触发linux-ci任务
  • 模型内容合入不触发linux-ci任务和linux-inference-ci任务
任务类型 关键字 效果
框架任务 run_mode=framework linux-inference-ci任务不执行
预测任务 run_mode=inference linux-ci任务不执行
模型任务 run_mode=model linux-ci任务与linux-inference-ci任务不执行

paddletest's People

Contributors

chalsliu avatar dddivano avatar emmonscurse avatar ggbond8488 avatar gzxl avatar iamwhtwd avatar jiamengsi avatar jiaxiao243 avatar liujie0926 avatar mmglove avatar oliverlph avatar pcjmmc avatar plusnew001 avatar pollyyan avatar quanxiang-liu avatar shjnt avatar veyron95 avatar wanghuancoder avatar wangye707 avatar xiegegege avatar xieyunshen avatar yanmeng1019 avatar yghstill avatar yjjiang11 avatar zeref996 avatar zhangyulongg avatar zhengya01 avatar zhoutianzi666 avatar zhwesky2010 avatar zjjlivein avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.