Bug 1354232 - Ensure lsan failures cause treeherder jobs to fail, r=ahal draft
authorJames Graham <james@hoppipolla.co.uk>
Fri, 08 Jun 2018 16:35:56 +0100
changeset 805834 43408d37349ce2f9cbce7a257dff63b565a264d7
parent 805833 38ceb6f6da4d168b80fc903c29c1970ed756332a
child 805835 392fa83fce2af5237f98b8d4231596d0ced311b8
push id112776
push userbmo:james@hoppipolla.co.uk
push dateFri, 08 Jun 2018 15:53:57 +0000
reviewersahal
bugs1354232
milestone62.0a1
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["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),
         )