-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improvement(treewide): Remove pylint #10577
base: master
Are you sure you want to change the base?
Conversation
It's only v15 that has pylint... So I think we are good to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
If we won't backport it, it's gonna mess up any backport to branches so I suggest backporting it to all branches |
did we backported ruff to all supported branches (e.g. perf-v15?) |
Based on what @fruch said, all except for this branch should support it.
I added some, but I am not sure if I added correct ones, please correct them if you think they are wrong |
tests failed on jenkins issue |
Better to make such huge updates that not really dependent on each other in separate PRs. I would like to see the changes be split into batches, for example - by 10 modules. |
I do not see logic in splitint by certain number of modules, it will generate too many needless PR (i.e. even more spam), the change is consise and even though it is big all changes relate to only this. I am fine with manually fixing the backport branches, it will be manual but not hard, I do not think it will take me more than 15 mins to fix a backport PR. |
* Pylint is no longer used anywhere
5 hours have passed since your latest push and it already has merge conflict. Another reason - possibility to get human reviews. Doing smaller batches we make less problems. |
There is no way of preventing merge conflicts, even if we split we will have merge conflicts, only in a fewer PR. Nothing is dependening on this PR and this PR is harmless as it lacks functional changes.
I doubt that review of this PR will take more than 10 minutes. It is pretty clear from the git diff showned in github that it indeed does not modify any code and thus there is no need to investigate impacts of each individual line. It is possible that I chnages something which is not that just removal of pylint disables, but even that would be easy to find as ANY change that is not easy to read from the diff is a mistake regardless of if it impacts anything and should be removed.
Doing smaller batches will require (number of batches) times more attention and will take (number of batches) more time to complete with no clear benefit. In my opinion, this PR can be approved and merge withing 20 mins, only thing that needs to be done is to synchronize (which would be my problem) 2 reviewers and one of them with merge rights and we can get it easily and noone has to care about it again, it might take a week or two before we synchronize but when we do I believe it is gonna be painless. Consequence of this is gonna be a one or two PR that will have conflcits from this but I do not see that as a problem (That would probably still happen even with smaller PRs). It is an equivalent of ripping the Band-Aid quickly vs ripping slowly, which would take weeks If you really feel that strongly about this, give a final word and I will split it up to any desired number of batches |
I don't see the point of splitting. |
Right, creating 10 PRs you would get, for example, 1-2 merge conflicts in 5 hours getting easy +1 approve.
What is PR spam?
The point is in the backports, only one branch left to be incompatible -
10 minutes? Only partial review, I disagree that 10 minutes will be taken for complete review.
Your goal is to get code changes be merged, not minimizing the number of PRs.
Smaller viable changes is always a better option. You have great ideas, great change descriptions but huge PRs, moreover, several your big PRs have merge incompatibilities among themselves - nemesis changes. So, if one has |
Pylint is no longer used, I think we can remove all the pylint disables. Ruff has less checks than pylint, if needed we can add more check Ruff to compensate (followup PR).
Warning: This might negatively affect backports, if we are backporting any line that was disabled, but I think that is small risk
Testing
PR pre-checks (self review)
backport
labelsReminders
sdcm/sct_config.py
)unit-test/
folder)