Bug 1052224 - Disable leak checking in content processes. r=jmaher
authorAndrew McCreight <continuation@gmail.com>
Fri, 22 Aug 2014 10:59:22 -0700
changeset 201045 f8ac66a28f2fa9329f9303369e589af61666c059
parent 201044 73a965cfceba7dec44228a30dc264b7c23ef0fa9
child 201046 ec4622e6e1fa019441dcb763c6b1f8b08ab74b8d
push id48081
push useramccreight@mozilla.com
push dateFri, 22 Aug 2014 17:59:40 +0000
treeherdermozilla-inbound@f8ac66a28f2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1052224
milestone34.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 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: