-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fix CI test failures in feature/capgen, address pylint warnings #412
Fix CI test failures in feature/capgen, address pylint warnings #412
Conversation
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.
Wondering why whitespace changes need to be in test_metadata_table.py
@@ -85,8 +85,7 @@ def test_bad_type_name(self): | |||
|
|||
#Exercise | |||
with self.assertRaises(Exception) as context: | |||
tables = parse_metadata_file(filename, known_ddts, | |||
self._DUMMY_RUN_ENV) | |||
parse_metadata_file(filename, known_ddts, self._DUMMY_RUN_ENV) |
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.
What is the point of all these whitespace changes?
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.
Well, now the entire call fits in one line below 80 characters and thus easily on a terminal screen. I'll change it back ...
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.
The issue before was not the whitespace change but why you are choosing to add unrelated changes to a bugfix PR. To quote a developer I know:
I think we should try to be good stewards of GitHub code change practices and create smaller PRs that contain logically related changes but nothing else / not much else otherwise going forward.
Co-authored-by: goldy <github@goldy.online>
…code changes, and add _
Except that there is a difference between removing a newline when changes that are bug fixes do shorten the lines so that they fit within reasonable limits or othewise require adjusting the indentation for the second line (and all this on 19 lines in a single file), and thousands of lines of code changes that are unrelated in one PR ... At any rate, I committed your suggestion and changed all other occurrences to match it. Note that your suggested change also removed the newline (45415b5). |
My issue is that unless we have a definition of "reasonable limits", we will keep having this problem. |
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.
Still not sure why test_metadata_table.py needed any modification to fix the CI bug in test_metadata_parser.py
Description
This PR fixes the CI test failures reported in #411.
It also bumps up the pylint rating for
test/unit_tests/test_metadata_table.py
from below 9 to 10/10 (yay) by removing the unused variabletables
in many places.Caveats
When running
locally (this is what the GitHub workflow/CI test does), I still get several warnings: