Bug 1354232 - Ensure lsan failures cause treeherder jobs to fail, r=ahal
authorJames Graham <james@hoppipolla.co.uk>
Fri, 08 Jun 2018 16:35:56 +0100
changeset 482441 6d28db898070e56ac198dfa94553f83facd96ab7
parent 482440 6eda80370f59eb70e4f3d64f8552d894e0313f13
child 482442 e0d106c2112dd6845ca75414258ab74e5ed73d87
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1354232
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1354232 - Ensure lsan failures cause treeherder jobs to fail, r=ahal MozReview-Commit-ID: 56BMxWYWwGr
testing/mozbase/mozlog/mozlog/handlers/statushandler.py
--- a/testing/mozbase/mozlog/mozlog/handlers/statushandler.py
+++ b/testing/mozbase/mozlog/mozlog/handlers/statushandler.py
@@ -54,15 +54,23 @@ class StatusHandler(object):
                 self.unexpected_statuses["PASS"] += 1
             elif data["count"] > data["max_expected"]:
                 self.unexpected_statuses["FAIL"] += 1
             elif data["count"]:
                 self.expected_statuses["FAIL"] += 1
             else:
                 self.expected_statuses["PASS"] += 1
 
+        if action == "lsan_leak":
+            if not data.get("allowed_match"):
+                self.unexpected_statuses["FAIL"] += 1
+
+        if action == "lsan_summary":
+            if not data.get("allowed", False):
+                self.unexpected_statuses["FAIL"] += 1
+
     def summarize(self):
         return RunSummary(
             dict(self.unexpected_statuses),
             dict(self.expected_statuses),
             dict(self.log_level_counts),
             dict(self.action_counts),
         )