Commit graph

204 commits

Author SHA1 Message Date
Jan-Erik Rediger
e6db11bfe7 Bug 1539166 - Refactor the session scheduler into its own module r=chutten
This is in preparation for further logic refactoring in later commits.

Differential Revision: https://phabricator.services.mozilla.com/D26147

--HG--
extra : moz-landing-system : lando
2019-04-05 16:17:42 +00:00
Chris H-C
df2c8a1191 Bug 1538245 - Remove test prio data from "main" ping. r=janerik,rhelmer
The Prio pilot project has completed, so we no longer need to add prio-encoded
payloads to the "main" ping.

Differential Revision: https://phabricator.services.mozilla.com/D26004

--HG--
extra : moz-landing-system : lando
2019-04-04 13:40:08 +00:00
Kris Maglione
592d451aa3 Bug 1525511: Part 4 - Get rid of persona gunk in Telemetry. r=aswan,chutten
Differential Revision: https://phabricator.services.mozilla.com/D18787

--HG--
extra : rebase_source : 556a92d72379ad3070b8cd500b379be20325a8ba
2019-02-06 13:58:53 -08:00
Mike de Boer
481ae95c00 Bug 1524593 - nsISearchService (aka nsIBrowserSearchService, previously) refactor to be mostly an asynchronous, in preparation of WebExtension engines. r=daleharvey
This is a rollup of all the patches that have landed on the cedar project branch:

891252fdd0
Bug 1492475 - Part 1: Migrate most, if not all nsSearchService consumers to use async APIs. r=florian

79b2eb2367
Bug 1492475 - Part 2: Move nsIBrowserSearchService.idl to toolkit/components/search/nsISearchService.idl and update references. r=florian

a947d3cdf0
Bug 1492475 - Part 3: The search service init() method should simply return a Promise. r=florian

c1e172dfac
Bug 1492475 - Part 4: Remove the synchronous initialization flow. r=florian

cd41189eac
Bug 1492475 - Part 5: Since async initialization of the search service now is implicit behavior, remove the distinctive verbiage used internally. r=florian

2ae7189dfa
Bug 1492475 - Part 6: Update the cache build task to work with an actual Promise and re-initialize only once at the same time - all to fix race conditions here. r=florian

c8ee92973f
Bug 1492475 - Part 7: Make the region fetch not block the init flow, to ensure it's as fast as possible. r=florian

c44e674e16
Bug 1492475 - Part 8: Introduce an init flag, which can only be used privately, that allows to explicitly skip waiting for the region check process to complete. r=florian

6c79eaf1d3
Bug 1492475 - Part 9: Update unit tests to stop using 'currentEngine', in favor of 'defaultEngine'. r=Standard8

21b3aa17ee
Bug 1492475 - Part 10: Update unit tests to be fully aware of the new, async signatures of the search service API and remove sync init flow tests. r=mkaply,florian

ce5ba69019
Bug 1492475 - Part 11: Repair incorrect usage of the `identifier` property of nsISearchEngine instances. r=florian

fd177a7994
Bug 1518543 - Fix up the Android (Fennec) nsISearchService shim to work with the new asynchronous API. r=florian

3653d8ee22
Bug 1523708 - Change the search service interaction in the show-heartbeat action to use the new async API. r=florian

Differential Revision: https://phabricator.services.mozilla.com/D18355

--HG--
rename : netwerk/base/nsIBrowserSearchService.idl => toolkit/components/search/nsISearchService.idl
extra : moz-landing-system : lando
2019-02-02 11:27:21 +00:00
Myk Melez
25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Mark Striemer
2478891a6c Bug 1502921 - Record telemetry environment data about locales r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D15990

--HG--
extra : moz-landing-system : lando
2019-01-23 21:26:08 +00:00
Bogdan Tara
45f056b544 Backed out changeset a0be6d91b302 (bug 1502921) for toolkit/components/telemetry/tests/unit/*(eg. test_SubsessionChaining.js, test_TelemetryController.js) failures CLOSED TREE 2019-01-18 01:43:52 +02:00
Mark Striemer
d1493d05da Bug 1502921 - Record telemetry environment data about locales r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D15990

--HG--
extra : moz-landing-system : lando
2019-01-17 21:09:03 +00:00
Kris Maglione
d79b3fbaf4 Bug 1505522: Part 2 - Migrate MemoryTelemetry.jsm to C++. r=erahm,chutten
This has benefits both in terms of performance and memory usage. Aside from
the obvious savings of not loading additional JS scripts in every process,
this also allows us to move more of our expensive data collection work to a
background thread, where it doesn't risk janking both parent and content
processes.

MozReview-Commit-ID: 2A593R7bIKB

Differential Revision: https://phabricator.services.mozilla.com/D13872

--HG--
extra : rebase_source : ec634ee3a3b975809f542aa8077ad32236781452
2018-12-05 15:44:53 -05:00
Jan-Erik Rediger
ff924f1cdb Bug 1468761 - Migrate Telemetry tests to always assume packed histograms r=chutten
Depends on D9235

Differential Revision: https://phabricator.services.mozilla.com/D9236

--HG--
extra : moz-landing-system : lando
2018-11-01 13:46:57 +00:00
Robert Helmer
b3edbbdc2c Bug 1500791 - Telemetry client now decides which histograms should be prio-encoded r=janerik
Depends on D9555

Differential Revision: https://phabricator.services.mozilla.com/D9556

--HG--
extra : moz-landing-system : lando
2018-10-26 17:24:17 +00:00
Csoregi Natalia
6ddd7d4134 Backed out 3 changesets (bug 1468761) for telemetry related xpcshell failures. CLOSED TREE
Backed out changeset 8c08dcec61d8 (bug 1468761)
Backed out changeset 9ee8406cf1d3 (bug 1468761)
Backed out changeset 65bfae07e0f4 (bug 1468761)
2018-10-22 19:28:56 +03:00
Jan-Erik Rediger
d85b7ff57b Bug 1468761 - Migrate Telemetry tests to always assume packed histograms r=chutten
Depends on D9235

Differential Revision: https://phabricator.services.mozilla.com/D9236

--HG--
extra : moz-landing-system : lando
2018-10-22 15:26:30 +00:00
Robert Helmer
784e3fecc8 Bug 1499361 - skip Prio telemetry tests if prio.enabled is false r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D8879

--HG--
extra : moz-landing-system : lando
2018-10-16 16:37:09 +00:00
Robert Helmer
d158b6c2a8 Bug 1497365 - send Prio-encoded data for subsessions r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D8300

--HG--
extra : moz-landing-system : lando
2018-10-15 16:52:49 +00:00
Jan-Erik Rediger
cb18367fe4 Bug 1481812 - Refactor memory gathering into its own module r=chutten
This avoids loading the remaining parts of TelemetrySession in a content process.
This saves around 10 kb of memory.

Differential Revision: https://phabricator.services.mozilla.com/D8378

--HG--
extra : moz-landing-system : lando
2018-10-12 13:51:24 +00:00
Jan-Erik Rediger
2237676d3a Bug 1489520 - Fix canary client ID on startup when Telemetry upload is enabled r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D5771

--HG--
extra : moz-landing-system : lando
2018-09-17 13:37:16 +00:00
Thi Huynh
3ad07f32b9 Bug 1485695 - Remove unused uptime property from the main ping. r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D4296

--HG--
extra : moz-landing-system : lando
2018-09-10 16:08:10 +00:00
Robert Helmer
7d4c15f217 Bug 1465251 - use PrioEncoder to encode Telemetry values for pilot project r=kmag
Use PrioEncoder to encode a few already-included histograms, so we can compare results on the Telemetry server side.

Differential Revision: https://phabricator.services.mozilla.com/D5088

--HG--
extra : moz-landing-system : lando
2018-09-09 00:23:52 +00:00
Mark Banner
691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Adam Gashlin
5c127a69e4 Bug 1486423: Remove expiring telemetry.os_shutting_down probe r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D4357

--HG--
extra : moz-landing-system : lando
2018-08-27 18:42:28 +00:00
Adam Gashlin
a66914000b Bug 1480826: Reenable telemetry.os_shutting_down probe r=chutten
This records whether the shutdown ping was generated during an OS shutdown.

This is the reverse of [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1389992 | bug 1389992 ]] with appropriate changes to Scalars.yaml.

Differential Revision: https://phabricator.services.mozilla.com/D2734

--HG--
extra : moz-landing-system : lando
2018-08-03 19:21:23 +00:00
Issei Horie
a016c0795d Bug 1469522: Remove savedPings from simpleMeasurements. r=Dexter 2018-06-24 22:10:19 +09:00
Chris H-C
5de0228062 bug 1460595 - Remove events from main pings and, thus, TelemetrySession r=Dexter
This requires we take unsent event records out of about:telemetry since its
"Current Payload" view only looks at the "main" ping.

MozReview-Commit-ID: GLs2EYvFaAF

--HG--
extra : rebase_source : 63ffa636213bdcdc437e3768b4d449b7cb73ead4
2018-06-06 11:05:29 -04:00
Doug Thayer
10ff9c706f Bug 1448040 - Remove HangMonitor/ChromeHangs r=Nika
Fairly straightforward, just a blanket removal. Haven't heard
anything on dev-platform or fx-data-dev regarding this removal,
so I think it's likely safe to remove on Nightly, and we can
revert if anyone makes a fuss.

As part of removing the HangMonitor, I renamed a few things and
reorganized the namespaces to not depend on a HangMonitor
namespace. Hopefully this doesn't produce too much noise in the
diff, it just seemed appropriate to move everything around
rather than keep dangling vestiges of the old system.

MozReview-Commit-ID: 8C8NFnOP5GU

--HG--
extra : rebase_source : dd000a05bfc2da40c586644d33ca4508fa5330f6
2018-04-29 18:21:20 -07:00
Cosmin Sabou
0f45148664 Backed out changeset 531593bacc4e (bug 1448040) for Android build bustages on HangAnnotations.h. CLOSED TREE
--HG--
extra : rebase_source : ea3618023c548a8ca6ca14749633c194606af52f
2018-06-07 19:22:31 +03:00
Doug Thayer
87bf13e093 Bug 1448040 - Remove HangMonitor/ChromeHangs r=Nika
Fairly straightforward, just a blanket removal. Haven't heard
anything on dev-platform or fx-data-dev regarding this removal,
so I think it's likely safe to remove on Nightly, and we can
revert if anyone makes a fuss.

As part of removing the HangMonitor, I renamed a few things and
reorganized the namespaces to not depend on a HangMonitor
namespace. Hopefully this doesn't produce too much noise in the
diff, it just seemed appropriate to move everything around
rather than keep dangling vestiges of the old system.

MozReview-Commit-ID: 8C8NFnOP5GU

--HG--
extra : rebase_source : 59e4a6ced7d14d2a01c0b79e944078ea84cae523
2018-04-29 18:21:20 -07:00
Dorel Luca
d54a3b06aa Backed out changeset da12c077747f (bug 1448040) for Android build bustage on build/src/obj-firefox/dist/include/mozilla/HangAnnotations.h. CLOSED TREE
--HG--
extra : amend_source : 683201b5a47af3cb7fdcb7426c65f1c9ed713186
2018-05-25 20:13:26 +03:00
Doug Thayer
9765bdd0e0 Bug 1448040 - Remove HangMonitor/ChromeHangs r=Nika
Fairly straightforward, just a blanket removal. Haven't heard
anything on dev-platform or fx-data-dev regarding this removal,
so I think it's likely safe to remove on Nightly, and we can
revert if anyone makes a fuss.

As part of removing the HangMonitor, I renamed a few things and
reorganized the namespaces to not depend on a HangMonitor
namespace. Hopefully this doesn't produce too much noise in the
diff, it just seemed appropriate to move everything around
rather than keep dangling vestiges of the old system.

MozReview-Commit-ID: 8C8NFnOP5GU

--HG--
extra : rebase_source : a8840bd26f4b01b756ffa72345ababb625048550
2018-04-29 18:21:20 -07:00
Jan-Erik Rediger
ee2deffba3 Bug 1320052 - Remove now obsolete full-session/subsession tests for histograms. r=chutten
MozReview-Commit-ID: 1NJ6OAYEqIs

--HG--
extra : rebase_source : 529b2184f77adb83780082ca5d8e95a5111de41f
2018-05-02 15:55:01 +02:00
arthur.iakab
5a17556f02 Backed out 6 changesets (bug 1320052) on request by Dexter for requently failing test verify dom/base/test/browser_use_counters.js
Backed out changeset 07db52945b1f (bug 1320052)
Backed out changeset 7a64a23bf183 (bug 1320052)
Backed out changeset c95a4b0c6642 (bug 1320052)
Backed out changeset 4749633bd02f (bug 1320052)
Backed out changeset c7b8f6d55a0b (bug 1320052)
Backed out changeset b0396db0229c (bug 1320052)
2018-05-08 17:38:29 +03:00
Jan-Erik Rediger
65104cf218 Bug 1320052 - Remove now obsolete full-session/subsession tests for histograms. r=chutten
MozReview-Commit-ID: 1NJ6OAYEqIs

--HG--
extra : rebase_source : 529b2184f77adb83780082ca5d8e95a5111de41f
2018-05-02 15:55:01 +02:00
Jan-Erik Rediger
787add8d5f Bug 1450994 - Check for expected reason in payload. r=chutten
MozReview-Commit-ID: 48D449vIYgg
2018-04-11 09:58:00 -04:00
Jan-Erik Rediger
8dcff1f91e Bug 1443605 - Stop reporting legacy Telemetry component UITelemetry r=chutten 2018-04-03 02:34:00 +03:00
Jan-Erik Rediger
fb5add2f60 Bug 1443603 - Stop sending saved-session pings from Firefox Desktop r=chutten
--HG--
extra : rebase_source : 1dc21f77aae95580761ae8a4b5fd907f8553493a
2018-03-19 15:44:53 +01:00
akriti
4e6021ae39 Bug 972324 : Test for changes of the revision value in payloads , r=chutten
MozReview-Commit-ID: HaANh3cySNK

--HG--
extra : rebase_source : 8dc474061f66ac843d31af19b194be829d15f2e2
2018-03-23 22:29:44 +05:30
Florian Quèze
f3ee8dd20b Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Georg Fritzsche
e415abb416 Bug 1429510 - Make last shutdown time a scalar. r=chutten 2018-01-15 13:22:56 +01:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Florian Quèze
032c961e0a Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
Alessio Placitelli
3f0d379cb0 Bug 1411093 - Set the correct Telemetry pref when running tests on Android. r=chutten
Non unified telemetry needs "toolkit.telemetry.enabled" to be set to true
in order for Telemetry to be collected at all.

MozReview-Commit-ID: C7rdov3xFqs

--HG--
extra : rebase_source : 74d4b83ff4d16d2ff224dbe44c14cc867b5e9a64
2017-10-24 09:38:04 +02:00
Attila Craciun
0e9f5ef014 Backed out 1 changesets (bug 1411093) for failing xpcshell in toolkit/components/telemetry/tests/unit/test_TelemetryLog.js r=backout on a CLOSED TREE.
Backed out changeset 2b8628840dfe (bug 1411093)
2017-10-25 12:02:11 +03:00
Alessio Placitelli
6cc9d12c29 Bug 1411093 - Set the correct Telemetry pref when running tests on Android. r=chutten
Non unified telemetry needs "toolkit.telemetry.enabled" to be set to true
in order for Telemetry to be collected at all.

MozReview-Commit-ID: C7rdov3xFqs

--HG--
extra : rebase_source : 66f6d2597a65860344e906dac59beb580fd29b73
2017-10-24 09:38:04 +02:00
Alessio Placitelli
8797549cde Bug 1406392 - Make nsITelemetry.canRecordExtended true on pre release channels. r=chutten
MozReview-Commit-ID: 2FR5dekXbeV

--HG--
extra : rebase_source : c4b5f8cb1ed11b597c9925fe05303f347fb9cd2e
2017-10-16 12:28:38 +02:00