Bug 1522604 - Changed the error list - testing/raptor.py draft
authorpulselistener
Mon, 27 May 2019 13:44:46 +0000
changeset 2026399 e284500ac3cfdbcc6fc54629a6bdfcb4bd3de2c5
parent 2026398 e600249a5b0200eb1cccdc7dd3f3cc4e3143fa99
child 2026400 5ba29197de09dabbd5665293d21d7d43c5a845b4
push id368006
push userreviewbot
push dateMon, 27 May 2019 13:45:38 +0000
treeherdertry@d2e3ebcda872 [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."},
 ]