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 393497 7c1ddc8223812aed002c47b4a169d7550a7c9c99
parent 393496 581ee0750f81067c33090c5d3958d757ff5f331b
child 393730 329789f1d87f7352c02403e7ff517a38113b878d
child 394093 87df4f088000c1b82df11a706f17eb1c8fcda532
push id24316
push usermichael.l.comella@gmail.com
push dateWed, 27 Jul 2016 21:57:07 +0000
reviewersgbrown
bugs1261494, 24641374
milestone50.0a1
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)