Clytwynec/dont fail diff quality for todo - #6122
Conversation
4b6c323 to
74ba348
Compare
|
@benpatterson @jzoldak Please review |
|
FYI: https://jenkins.testeng.edx.org/job/edx-all-tests-auto-pr/18993/ is the build with these changes along with a new TODO. I've since removed the TODO commit and rebased to fix the unit test failures. |
|
I also just cherry-picked your commits onto my PR #6111 which was failing the quality shard due to commits. |
|
If we're disabling this for the pylint runs, do we still need to fix run_quality (the flag disabling this rule) ? If someone were to introduce a TODO, would diff-quality find it and error on it? |
|
@benpatterson diff-quality didn't fail when I tested adding a new TODO. I think that is because it is using the files generated in the run_pylint step. I'm not sure how it will play out if you only use run_quality though (without running pylint like we do in all-tests.sh first). Looking at this comment ... ... my guess is it would fail because we are not passing the disable flag to diff-quality. I'll look into whether or not that requires a change to diff-quality. |
|
Well, I mainly bring it up because -- I thought -- the way we had diff-quality set up had a bug, where the 'disable' option wasn't being recognized or used correctly... |
|
Ok. So after a bit more investigating, it looks like the So, with this change, if one uses |
|
Ahhh... Ok, that makes sense. I know you put work into this, but in this case, would we be better off just globally disabling fixme in the pylintrc? If we have to disable it in both pylint runs anyway with the switches.... |
|
I think that makes sense... though we may want to add a way for people to explicitly find TODOs. |
|
@sarina @singingwolfboy care to weigh in? |
|
I am fine with pretty much any approach. If we end up putting fixme disable in pylintrc, I might want to see a script that will print out all the fixme violations just so we can easily understand what that tech debt is (and perhaps, monitor it) |
There was a problem hiding this comment.
Please use the violation name (fixme) rather than the violation code (W0511) -- names are much clearer.
514864c to
7e01230
Compare
|
@clytwynec - can we get this merged? |
|
Waiting on re-review. @benpatterson @jzoldak |
|
@clytwynec I have some comments/questions about the find_fixme script. Would it be possible to split that out into a separate PR so we can get the pylintrc changes in? Otherwise I can comment here...thought I'd stop and ask first. |
7e01230 to
25d76da
Compare
|
Right on. 👍 on this change. I'll look at the other PR as well. |
…r-todo Clytwynec/dont fail diff quality for todo
No description provided.