Skip to content

fix/highlight log errors - #2082

Open
alanpeixinho wants to merge 2 commits into
kernelci:mainfrom
profusion:fix/highlight-log-errors
Open

fix/highlight log errors#2082
alanpeixinho wants to merge 2 commits into
kernelci:mainfrom
profusion:fix/highlight-log-errors

Conversation

@alanpeixinho

@alanpeixinho alanpeixinho commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

fix(log-viewer): reduce highlight false positives and clarify counts (#2065, #2066)

Closes #2065
Closes #2066

What it is

  • Match fail with word boundary (\bfail) — fixes pipefail false positives
  • Skip error_mode, _0_errors, and # Totals: lines before highlighting
  • Rename chips to Suspected fail / error / other matches; tooltip says heuristic counts may not match test status

30-day DB analysis (36k test excerpts):

Filter Lines removed
error_mode ~6,300
_0_errors 852
# Totals: 2
Total ~7,100 → 0 false positives

How to Test

  • PASS test with error_mode or _0_errors in log — no highlight counts
  • Chips show Suspected fail/error with heuristic tooltip

* Match fail with word boundary to exclude pipefail
* Skip error_mode and _0_errors in LAVA test names
* Skip kselftest # Totals: header lines
* Extend highlight tests for filtered cases

Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
* Rename chips to Suspected fail, Suspected error, Other matches
* Add tooltip that heuristic counts may not match test status
* Update locale strings

Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
Comment on lines +170 to +172
newCode = newCode.replace(/^.*(error|\bfail).*$/gim, match => {
if (/^\s*# Totals:/i.test(match)) {
return match;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't get this. What I see in database is:

# # Totals: pass:1 fail:0 ...

and

[timestamp] # Totals: ...

I don't see what this line wants to match

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.

Log viewer: improve wording Log viewer: exclude "pipefail" from the highlight heuristic

2 participants