Bug 1545438 - Enable the blocklist for startup Talos tests. r=rwood,perftest-reviewers,whimboo
authorMike Conley <mconley@mozilla.com>
Fri, 13 Mar 2020 21:29:38 +0000
changeset 520417 403ce6f34590f1280b7b17215b45834f06b7b6ef
parent 520416 ab7bf39d81216414fc069ec8441a5c08aa794ef0
child 520418 a7034ea760bd316e65ae703efaa040170fe71bc0
push id37249
push userdvarga@mozilla.com
push dateWed, 25 Mar 2020 21:39:06 +0000
treeherdermozilla-central@b3c3f7d0f044 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrwood, perftest-reviewers, whimboo
bugs1545438
milestone76.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 1545438 - Enable the blocklist for startup Talos tests. r=rwood,perftest-reviewers,whimboo Differential Revision: https://phabricator.services.mozilla.com/D54033
testing/talos/talos/test.py
--- a/testing/talos/talos/test.py
+++ b/testing/talos/talos/test.py
@@ -125,16 +125,30 @@ class TsBase(Test):
                          # should be copied to the temporary profile prior to
                          # running each cycle, to avoid one cycle overwriting
                          # the data used by the next another cycle (may be used
                          # e.g. for sessionstore.js to ensure that all cycles
                          # use the exact same sessionstore.js, rather than a
                          # more recent copy).
     ]
 
+    def __init__(self, **kw):
+        super(TsBase, self).__init__(**kw)
+
+        # Unless set to False explicitly, all TsBase tests will have the blocklist
+        # enabled by default in order to more accurately test the startup paths.
+        BLOCKLIST_PREF = "extensions.blocklist.enabled"
+
+        if not hasattr(self, "preferences"):
+            self.preferences = {
+              BLOCKLIST_PREF: True,
+            }
+        elif BLOCKLIST_PREF not in self.preferences:
+            self.preferences[BLOCKLIST_PREF] = True
+
 
 @register_test()
 class ts_paint(TsBase):
     """
     Launches tspaint_test.html with the current timestamp in the url,
     waits for [MozAfterPaint and onLoad] to fire, then records the end
     time and calculates the time to startup.
     """