Bug 1052224 - Disable leak checking in content processes. r=jmaher
authorAndrew McCreight <continuation@gmail.com>
Fri, 22 Aug 2014 10:59:22 -0700
changeset 215578 f8ac66a28f2fa9329f9303369e589af61666c059
parent 215577 73a965cfceba7dec44228a30dc264b7c23ef0fa9
child 215579 ec4622e6e1fa019441dcb763c6b1f8b08ab74b8d
push idunknown
push userunknown
push dateunknown
reviewersjmaher
bugs1052224
milestone34.0a1
Bug 1052224 - Disable leak checking in content processes. r=jmaher
build/automationutils.py
--- a/build/automationutils.py
+++ b/build/automationutils.py
@@ -349,18 +349,23 @@ def processSingleLeakFile(leakLogFileNam
     return
 
   if totalBytesLeaked == 0:
     log.info("TEST-PASS | leakcheck |%s no leaks detected!" % processString)
     return
 
   # totalBytesLeaked was seen and is non-zero.
   if totalBytesLeaked > leakThreshold:
-    # Fail the run if we're over the threshold (which defaults to 0)
-    prefix = "TEST-UNEXPECTED-FAIL"
+    if processType and processType == "tab":
+      # For now, ignore tab process leaks. See bug 1051230.
+      log.info("WARNING | leakcheck | ignoring leaks in tab process")
+      prefix = "WARNING"
+    else:
+      # Fail the run if we're over the threshold (which defaults to 0)
+      prefix = "TEST-UNEXPECTED-FAIL"
   else:
     prefix = "WARNING"
   # Create a comma delimited string of the first N leaked objects found,
   # to aid with bug summary matching in TBPL. Note: The order of the objects
   # had no significance (they're sorted alphabetically).
   maxSummaryObjects = 5
   leakedObjectSummary = ', '.join(leakedObjectNames[:maxSummaryObjects])
   if len(leakedObjectNames) > maxSummaryObjects: