Skip to content

Conversation

@xiulipan
Copy link
Contributor

@xiulipan xiulipan commented Nov 20, 2020

  • dmesg usage clean up
  • journalctl replacement
  • new error log ignore list‘

TODO:
kernel log dump and some test case dmesg usage.

@xiulipan xiulipan requested a review from a team as a code owner November 20, 2020 07:09
remove the redundant kernel log check for all case.
enable kernel log check for each iteration.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
remove the redundant kernel log check for all case.
enable kernel log check for each iteration.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
remove the redundant kernel log check for all case.
enable kernel log check for each iteration.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
remove the redundant kernel log check for all case.
enable kernel log check for each iteration.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
…iteration

remove the redundant kernel log check for all case.
enable kernel log check for each iteration.
also do some clean up for this script

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
…teration

remove the redundant kernel log check for all case.
enable kernel log check for each iteration.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
remove the redundant kernel log check for all case.
enable kernel log check for each iteration.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
…tion

remove the redundant kernel log check for all case.
enable kernel log check for each iteration.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
remove the redundant kernel log check for all case.
enable kernel log check for each iteration.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
…eration

remove the redundant kernel log check for all case.
enable kernel log check for each iteration.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
add some style options for the journalctl to unify all journalctl
output format

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Directly use journalctl in the testcase to avoid kernel log missing
issues.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
use journalctl by default for any kernel log reader usage.
Also add headter for the file.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add path for the sof-dump-status.py to avoid error:
sof-dump-status.py: command not found

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
use journalctl to get kernl logs.
use timestamp as checkpoint to split logs for each test case.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
Add common error logs from systemd, initramfs, atkbd, i801_smbus,
ata3, genirq, DMAR, dw_dmac, proc_thermal, SDWm, touch pad

Those error level logs did not break functionality of the DUTs.

Signed-off-by: Pan Xiuli <xiuli.pan@linux.intel.com>
@xiulipan
Copy link
Contributor Author

SOFCI TEST

@xiulipan
Copy link
Contributor Author

SOF CI test passed, merge now. Track issues in following tests.

@xiulipan xiulipan merged commit 4ada0c8 into thesofproject:master Nov 23, 2020
marc-hb added a commit to marc-hb/sof-test that referenced this pull request Nov 24, 2020
This wasn't really a problem as long as sof-kernel-log-check.sh was
reading /var/log/kernel.log, which just changed in PR thesofproject#529

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

marc-hb commented Nov 24, 2020

For the record there a was an incomplete (and partially ignored) review in #509 and in some other PRs before that.

marc-hb added a commit to marc-hb/sof-test that referenced this pull request Nov 24, 2020
This was apparently missed in thesofproject#529

Together with thesofproject#523 this makes it identical to multiple-pipeline-capture.sh
again.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
echo "$(date -u '+%Y-%m-%d %T %Z')" "[ERROR]" "Caught dmesg error"
# below are new error level kernel logs from journalctl --priority=err
# that did not influence system and can be ignored

Copy link
Collaborator

Choose a reason for hiding this comment

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

Many of these errors are kernel errors. Why ignoring them was not required before / why is it required now?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Answering my own question: because they don't have any "error" keyword in the message


declare -p cmd
# check priority err for error message
[[ "$ignore_str" ]] && err=$($cmd --priority=err | grep -vE "$ignore_str") || $($cmd --priority=err)
Copy link
Collaborator

@marc-hb marc-hb Nov 24, 2020

Choose a reason for hiding this comment

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

The last part of this line is pretty clearly wrong. shellcheck reported this at the very bottom of https://travis-ci.org/github/thesofproject/sof-test/jobs/744836564 but of course shellcheck output is unreadable for such "big bang" pull requests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will send a PR to fix this.

xiulipan pushed a commit that referenced this pull request Nov 24, 2020
This was apparently missed in #529

Together with #523 this makes it identical to multiple-pipeline-capture.sh
again.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
xiulipan pushed a commit that referenced this pull request Nov 24, 2020
This wasn't really a problem as long as sof-kernel-log-check.sh was
reading /var/log/kernel.log, which just changed in PR #529

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb added the area:non-audio Failure False positives: failing when we don't want to label Oct 15, 2021
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.

2 participants