From db0a1ba92f8d1867674a9192a68929c88d59f232 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Wed, 10 Oct 2018 15:09:51 +0100 Subject: [PATCH] Refresh log annotation regexes Contains multiple improvements including: - use of html tag by default (yellow background) - avoid extra newlines caused by previous - additional patterns - taiga hyperlinking of gerrit CRs Change-Id: Ia3568429a59a64ff4b8b450ed687823740adcce8 --- coats/FoxReplace.json | 63 +++++++++++++++++++++++++++++-------------- 1 file changed, 43 insertions(+), 20 deletions(-) diff --git a/coats/FoxReplace.json b/coats/FoxReplace.json index ef430e3..a571409 100644 --- a/coats/FoxReplace.json +++ b/coats/FoxReplace.json @@ -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": "$1", + "output": "$1", "caseSensitive": true }, { "input": "(\\*\\*\\* FAILED with status: .*)", "inputType": "regexp", - "output": "$1", + "output": "$1", "caseSensitive": true }, { "input": "(.* failed with error code .*)", "inputType": "regexp", - "output": "$1", + "output": "$1", "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": "$1", + "output": "$1", "caseSensitive": false }, { "input": "(Failed \\d+ tests - output below:)", "inputType": "regexp", - "output": "$1", + "output": "$1", "caseSensitive": true }, { "input": "(\\[(DEPRECATION )?WARNING\\].*)", "inputType": "regexp", - "output": "$1", + "output": "$1", "caseSensitive": true }, { "input": "(.*CREATE_FAILED.*)", "inputType": "regexp", - "output": "$1", + "output": "$1", "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": "$&", + "output": "$&", "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": "$1", - "caseSensitive": false - }, - { - "input": "(.* (marked build as failure|No such file or directory))", - "inputType": "regexp", - "output": "$1", + "output": "$1", "caseSensitive": true } ], @@ -77,7 +71,7 @@ "mode": "auto&manual" }, { - "name": "hyperlinking-logs", + "name": "hyperlinks-logs", "urls": [ "http://logs.openstack.org", "http://logs.rdoproject.org", @@ -91,6 +85,35 @@ "inputType": "regexp", "output": "$&", "caseSensitive": false + }, + { + "input": "\"overcloud_deploy_result\": \"failed\"", + "inputType": "regexp", + "output": "$&", + "caseSensitive": false + }, + { + "input": "/home/zuul/(^workspace/)\\w+\\.log", + "inputType": "regexp", + "output": "$&", + "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": "$&", + "caseSensitive": false } ], "html": "output",