-
Notifications
You must be signed in to change notification settings - Fork 59
tools: split ignore_str and give reason for each ignore item #268
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
Conversation
f7c7282 to
b316b51
Compare
|
Nit: you can add ... in the commit message. |
b316b51 to
101346f
Compare
tools/sof-kernel-log-check.sh
Outdated
| # Check https://github.com/thesofproject/linux/pull/1676 for more information. | ||
| # TODO explain for "error: Error ..." | ||
| ignore_str="$ignore_str"|'error: iteration [01]' | ||
| ignore_str="$ignore_str"|'error: status' |
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.
I think you can add for ignore error: status, which is not really error, the error will report by other content
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.
@Bin-QA can you point at the code that prints error: status? Thanks!
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.
As @marc-hb pointed here: #261 (comment):
error: statusadded by 50f6ccf, mentioned ASoC: SOF: intel: lower print level to dbg if we will reinit DSP linux#1676error: iteration [01]added by 50f6ccf mentioned dmesg check still influenced by DSP init fail #43
Take a look at #43, you should see it also points to thesofproject/linux#1676
marc-hb
left a comment
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.
Sorry to insist but can you please single quote the vertical bar too? It's a special character. OK, probably not here but simpler not to even have to think about it. See the sample code I wrote earlier.
tools/sof-kernel-log-check.sh
Outdated
| # Check https://github.com/thesofproject/linux/pull/1676 for more information. | ||
| # TODO explain for "error: Error ..." | ||
| ignore_str="$ignore_str"|'error: iteration [01]' | ||
| ignore_str="$ignore_str"|'error: status' |
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.
@Bin-QA can you point at the code that prints error: status? Thanks!
101346f to
bebd383
Compare
tools/sof-kernel-log-check.sh
Outdated
| # debug logs at the frist and second retry can be ignored. | ||
| # Check https://github.com/thesofproject/linux/pull/1676 for more information. | ||
| # TODO explain for "error: Error ..." | ||
| ignore_str="$ignore_str"'|error: iteration [01]' |
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.
Wait, I just realized the string starts with a vertical bar. That means ignore_strprobably matches anything.
Which errors did you test this with?
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.
@marc-hb the ignored item here is not 100% reproduced, and some may need a lot of stress test. No good way to test but just run script without error.
Maybe initialize ignore_str with the first ignore item? This will make code style not unified.
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.
Is this OK for you?
ignore_str='error: iteration [01]'
ignore_str="$ignore_str"'|error: status'
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.
This version looks better but do test the code change locally with a couple errors that are easy to reproduce: at least one ignored error and another not ignored. Then change the ignored message(s) and only the message(s) just before submitting.
This part of the code is very critical because a single, one character bug like this vertical bar can turn the entire results green. So it must be very thoroughly tested.
bebd383 to
0dd12f6
Compare
Each ignore item should have a reason. This helps us to trace every ignore item. This patch splits ignore_str into ignore items, and provides descriptions on why each item is ignored. Fixes: thesofproject#261 Signed-off-by: Amery Song <chao.song@intel.com>
marc-hb
left a comment
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.
Approved assuming it's been tested for both PASS and FAIL locally
|
@marc-hb Difficult to find on device test dmesg contains ignore_str, so fake some errors in and not in the ignore_str to test the ignore_str filter, errors in ignore_str are filtered out, other errors keep unchanged. |
|
Merge,super thanks @marc-hb |
Each ignore item should have a reason. This helps us
to trace every ignore item.
This patch split ignore_str into ignore items, and provide
descirption on why each item is ignored.
Signed-off-by: Amery Song chao.song@intel.com