Switch checks to use retool. Fix goword and errcheck#7240
Conversation
Also fix goword and errcheck which were not being run correctly. These are now under the check-fail task.
|
CI failed by: |
|
That's odd: this is the same as PD which is building just fine. Let me know if you understand this error. Otherwise I will just remove it for now: there are plenty of other checks to deal with right now. |
|
It seems |
Makefile
Outdated
Makefile
Outdated
There was a problem hiding this comment.
Could you file a github issue for these failed checks? Maybe we can make these checks happy again with the help of the community. 😄
Makefile
Outdated
There was a problem hiding this comment.
Should we add tol-install into this section?
There was a problem hiding this comment.
retool sync installs everything from tools.json. tool-install is the record of how that was generated. Its probably better to put tool-install into a hack/scripts/config folder rather than clutter the Makefile.
7af6b29 to
11e4444
Compare
What have you changed? (mandatory)
Switch checks to use retool. retool vendors check tools local to the project.
Note that you can also add other tools such as code generators to the retool setup.
Fix goword and errcheck: these were not being run correctly.These are now under the
check-failtask.I would recommend creating an issue to fix the check-fail task. This can be time boxed to some amount of time per week, but will probably take more than one day total.
errcheckin particular is of great importance: unhandled errors are almost guaranteed to result in bugs. I can show you how I handle collecting errors in defer statements.What is the type of the changes? (mandatory)
Improvement/New Feature for static analysis
How has this PR been tested? (mandatory)
make checkDoes this PR affect documentation (docs/docs-cn) update? (mandatory)
no
Does this PR affect tidb-ansible update? (mandatory)
no
Does this PR need to be added to the release notes? (mandatory)
Switch static checks to use retool.