Bug 1522604 - Enhance mozharness error list for Raptor tests. r=jgraham

RaptorErrorList now includes HarnessErrorList and regular expressions for Error and Critical log levels.

Differential Revision: https://phabricator.services.mozilla.com/D32983

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Marian Raiciof 2019-06-07 08:33:25 +00:00
Родитель bf730f1cc3
Коммит e78a293396
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -18,8 +18,9 @@ import mozharness
from mozharness.base.errors import PythonErrorList
from mozharness.base.log import OutputParser, DEBUG, ERROR, CRITICAL, INFO
from mozharness.mozilla.testing.testbase import TestingMixin, testing_config_options
from mozharness.mozilla.testing.android import AndroidMixin
from mozharness.mozilla.testing.errors import HarnessErrorList
from mozharness.mozilla.testing.testbase import TestingMixin, testing_config_options
from mozharness.base.vcs.vcsbase import MercurialScript
from mozharness.mozilla.testing.codecoverage import (
CodeCoverageMixin,
@ -30,12 +31,11 @@ scripts_path = os.path.abspath(os.path.dirname(os.path.dirname(mozharness.__file
external_tools_path = os.path.join(scripts_path, 'external_tools')
here = os.path.abspath(os.path.dirname(__file__))
RaptorErrorList = PythonErrorList + [
RaptorErrorList = PythonErrorList + HarnessErrorList + [
{'regex': re.compile(r'''run-as: Package '.*' is unknown'''), 'level': DEBUG},
{'substr': r'''FAIL: Busted:''', 'level': CRITICAL},
{'substr': r'''FAIL: failed to cleanup''', 'level': ERROR},
{'substr': r'''erfConfigurator.py: Unknown error''', 'level': CRITICAL},
{'substr': r'''raptorError''', 'level': CRITICAL},
{'substr': r'''raptorDebug''', 'level': DEBUG},
{'regex': re.compile(r'''^raptor[a-zA-Z-]*( - )?( )?(?i)error(:)?'''), 'level': ERROR},
{'regex': re.compile(r'''^raptor[a-zA-Z-]*( - )?( )?(?i)critical(:)?'''), 'level': CRITICAL},
{'regex': re.compile(r'''No machine_name called '.*' can be found'''), 'level': CRITICAL},
{'substr': r"""No such file or directory: 'browser_output.txt'""",
'level': CRITICAL,