core.py: ignore wrong product_name files#53326
Conversation
|
Added tests and remove duplicate dead code for AIX (maybe comes from a wrong rebase in the merge-forward mega PR : (( ) |
Ch3LL
left a comment
There was a problem hiding this comment.
can you take a look at the lint failures and clean those up?
1a67789 to
e3351f4
Compare
|
@Ch3LL indeed, done |
|
ping @dwoz bump can you review? |
|
The ci/lint complain is a bit weird, as complains for some code that this PR do not touch: |
|
ping @s0undt3ch any ideas why we aren't only checking the lines changed here? I checked the settings in noxfile and it looks like we are just running pylint against the files changed, not the lines changed. |
|
@Ch3LL IIUC we've always been doing that, since before nox. I know I've had to fix code in unchanged parts of files that I've touched. I tried running pylint against our whole codebase once and it came up with hundreds, if not thousands of errors and warnings. I'm not sure if a) we should keep it as-is, b) it's possible/we should change it to ignore untouched lines, or c) we should make a massive lint fix. My initial impression is that a) is a fine approach.... but this PR is definitely not the place for a discussion about that :) |
|
PyLint is not capable of checking changed lines. |
|
By fix, I mean not all of the lint issues, just the ones triggered on PRs on the changed files. |
|
thanks for the clarifications, i was mistaken and thought we were previously doing this. I put a PR in here: #54163 to ignore this pylint warning |
|
Rebased into master |
ac9ffd5 to
fcef69b
Compare
|
ping @waynew can you re-review here? |
Some firmwares (like some NUC machines), do not provide valid /sys/class/dmi/id/product_name strings. In those cases an UnicodeDecodeError exception happens. This patch ignore this kind of issue during the grains creation.
Some firmwares (like some NUC machines), do not provide valid
/sys/class/dmi/id/product_name strings. In those cases an
UnicodeDecodeError exception happens.
This patch ignore this kind of issue during the grains creation.