Skip to content

lib.sh: fix recent check_error_in_file() . Exclude BSW - #946

Merged
marc-hb merged 2 commits into
thesofproject:mainfrom
marc-hb:check-error-fix
Aug 5, 2022
Merged

lib.sh: fix recent check_error_in_file() . Exclude BSW#946
marc-hb merged 2 commits into
thesofproject:mainfrom
marc-hb:check-error-fix

Conversation

@marc-hb

@marc-hb marc-hb commented Jul 29, 2022

Copy link
Copy Markdown
Collaborator

2 commits. Main one:

Use -w to catch the words 'ERR' and 'ERROR' and avoid unrelated words
like 'ovERRuns' (unless of course they're prefixed with ERROR)

Fixes recent commit 87aeb4d ("check-sof-logger: catch ERROR in
firmware traces and fail")

Add -i: no reason to catch errors only in upper case.

Log the grep commands using set -x

marc-hb added 2 commits July 29, 2022 14:49
Add bsw next to byt and bdw. BSW has a regular:

 ERROR dtrace_add_event(): number of dropped logs = 8

... too, see Intel daily test 14304 and before.

No time to spend on BSW errors that have always been there.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Use -w to catch the words 'ERR' and 'ERROR' and avoid unrelated words
like 'ovERRuns' (unless of course they're prefixed with ERROR)

Fixes recent commit 87aeb4d ("check-sof-logger: catch ERROR in
firmware traces and fail")

Add -i: no reason to catch errors only in upper case.

Log the grep commands using set -x

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb

marc-hb commented Jul 29, 2022

Copy link
Copy Markdown
Collaborator Author

A very strange

no such file no /sys/kernel/debug/sof/trace

... on one device in https://sof-ci.01.org/softestpr/PR946/build114/devicetest while /sys/kernel/debug/sof/etrace was there!?

Not caused by this PR.

+ 2 unrelated suspend/resume failures

@marc-hb
marc-hb marked this pull request as ready for review July 29, 2022 22:21
@marc-hb
marc-hb requested a review from a team as a code owner July 29, 2022 22:21
@marc-hb

marc-hb commented Jul 29, 2022

Copy link
Copy Markdown
Collaborator Author

SOFCI TEST

@marc-hb

marc-hb commented Jul 30, 2022

Copy link
Copy Markdown
Collaborator Author

@marc-hb
marc-hb marked this pull request as draft July 30, 2022 03:41
@greg-intel

Copy link
Copy Markdown
Contributor

Is the search case sensitive?

Comment thread case-lib/lib.sh
# -B 2 shows the header line when the first etrace message is an ERROR
# -A 1 shows whether the ERROR is last or not.
if (set -x
grep -B 2 -A 1 -i -w -e 'ERR' -e 'ERROR' "$1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it weird that I find "-B2 -A1" more legible?

@marc-hb

marc-hb commented Aug 5, 2022

Copy link
Copy Markdown
Collaborator Author

SOFCI TEST

@marc-hb
marc-hb marked this pull request as ready for review August 5, 2022 14:17
@marc-hb

marc-hb commented Aug 5, 2022

Copy link
Copy Markdown
Collaborator Author

@marc-hb
marc-hb merged commit d5ac94b into thesofproject:main Aug 5, 2022
@marc-hb
marc-hb deleted the check-error-fix branch August 5, 2022 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants