Created by: chenwhql
为了规范Paddle的报错信息,我们制订了报错信息文案的书写规范,该PR将规范中可监控的规则加入到了CI检查中。( In order to standardize Paddle's error message, we have written a specification for the error message writing. This PR adds the rules that can be monitored in the specification to the CI check. )
新增的CI检查规则只检查一个PR中新增代码中的Enforce,不涉及存量问题的处理。
CI检查点包括:
- 没有报错信息
- 错信息长度不足20个字符
- 没有指定错误类型
- 有错误类型,但是没有报错信息
- 有错误类型,但是报错信息长度不足20个字符
最新的CI检查失败提示: The error message you wrote in PADDLE_ENFORCE{_**} or PADDLE_THROW does not meet our error message writing specification. Possible errors include 1. the error message is empty / 2. the error message is too short / 3. the error type is not specified. Please read the specification [ https://github.com/PaddlePaddle/Paddle/wiki/Paddle-Error-Message-Writing-Specification ], then refine the error message. If it is a mismatch, please specify chenwhql (Recommend), luotao1 or lanxianghit review and approve.\nThe PADDDLE_ENFORCE or PADDLE_THROW entries that do not meet the specification are as follows:\n${INVALID_PADDLE_CHECK}\n"
CI检查触发示例 http://ci.paddlepaddle.org/viewLog.html?buildId=217373&buildTypeId=YYTest_PrCiCpuPy2&tab=buildLog