Skip to content

Conversation

@aiChaoSONG
Copy link

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

@aiChaoSONG aiChaoSONG changed the title [WIP]tools: split ignore_str and give reason for each ignore item tools: split ignore_str and give reason for each ignore item Jun 29, 2020
@marc-hb
Copy link
Collaborator

marc-hb commented Jun 29, 2020

Nit: you can add

Fixes: #261 

... in the commit message.

# 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'
Copy link
Contributor

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

Copy link
Collaborator

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!

Copy link
Author

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):

Take a look at #43, you should see it also points to thesofproject/linux#1676

Copy link
Collaborator

@marc-hb marc-hb left a 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.

# 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'
Copy link
Collaborator

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!

@aiChaoSONG aiChaoSONG requested a review from marc-hb June 30, 2020 04:33
# 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]'
Copy link
Collaborator

@marc-hb marc-hb Jun 30, 2020

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?

Copy link
Author

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.

Copy link
Author

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'

Copy link
Collaborator

@marc-hb marc-hb Jun 30, 2020

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.

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 marc-hb self-requested a review July 1, 2020 02:04
Copy link
Collaborator

@marc-hb marc-hb left a 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

@aiChaoSONG aiChaoSONG changed the title tools: split ignore_str and give reason for each ignore item [Wait Test Result]tools: split ignore_str and give reason for each ignore item Jul 1, 2020
@aiChaoSONG
Copy link
Author

aiChaoSONG commented Jul 1, 2020

@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.

@aiChaoSONG aiChaoSONG merged commit 92d6440 into thesofproject:master Jul 1, 2020
@aiChaoSONG aiChaoSONG changed the title [Wait Test Result]tools: split ignore_str and give reason for each ignore item tools: split ignore_str and give reason for each ignore item Jul 1, 2020
@aiChaoSONG
Copy link
Author

Merge,super thanks @marc-hb

@marc-hb marc-hb added the area:non-audio Failure False positives: failing when we don't want to label Oct 15, 2021
@aiChaoSONG aiChaoSONG deleted the split_ignore_str branch October 24, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:non-audio Failure False positives: failing when we don't want to

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants