Refresh log annotation regexes

Contains multiple improvements including:
- use of <mark> html tag by default (yellow background)
- avoid extra newlines caused by previous <span>
- additional patterns
- taiga hyperlinking of gerrit CRs

Change-Id: Ia3568429a59a64ff4b8b450ed687823740adcce8
This commit is contained in:
Sorin Sbarnea 2018-10-10 15:09:51 +01:00
parent 38124b8de4
commit 106d9eb070

View File

@ -2,7 +2,7 @@
"version": "2.1",
"groups": [
{
"name": "failed2",
"name": "errors-and-warnings",
"urls": [
"http://logs.openstack.org",
"http://logs.rdoproject.org",
@ -14,61 +14,55 @@
{
"input": "(failed[=:]\\s?[1-9]\\d*.*)",
"inputType": "regexp",
"output": "<span style='color: red;'>$1</span>",
"output": "<mark style='color: red;'>$1</mark>",
"caseSensitive": true
},
{
"input": "(\\*\\*\\* FAILED with status: .*)",
"inputType": "regexp",
"output": "<span style='color: red;'>$1</span>",
"output": "<mark style='color: red;'>$1</mark>",
"caseSensitive": true
},
{
"input": "(.* failed with error code .*)",
"inputType": "regexp",
"output": "<span style='color: red;'>$1</span>",
"output": "<mark style='color: red;'>$1</mark>",
"caseSensitive": true
},
{
"input": "((ERROR|error|fatal|RUN END RESULT_TIMED_OUT)[:\\!] .*)",
"input": "((ERROR|ERR|Finished: ABORTED|error|fatal|RUN END RESULT_TIMED_OUT|Traceback \\(most recent call last\\))[:\\!] .*)",
"inputType": "regexp",
"output": "<span style='color: red;'>$1</span>",
"output": "<mark style='color: red;'>$1</mark>",
"caseSensitive": false
},
{
"input": "(Failed \\d+ tests - output below:)",
"inputType": "regexp",
"output": "<span style='color: red;'>$1</span>",
"output": "<mark style='color: red;'>$1</mark>",
"caseSensitive": true
},
{
"input": "(\\[(DEPRECATION )?WARNING\\].*)",
"inputType": "regexp",
"output": "<span style='color: orange;'>$1</span>",
"output": "<mark style='color: orange;'>$1</mark>",
"caseSensitive": true
},
{
"input": "(.*CREATE_FAILED.*)",
"inputType": "regexp",
"output": "<span style='color: red;'>$1</span>",
"output": "<mark style='color: red;'>$1</mark>",
"caseSensitive": true
},
{
"input": "(Exception registering nodes|failed: [^0]|Could not find or access ).*",
"input": "(Exception |failed: [^0]|Could not find or access ).*",
"inputType": "regexp",
"output": "<span style='color: red;'>$&</span>",
"output": "<mark style='color: red;'>$&</mark>",
"caseSensitive": true
},
{
"input": "(error:.*)",
"input": "(.* (Terminated|marked build as failure|No such file or directory|found a duplicate dict key|which is incompatible\\.|unbound variable))",
"inputType": "regexp",
"output": "<span style='color: red;'>$1</span>",
"caseSensitive": false
},
{
"input": "(.* (marked build as failure|No such file or directory))",
"inputType": "regexp",
"output": "<span style='color: red;'>$1</span>",
"output": "<mark style='color: red;'>$1</mark>",
"caseSensitive": true
}
],
@ -77,19 +71,47 @@
"mode": "auto&manual"
},
{
"name": "hyperlinking-logs",
"name": "hyperlinks-logs",
"urls": [
"http://logs.openstack.org",
"http://logs.rdoproject.org",
"https://ci.centos.org",
"https://logs.rdoproject.org",
"https://zuul.openstack.org"
"https://logs.rdoproject.org"
],
"substitutions": [
{
"input": "/home/zuul/workspace/logs/(\\w+)\\.log",
"input": "/home/zuul/workspace/logs/(\\w+\\.log)",
"inputType": "regexp",
"output": "<a href=\"logs/$1.txt.gz\" style=\"color: blue;\">$&</a>",
"output": "<a href=\"logs/$1\" style=\"color: blue;\">$&</a>",
"caseSensitive": false
},
{
"input": "(\\/home\\/zuul\\/(?!workspace\\/)[^.]*\\.log)(?!\\.)",
"inputType": "regexp",
"output": "<a href=\"logs/undercloud/$1.txt.gz\" style=\"color: blue;\">$1</a>",
"caseSensitive": false
},
{
"input": "(\\/home\\/zuul\\/(?!workspace\\/)[^.]*\\.sh)(?!\\.)",
"inputType": "regexp",
"output": "<a href=\"logs/undercloud/$1\" style=\"color: blue;\">$1</a>",
"caseSensitive": false
}
],
"html": "output",
"enabled": true,
"mode": "auto&manual"
},
{
"name": "hyperlinks-taiga",
"urls": [
"https://tree.taiga.io"
],
"substitutions": [
{
"input": "CR\\s?(\\d+)",
"inputType": "regexp",
"output": "<a href=\"https://review.openstack.org/#/c/$1\" style=\"color: blue;\">$&</a>",
"caseSensitive": false
}
],