Bug 1522604 - Changed the error list - testing/raptor.py draft
authorpulselistener
Mon, 27 May 2019 13:47:21 +0000
changeset 2026403 77fc8cd4b5c490cc752706e02c05aad8bf5e3491
parent 2026402 1d1e863592099a886794109fac3346380a049aea
child 2026404 06c8c03b3c73039a1862041341129f680cfd7939
push id368007
push userreviewbot
push dateMon, 27 May 2019 13:48:24 +0000
treeherdertry@85c747a337ca [default view] [failures only]
bugs1522604
milestone68.0a1
Bug 1522604 - Changed the error list - testing/raptor.py Differential Revision: https://phabricator.services.mozilla.com/D32002 Differential Diff: PHID-DIFF-hb7mefkig647eqjpcxg6
testing/mozharness/mozharness/mozilla/testing/raptor.py
--- a/testing/mozharness/mozharness/mozilla/testing/raptor.py
+++ b/testing/mozharness/mozharness/mozilla/testing/raptor.py
@@ -13,33 +13,34 @@ import sys
 import subprocess
 
 from shutil import copyfile
 
 import mozharness
 
 from mozharness.base.errors import PythonErrorList
 from mozharness.base.log import OutputParser, DEBUG, ERROR, CRITICAL, INFO
+from mozharness.mozilla.testing.errors import HarnessErrorList
 from mozharness.mozilla.testing.testbase import TestingMixin, testing_config_options
 from mozharness.mozilla.testing.android import AndroidMixin
 from mozharness.base.vcs.vcsbase import MercurialScript
 from mozharness.mozilla.testing.codecoverage import (
     CodeCoverageMixin,
     code_coverage_config_options
 )
 
 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'''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,
      'explanation': "Most likely the browser failed to launch, or the test was otherwise "
      "unsuccessful in even starting."},
 ]