commit 69a33a86baa14949ce76f6ef5c82988a7f375052
parent 9654e67b386d6e9b25fe0819941581f0530ba55e
Author: Florian Quèze <florian@queze.net>
Date: Mon, 13 Oct 2025 20:27:27 +0000
Bug 1960759 - replace 'fatal error' with just 'error' when replaying the log of xpcshell tests failing in parallel to avoid filling the treeherder error summary with unimportant warnings, r=jmaher.
Differential Revision: https://phabricator.services.mozilla.com/D268442
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/testing/xpcshell/runxpcshelltests.py b/testing/xpcshell/runxpcshelltests.py
@@ -772,6 +772,8 @@ class XPCShellTestThread(Thread):
line = re.sub(
r"ERROR: ((Address|Leak)Sanitizer)", r"ERROR (will retry): \1", line
)
+ # Treeherder's log parser catches "fatal error" as an error
+ line = re.sub(r"fatal error", r"error", line)
# For text lines, we need to provide the timestamp that was
# recorded when appending the message to self.output_lines
self.log_line(line, time=timestamp)