-
Notifications
You must be signed in to change notification settings - Fork 203
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
Use correct module for errors_found_in_log #3119
Conversation
9fd2b83
to
e5950d8
Compare
e5950d8
to
70c72c2
Compare
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.
For me this looks good, I will take a look tomorrow to see how hard it would be to come up a test
Actually the test is there, this was really just incorrect import/usage. |
Hmm, haven't found one by grepping for |
Nice catch @Flamefire... We indeed overlooked this I'm a bit reluctant to re-instate the warning like this though, since the pattern used by It basically considers any occurrence of This is from the CMake log file for example, after checking the output of
So, I'm not sure that re-instating this without doing a better job at filtering out false positives (which can be hard to distinguish from actual problems in practice)... |
Found another bug in the code, so it seems the log message is not covered by any test.
Then my proposal would be:
|
Together with #3118 I could use it on our system to install a big package chain and sort out the most common false positives. I expect most of them to be the same, so should be easy to reduce the amount of false-positives considerably |
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.
Reducing the false positives is nice, but I still feel that producing a big fat warning for every occurrence of something that looks like an error but may not be is not a good idea. In some cases you may not even be able to automatically distinguish false positives from actual errors... How about changing the |
Sure. This PR was just meant to fix a regression and not question the initial intention of that feature. I'm all for replacing this by something more advanced. On the other hand: Providing this warnings to someone testing a EC as a "warning" could still be useful. Checking for false-positives can be done by the user and common false-positives can be suppressed by EB (see my other PR). I mean: In the end this is a warning that something might be wrong. We can't know if this is a false-positive or not. For the second case it would be wrong not to show it. |
I understand your point, but I think there will be a lot more false positives than genuine errors that go totally undetected through other means (like a failing sanity check). We certainly have had errors that went undetected for a while, but I'd say they are rare, and so I'm reluctant to start raising concerns by highlighting false positives... |
Ok so _log.warning instead |
d053316
to
1f01afe
Compare
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
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
The (important) warning message was never printed due to a wrong module being used after a rename/move some time ago