Better code quality #2330
Replies: 2 comments
|
@dmytro-pryvedeniuk I appreciate the recent help, but please don't make anything remotely like this comment again or I will permanently ban you from this project. Some of this sounds reasonable, some of it sounds like more work than it's worth, and the SonarCube thing is a massive waste of time in my opinion. If you want to help, that's great. If you just want to complain, I can just block you. The coding standard is explained in the README, so I'm not sure what you're complaining about so much. I don't want to mess with the editorconfig stuff because that's usually a massive waste of time and friction that keeps people from wanting to code in this. I realize that quite a few tests are flaky. I'm not sure if you've ever worked in a codebase that is absolutely nothing but asynchrous tests, but that's unfortunately common. My approach to that honestly is going to be having the CI run tests more granularly. |
|
@jeremydmiller Sorry if my proposals look like complaints. Not my intention at all to offend. Quite the opposite. I do like the project and just want to help. FYI: I have configured SonarCube (OSS license) for a fork - https://sonarcloud.io/project/overview?id=dmytro-pryvedeniuk_wolverine. You can say there are many false issues, like passwords in the sample projects. But after several iterations it can be helpful during code review. Just like anything that helps to find what a human can miss. Regarding the tests it is a real problem IMO. It's nice that you have so many good tests. But if we accept failures how can we trust the system? You as an owner can't trust a PR. Contributors can't be sure their changes are safe. Bugs can leak. I agree it's hard to make (and even harder to keep) integration tests stable. Better if there is some strategy.
|
Uh oh!
There was an error while loading. Please reload this page.
I am frustrated when I see red/cancelled tests in the main branch, warnings and different code styles.
Proposed solution
Tests
Disable all red/flaky/cancelled tests, even if they are useful and nice.
Use zero tolerance to the red tests in a PR to merge. Ask the author to check before merging. Re-run the build. Disable if flaky.
Create an issue for each disabled test and decide its destiny - fix or remove.
Make it easier to run the tests. Currently I see the following problems:
Local setup:
TestContainers should help - they use dynamic ports and run only when needed.
GitHub Actions:
Warnings
editorconfigis desired to define consistent code style.Visibility
All reactions