Bug 1261494 - Reduce telemetry init delay to 1 second for integration testing. r=gbrown
authorMichael Comella <michael.l.comella@gmail.com>
Wed, 27 Jul 2016 08:05:12 -0700
changeset 347122 7c1ddc8223812aed002c47b4a169d7550a7c9c99
parent 347121 581ee0750f81067c33090c5d3958d757ff5f331b
child 347123 329789f1d87f7352c02403e7ff517a38113b878d
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown
bugs1261494, 24641374
milestone50.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 1261494 - Reduce telemetry init delay to 1 second for integration testing. r=gbrown My one concern is that this change could increase the amount of processing time spent on telemetry initialization, causing the runtime of the robocop test suite to increase. Checking my try push [1] against other try pushes, it doesn't seem to have made a significant difference, but the change in runtime between pushes can be large (e.g. > 5min) so it's hard to tell. [1]: https://treeherder.mozilla.org/#/jobs?repo=try&revision=2017843315fe&selectedJob=24641374 MozReview-Commit-ID: LeeGgNEp74h
testing/mochitest/runrobocop.py
--- a/testing/mochitest/runrobocop.py
+++ b/testing/mochitest/runrobocop.py
@@ -222,16 +222,19 @@ class RobocopTestRunner(MochitestDesktop
         self.options.extraPrefs.append('browser.search.suggest.enabled=true')
         self.options.extraPrefs.append('browser.search.suggest.prompted=true')
         self.options.extraPrefs.append('layout.css.devPixelsPerPx=1.0')
         self.options.extraPrefs.append('browser.chrome.dynamictoolbar=false')
         self.options.extraPrefs.append('browser.snippets.enabled=false')
         self.options.extraPrefs.append('browser.casting.enabled=true')
         self.options.extraPrefs.append('extensions.autoupdate.enabled=false')
 
+        # Override the telemetry init delay for integration testing.
+        self.options.extraPrefs.append('toolkit.telemetry.initDelay=1')
+
         self.options.extensionsToExclude.extend([
             'mochikit@mozilla.org',
             'worker-test@mozilla.org.xpi',
             'workerbootstrap-test@mozilla.org.xpi',
             'indexedDB-test@mozilla.org.xpi',
         ])
 
         manifest = MochitestDesktop.buildProfile(self, self.options)