Commit graph

1185 commits

Author SHA1 Message Date
Jan-Erik Rediger
6707b5594d Bug 1510988 - Make store name optional and default to "main" r=chutten
Depends on D16967

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

--HG--
extra : moz-landing-system : lando
2019-01-21 15:57:06 +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
Junior Hsu
c54c918b66 Bug 1510979 - add a telemetry xpcshell-test for socket process r=janerik
We need a test-only IPC message to socket process to trigger the Telemetry::Scalar set since no js engine in the socket process.
And hook the IPC call to AddPendingEvent |CallOrWaitSocketProcess| introduced by bug 1496257.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 23:15:38 +00:00
Kershaw Chang
74f3ba17c3 Bug 1513057 - P8: Report telemetry from socket process to parent process r=dragana,mayhemer,janerik
Differential Revision: https://phabricator.services.mozilla.com/D14362

--HG--
extra : moz-landing-system : lando
2019-01-11 20:59:35 +00:00
Andreea Pavel
21ad33d612 Backed out 10 changesets (bug 1513057) for build bustages on a CLOSED TREE
Backed out changeset 56329b5f1844 (bug 1513057)
Backed out changeset 46411c5de3da (bug 1513057)
Backed out changeset de65c456aad6 (bug 1513057)
Backed out changeset f648b5f1a7c2 (bug 1513057)
Backed out changeset 460bbf0849e1 (bug 1513057)
Backed out changeset 86032a14d26f (bug 1513057)
Backed out changeset a81f83df08d5 (bug 1513057)
Backed out changeset edbda5ee5fd5 (bug 1513057)
Backed out changeset c900ac2519f5 (bug 1513057)
Backed out changeset 4e94bbb90315 (bug 1513057)
2019-01-11 17:02:44 +02:00
Kershaw Chang
562055d29e Bug 1513057 - P8: Report telemetry from socket process to parent process r=dragana,mayhemer,janerik
Differential Revision: https://phabricator.services.mozilla.com/D14362

--HG--
extra : moz-landing-system : lando
2019-01-11 14:23:19 +00:00
Paul Bone
eca8e2da04 Bug 1518713 - Make it easier to update the GC telemetry unit test r=florian
By refactoring this test code we can more easily adjust the number of fields
there are supposed to be in these objects.

--HG--
extra : source : 270b892f2c93aaed926c4ec70600f1c74b6325af
extra : histedit_source : 1e0d7ca3033dfb5aff8bd0e90b63d6ad23aea994
2019-01-07 22:19:13 +11:00
Mark Banner
537292585c Bug 1518152 - Create a TelemetryTestUtils.jsm and start using it in browser/modules/test. r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D15839

--HG--
extra : moz-landing-system : lando
2019-01-09 09:08:42 +00:00
Gijs Kruitbosch
32dd1fe10f Bug 1515103 - add low end machine information to graphics section of telemetry environment, r=chutten
Depends on D15844

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

--HG--
extra : moz-landing-system : lando
2019-01-08 16:12:25 +00:00
Carl Corcoran
b2b3ea7d03 Bug 1513176: Prevent mozglue.dll from appearing erroneously in the untrusted modules ping;r=aklotz
Nightly is reporting mozglue.dll as being untrusted in the untrusted modules
ping. Until now, xpcshell tests hard-code mozglue to appear as untrusted in
order to cover certain code paths related to startup modules.

This patch:
1. Checks explicitly for the xpcshell environment and only applies this logic
   during xpcshell tests.
2. Uses a purpose-build DLL, "untrusted-startup-test-dll.dll", instead of
   mozglue. This is more explicit and doesn't interfere with any "true"
   processing of mozglue.

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

--HG--
extra : moz-landing-system : lando
2018-12-24 21:04:13 +00:00
Raphael Pierzina
b07405f9f7 Bug 1515320 - Fix functionality to retrieve the current search engine in TestSearchCounts; r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D14966

--HG--
extra : moz-landing-system : lando
2018-12-19 14:26:22 +00:00
Jan-Erik Rediger
3d5aa2ee0e Bug 1505991 - Set new testing-only preference to disable Telemetry throttling r=raphael
Depends on D14458

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

--HG--
extra : moz-landing-system : lando
2018-12-13 17:35:13 +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
Raphael Pierzina
6196563d5e Bug 1301776 - Verify window_open_event_count scalar data in telemetry-tests-client; r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D13559

--HG--
extra : moz-landing-system : lando
2018-12-07 15:37:55 +00:00
Raphael Pierzina
27230a9848 Bug 1511795 - Convert TestMainTabScalars to use unittest TestCase assert methods; r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D13668

--HG--
extra : moz-landing-system : lando
2018-12-05 14:14:48 +00:00
Sylvestre Ledru
265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Raphael Pierzina
a8b139ad31 Bug 1509913 - Add helper function for checking UUID values to telemetry-tests-client; r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D13415

--HG--
extra : moz-landing-system : lando
2018-11-29 16:02:21 +00:00
Jan-Erik Rediger
5fd1cd8036 Bug 1498163 - Migrate external callers to the new snapshot API r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D12890

--HG--
extra : moz-landing-system : lando
2018-11-28 09:36:03 +00:00
Chris H-C
2f12fb7b34 bug 1505060 - Support multistore for dynamic scalars r=janerik
The storage approach for dynamic scalars uses nsAtom to ensure we don't
repeatedly store the same string over and over.

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

--HG--
extra : moz-landing-system : lando
2018-11-27 17:48:46 +00:00
Raphael Pierzina
69647842f3 Bug 1509915 - Add helper function for waiting for a single ping to telemetry-tests-client; r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D13100

--HG--
extra : moz-landing-system : lando
2018-11-27 18:55:09 +00:00
Andreea Pavel
ebe85db8e7 Backed out changeset ad857edac6a5 (bug 1498163) for failing devtools/client/performance/test/browser_perf-telemetry-04.js on a CLOSED TREE 2018-11-27 11:05:28 +02:00
Jan-Erik Rediger
c6e72f0819 Bug 1498163 - Migrate external callers to the new snapshot API r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D12890

--HG--
extra : moz-landing-system : lando
2018-11-26 14:34:23 +00:00
Jan-Erik Rediger
ea8b8ef5c1 Bug 1498173 - Migrate internal tests to changed histogram API r=chutten
Depends on D12556

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

--HG--
extra : moz-landing-system : lando
2018-11-23 11:23:04 +00:00
Jan-Erik Rediger
ba151189b1 Bug 1498173 - Allow snapshotting from non-main stores for keyed histograms r=chutten
BREAKING CHANGE:

    This changes the API of the object returned from `Telemetry.getKeyedHistogramById`.

    * `add` will continue to record into all registered stores for the histogram.
    * `snapshot` now takes an object `{store: "storeName"}`, if not given it defaults to "main".
      Support for getting a snapshot for just one key is dropped.
    * `keys` now takes an object `{store: "storeName"}`, if not given it defaults to "main"
    * `clear` now takes an object `{store: "storeName"}`, if not given it defaults to "main"

Depends on D12555

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

--HG--
extra : moz-landing-system : lando
2018-11-23 11:23:27 +00:00
Jan-Erik Rediger
7f4d13ff46 Bug 1498173 - Allow snapshotting from non-main stores for plain histograms r=chutten
This changes the API of the object returned from `Telemetry.getHistogramById`

* `add` will continue to record into all registered stores for the histogram.
* `snapshot` now takes an object `{store: "storeName"}`, if not given it defaults to "main"
* `clear` now takes an object `{store: "storeName"}`, if not given it defaults to "main"

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

--HG--
extra : moz-landing-system : lando
2018-11-22 23:35:32 +00:00
Raphael Pierzina
d9f6a4f6f7 Bug 1502849 - Remove unused addon from telemetry-tests-client resources; r=Dexter
Depends on D12289

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

--HG--
extra : moz-landing-system : lando
2018-11-20 15:57:28 +00:00
Raphael Pierzina
a4773bb32f Bug 1502849 - Add new telemetry client test for SEARCH_COUNTS across sessions; r=Dexter,gfritzsche
Depends on D12288

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

--HG--
extra : moz-landing-system : lando
2018-11-21 18:39:02 +00:00
Raphael Pierzina
9880afb583 Bug 1502849 - Create reusable ping filters for telemetry-tests-client harness; r=Dexter,davehunt
Differential Revision: https://phabricator.services.mozilla.com/D12288

--HG--
extra : moz-landing-system : lando
2018-11-20 13:37:06 +00:00
Chris H-C
b34692ea2e bug 1498172 - Support Scalar Snapshotting from multiple stores r=janerik
And test it.

Paritcular annoying bits are that we now have to iterate over Scalar objects
that are -present- even if they don't have data for the store being snapshot.

To maintain our previous semantics about not having process entries in the
snapshot object when the process is null (and, similarly for keyed scalars), we
need to retcon out some things during the snapshotting process.

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

--HG--
extra : moz-landing-system : lando
2018-11-22 14:55:36 +00:00
Jan-Erik Rediger
3d2eb62eb7 Bug 1498166 - Test storing into multiple stores (and snapshotting main store) r=chutten
For now we test that storing still works and the main store is still accessed for snapshots and clearing.

Depends on D11906

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

--HG--
extra : moz-landing-system : lando
2018-11-19 13:01:05 +00:00
Andrew Swan
17c6220cd8 Bug 1451532 Remove/replace legacy extensions in telemetry tests r=gfritzsche
--HG--
rename : toolkit/components/telemetry/tests/addons/dictionary/install.rdf => toolkit/components/telemetry/tests/addons/dictionary/manifest.json
rename : toolkit/components/telemetry/tests/addons/system/install.rdf => toolkit/components/telemetry/tests/addons/system/manifest.json
rename : toolkit/components/telemetry/tests/addons/theme/install.rdf => toolkit/components/telemetry/tests/addons/theme/manifest.json
extra : rebase_source : c0186e8692b90f5e9a09b68fa8c5dfe5c4a949c3
extra : source : dc9705697fba4144568a49b7e34b79e4576b1893
extra : histedit_source : 4227770f9201aa66c8f831e90170c40b51bd80f1
2018-10-22 11:42:16 -07:00
Dietrich Ayala
08ccbff33e Bug 1477433 - Enable use-counters on release channel (r=chutten)
Enable use-counters on release channel

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

--HG--
extra : moz-landing-system : lando
2018-11-15 08:39:13 +00:00
Chris H-C
b4e99947d0 bug 1507175 - Don't expire dynamic builtin scalars this way. r=janerik
This reverts "bug 1501659 - Expire expired dynamic builtin scalars and events r=janerik"

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

--HG--
extra : moz-landing-system : lando
2018-11-14 17:12:16 +00:00
Dorel Luca
8d3cb05586 Backed out changeset 39706085e808 (bug 1477433) for lining failure. CLOSED TREE 2018-11-14 19:32:15 +02:00
Dietrich Ayala
3c0bb272b6 Bug 1477433 - Enable use-counters on release channel (r=chutten)
Enable use-counters on release channel

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

--HG--
extra : moz-landing-system : lando
2018-11-14 15:15:52 +00:00
Chris H-C
352d5dc670 bug 1501659 - Expire expired dynamic builtin scalars and events r=janerik
When registering dynamic builtin scalars and events (Build Faster support) we
didn't check whether they were expired. Let's do that.

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

--HG--
extra : moz-landing-system : lando
2018-11-09 17:58:57 +00:00
Dorel Luca
918bdeb7c6 Backed out changeset 0636b7fabe33 (bug 1501659) for build bustages. CLOSED TREE 2018-11-09 18:36:25 +02:00
Chris H-C
01c8631200 bug 1501659 - Expire expired dynamic builtin scalars and events r=janerik
When registering dynamic builtin scalars and events (Build Faster support) we
didn't check whether they were expired. Let's do that.

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

--HG--
extra : moz-landing-system : lando
2018-11-09 15:47:31 +00:00
Raphael Pierzina
ed0ae1b771 Bug 1506086 - Set telemetry log level for telemetry-tests-client to Trace; r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D11467

--HG--
extra : moz-landing-system : lando
2018-11-09 13:42:25 +00:00
Jan-Erik Rediger
dee6564dbb Bug 1498164 - Add support to parse record_into_store for scalars and histograms r=chutten
Depends on D10919

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

--HG--
extra : moz-landing-system : lando
2018-11-07 12:34:34 +00:00
Jan-Erik Rediger
5cfd4dcfbb Bug 1498164 - Use correct attribute to set release collection on dynamic scalar r=chutten
Depends on D10918

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

--HG--
extra : moz-landing-system : lando
2018-11-07 12:34:33 +00:00
Jan-Erik Rediger
2c0ff23692 Bug 1498164 - Fix scalar definition in parser test r=chutten
Previously the test succeeded, but not for the right reasons.

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

--HG--
extra : moz-landing-system : lando
2018-11-07 12:34:31 +00:00
Raphael Pierzina
a3cb8c228f Bug 1500298 - Refactor TelemetryTestCase and add logging; r=Dexter,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D10581

--HG--
extra : moz-landing-system : lando
2018-11-06 11:20:29 +00:00
Chris H-C
a35bbfce87 bug 1501303 - Adjust Telemetry Send meta-metrics r=Dexter
TELEMETRY_FAILED_SEND_PINGS_SIZE_KB and TELEMETRY_SUCCESSFUL_SEND_PINGS_SIZE_KB
are unmonitored and don't show evidence consistent with the original
hypothesis that size correlates with send failures. So let's remove them.

TELEMETRY_SEND_FAILURE_TYPE is a useful measure to track numbers and types of
send failures, in case they change. So let's make that permanent.

MozReview-Commit-ID: GWaKhrzIvph

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

--HG--
extra : moz-landing-system : lando
2018-11-05 14:53:21 +00:00
Jan-Erik Rediger
ca98980366 Bug 1500078 - Filter test probes by default, disable filtering in test mode r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9245

--HG--
extra : moz-landing-system : lando
2018-11-05 08:15:22 +00:00
Kris Maglione
ade8c9ede8 Bug 1482091: Part 2 - Remove TelemetryStopwatch.jsm in favor of native implementation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9888

--HG--
extra : source : afd0a13bcfff4c92ad2497ec687f466484481667
extra : amend_source : 501bca3f94a0cb0c8bec1f30d0b3f64a50b04e48
extra : intermediate-source : bc03f101937e373fdaca735f3f356960a5239bc0
2018-10-25 19:04:01 -07:00
Kris Maglione
288ea557d8 Bug 1482091: Part 1 - Add native TelemetryStopwatch implementation. r=chutten,mccr8
This implementation is considerably more memory efficient than the existing JS
implementation. Migrating to it fully saves us about 28K per base content
process.

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

--HG--
extra : source : a19c6b3e0402d16a77185f82d9fedab83a7ca52e
extra : intermediate-source : 28a19b7290ab288a1cb2cbf6d49f905cecc9682b
2018-10-26 13:17:55 -07:00
arthur.iakab
0c81738411 Backed out 2 changesets (bug 1482091) for bc failures on browser_domFullscreen_fullscreenMode.js
Backed out changeset bc03f101937e (bug 1482091)
Backed out changeset 28a19b7290ab (bug 1482091)
2018-11-03 01:08:36 +02:00
Kris Maglione
7fa01216a4 Bug 1482091: Part 2 - Remove TelemetryStopwatch.jsm in favor of native implementation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9888

--HG--
extra : source : afd0a13bcfff4c92ad2497ec687f466484481667
extra : amend_source : bf22d8e9ce5c081902bd5c75b892cc434a167300
2018-10-25 19:04:01 -07:00
Kris Maglione
bee3f68fdc Bug 1482091: Part 1 - Add native TelemetryStopwatch implementation. r=chutten,mccr8
This implementation is considerably more memory efficient than the existing JS
implementation. Migrating to it fully saves us about 28K per base content
process.

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

--HG--
extra : source : a19c6b3e0402d16a77185f82d9fedab83a7ca52e
2018-10-26 13:17:55 -07:00
arthur.iakab
cf2aa54f83 Backed out 2 changesets (bug 1482091)for failing browser chrome failures on browser_panelUINotifications_fullscreen_noAutoHideToolbar.js
Backed out changeset afd0a13bcfff (bug 1482091)
Backed out changeset a19c6b3e0402 (bug 1482091)
2018-11-02 23:01:15 +02:00
Kris Maglione
96f3e16d1a Bug 1482091: Part 2 - Remove TelemetryStopwatch.jsm in favor of native implementation. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9888

--HG--
extra : rebase_source : a9daea3a9efea37acdbcaecda8bf0b7f69631de4
extra : histedit_source : bb8b416b1387da9de3bd95c7a171f10426a22602
2018-10-25 19:04:01 -07:00
Kris Maglione
4bd1fb01dd Bug 1482091: Part 1 - Add native TelemetryStopwatch implementation. r=chutten,mccr8
This implementation is considerably more memory efficient than the existing JS
implementation. Migrating to it fully saves us about 28K per base content
process.

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

--HG--
extra : rebase_source : f358f1f7097eaa8cd62ae916d048a58489e9f5ff
extra : histedit_source : c44c42de02750d71e23e70fdf22d3c3a40b91d3d
2018-10-26 13:17:55 -07:00
Jan-Erik Rediger
24a23149ef Bug 1498161 - Use new snapshot API in all internal test r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9238

--HG--
extra : moz-landing-system : lando
2018-11-02 13:08:16 +00:00
Carl Corcoran
e5453b98ac Bug 1435827 part 9/9: Adding basic test for untrusted modules ping;r=janerik
This is the first test for the untrusted modules ping. Tests for
- Basic payload structure validity.
- Expected results for a few specific DLLs

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

--HG--
extra : moz-landing-system : lando
2018-11-02 07:41:07 +00: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
Chris H-C
e827f40baa bug 1500066 - Control the Telemetry IPC batch timeout by pref r=Dexter
This allows tests to cut the time between accumulations being made in child
processes and them showing up in snapshots in the parent process.
For instance, setting it to 10ms instead of 2000ms takes test_ChildEvents.js
from 12s down to 10s on my local dev machine.

This patch also sets the default during telemetry xpcshell tests to 10ms.

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

--HG--
extra : moz-landing-system : lando
2018-10-30 18:04:36 +00:00
Jan-Erik Rediger
71e6186357 Bug 1501329 - Expose "wasCanary" flag in saved-session pings for Fennec r=chutten
Depends on D9903

Depends on D9903

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

--HG--
extra : moz-landing-system : lando
2018-10-26 20:05:53 +00:00
Jan-Erik Rediger
b463e79733 Bug 1501329 - Persist information about canary after resetting client ID r=chutten
We erroneously reset client IDs on Fennec to a canary client ID.
This is now detected and a new valid and random client ID is set.

This adds a new boolean attribute "wasCanary" to the `state.json` file
generated by ClientID.jsm.

Depends on D9544

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

--HG--
extra : moz-landing-system : lando
2018-10-26 18:01:13 +00:00
Jan-Erik Rediger
2db06847e9 Bug 1501329 - Set valid client ID on Fennec if canary is detected r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D9544

--HG--
extra : moz-landing-system : lando
2018-10-26 18:17:48 +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
Nicklas Boman
00159fa790 Bug 1451813 - Report which keyed scalars fail to accumulate due to running out of keys. r=chutten 2018-10-12 23:03:49 +02:00
Robert Helmer
17ab05a92e Bug 1492656 - move Telemetry Coverage ping in-tree r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D6359

--HG--
extra : moz-landing-system : lando
2018-10-19 00:47:37 +00:00
arthur.iakab
d01d9399cc Backed out changeset b969cbe46b14 (bug 1492656)for Android xpcshell failures on unit/test_CoveragePing.js CLOSED TREE 2018-10-19 03:12:23 +03:00
Robert Helmer
3564ee4004 Bug 1492656 - move Telemetry Coverage ping in-tree r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D6359

--HG--
extra : moz-landing-system : lando
2018-10-04 14:15:11 +00:00
Dave Townsend
ce58ac886e Bug 1495792: Add a profile first-run time to the telemetry environment. r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D8464

--HG--
extra : moz-landing-system : lando
2018-10-15 16:09:12 +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
Raphael Pierzina
41ba899583 Bug 1488468 - Move HTTP POST request to wait_for_ping in TestPingServer; r=davehunt
Depends on D8531

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

--HG--
extra : moz-landing-system : lando
2018-10-16 10:42:06 +00:00
Raphael Pierzina
5961cffb59 Bug 1488468 - Filter ping_list in Wait function of TelemetryTestCase; r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D8531

--HG--
extra : moz-landing-system : lando
2018-10-16 08:28:56 +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
Dave Townsend
3cc72cc409 Bug 1497960: Make ProfileAge return the same instances for the same profile directory and preload times.json to avoid data races. r=janerik
ProfileAge now returns a promise that resolves to an instance that has already
loaded its times.json. This makes multiple attempts to update data in times.json
safer.

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

--HG--
extra : moz-landing-system : lando
2018-10-12 18:10:20 +00:00
Jan-Erik Rediger
cf8a6d4615 Bug 1498245 - Call exit_func to raise any errors if parsing failed r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D8386

--HG--
extra : moz-landing-system : lando
2018-10-11 17:44:54 +00:00
Jan-Erik Rediger
e73edabc8e Bug 1497929 - Await the underlying promise r=chutten
Previously, the test never waited for the notification to actually fire.

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

--HG--
extra : moz-landing-system : lando
2018-10-10 16:38:08 +00:00
divyansh
7be9458f5f Bug 1487332 - Re-sorted the header files of .cpp/.h telemetry files. r=Dexter
Bug 1487332 -  Re-sorted the header files of .cpp/.h telemetry files.

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

--HG--
extra : moz-landing-system : lando
2018-10-10 04:55:10 +00:00
Diego Pino Garcia
45377e5099 Bug 1481199 - Drop the obsolete dataType parameter for nsIBrowserSearchService.addEngine. r=mkaply 2018-10-09 13:39:35 +01:00
Alessio Placitelli
bc897351da Bug 1490227 - Rename python_mozparsers to mozparsers. r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D7985

--HG--
rename : toolkit/components/telemetry/build_scripts/python_mozparsers/__init__.py => toolkit/components/telemetry/build_scripts/mozparsers/__init__.py
rename : toolkit/components/telemetry/build_scripts/python_mozparsers/parse_events.py => toolkit/components/telemetry/build_scripts/mozparsers/parse_events.py
rename : toolkit/components/telemetry/build_scripts/python_mozparsers/parse_histograms.py => toolkit/components/telemetry/build_scripts/mozparsers/parse_histograms.py
rename : toolkit/components/telemetry/build_scripts/python_mozparsers/parse_scalars.py => toolkit/components/telemetry/build_scripts/mozparsers/parse_scalars.py
rename : toolkit/components/telemetry/build_scripts/python_mozparsers/shared_telemetry_utils.py => toolkit/components/telemetry/build_scripts/mozparsers/shared_telemetry_utils.py
extra : moz-landing-system : lando
2018-10-08 09:23:56 +00:00
Raphael Pierzina
eb225d3d97 Bug 1488468 - Remove wait.until calls and improve formatting in test_main_tab_scalar; r=davehunt
Depends on D7904

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

--HG--
extra : moz-landing-system : lando
2018-10-05 19:16:47 +00:00
Raphael Pierzina
781a3743e2 Bug 1488468 - Do not share ping_list of TelemetryTestCase between instances; r=davehunt
Depends on D7902

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

--HG--
extra : moz-landing-system : lando
2018-10-05 19:16:46 +00:00
Gabriele Svelto
7089fe7369 Bug 1493955 - Store floating-point preferences in a locale-independent way r=njn
Differential Revision: https://phabricator.services.mozilla.com/D6796

--HG--
extra : moz-landing-system : lando
2018-09-28 20:54:09 +00:00
Bogdan Tara
8449b1c489 Backed out changeset ba1fef7b14eb (bug 1493955) for GTest failures CLOSED TREE 2018-09-28 02:42:20 +03:00
Gabriele Svelto
4d700e555a Bug 1493955 - Store floating-point preferences in a locale-independent way r=njn
Differential Revision: https://phabricator.services.mozilla.com/D6796

--HG--
extra : moz-landing-system : lando
2018-09-27 20:41:39 +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
Alessio Placitelli
29a1323c2d Bug 1490284 - Make Mozilla.ContentTelemetry.initPromise reject. r=chutten
This patch enables Hybrid Content Telemetry's |initPromise| to reject
if it is disabled or if the host requesting the API doesn't have
enough privileges. This also updates the documentation to mention
the change in behaviour.

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

--HG--
extra : moz-landing-system : lando
2018-09-14 20:36:44 +00:00
championshuttler
3f49150d4c Bug 1471305 - Remove obsolete footerURL code. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D5795

--HG--
extra : moz-landing-system : lando
2018-09-14 20:39:31 +00:00
Gurzau Raul
6f1500f089 Backed out changeset e60665194092 (bug 1471305) for eslint failure at extensions/internal/LightweightThemeImageOptimizer.jsm on a CLOSED TREE
--HG--
extra : rebase_source : 816f710536aab48bbe82fed6177011d0d6c739cd
2018-09-14 21:06:21 +03:00
championshuttler
c530e7f751 Bug 1471305 - Remove obsolete footerURL code. r=ntim
Removing footerURL code , few of the lines are left , i am not sure how to delete them and what to use instead of them there.

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

--HG--
extra : moz-landing-system : lando
2018-09-14 17:51:40 +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
Alessio Placitelli
45ca46263b Bug 1282098 - Pull probe parsers out of m-c and into a separate package. r=chutten
This patch moves the parsers' code to python_mozparsers, which is
the definitive name of the package on pypi. The data generation scripts
are adjusted accordingly. The README and setup files are added to
enable publishing on pypi.

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

--HG--
rename : toolkit/components/telemetry/build_scripts/parsers/__init__.py => toolkit/components/telemetry/build_scripts/python_mozparsers/__init__.py
rename : toolkit/components/telemetry/build_scripts/parsers/parse_events.py => toolkit/components/telemetry/build_scripts/python_mozparsers/parse_events.py
rename : toolkit/components/telemetry/build_scripts/parsers/parse_histograms.py => toolkit/components/telemetry/build_scripts/python_mozparsers/parse_histograms.py
rename : toolkit/components/telemetry/build_scripts/parsers/parse_scalars.py => toolkit/components/telemetry/build_scripts/python_mozparsers/parse_scalars.py
rename : toolkit/components/telemetry/build_scripts/parsers/shared_telemetry_utils.py => toolkit/components/telemetry/build_scripts/python_mozparsers/shared_telemetry_utils.py
extra : moz-landing-system : lando
2018-09-10 14:19:08 +00:00
Alessio Placitelli
4f96f7f8d3 Bug 1484611 - Re-organize the telemetry module layout. r=chutten,janerik on a CLOSED TREE
This patch organizes the Telemetry files according to a new
directory layout, which makes the top level dir less cluttered.
For a comprehensive discussion about the new layout, see
the bug comments.
Additionally, the build script and a few Python and C++ files
are adjusted for dealing with the new directory layout.

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

--HG--
rename : toolkit/components/telemetry/TelemetryArchive.jsm => toolkit/components/telemetry/app/TelemetryArchive.jsm
rename : toolkit/components/telemetry/TelemetryController.jsm => toolkit/components/telemetry/app/TelemetryController.jsm
rename : toolkit/components/telemetry/TelemetryEnvironment.jsm => toolkit/components/telemetry/app/TelemetryEnvironment.jsm
rename : toolkit/components/telemetry/TelemetryReportingPolicy.jsm => toolkit/components/telemetry/app/TelemetryReportingPolicy.jsm
rename : toolkit/components/telemetry/TelemetrySend.jsm => toolkit/components/telemetry/app/TelemetrySend.jsm
rename : toolkit/components/telemetry/TelemetryStopwatch.jsm => toolkit/components/telemetry/app/TelemetryStopwatch.jsm
rename : toolkit/components/telemetry/TelemetryStorage.jsm => toolkit/components/telemetry/app/TelemetryStorage.jsm
rename : toolkit/components/telemetry/TelemetryTimestamps.jsm => toolkit/components/telemetry/app/TelemetryTimestamps.jsm
rename : toolkit/components/telemetry/TelemetryUtils.jsm => toolkit/components/telemetry/app/TelemetryUtils.jsm
rename : toolkit/components/telemetry/gen_event_data.py => toolkit/components/telemetry/build_scripts/gen_event_data.py
rename : toolkit/components/telemetry/gen_event_enum.py => toolkit/components/telemetry/build_scripts/gen_event_enum.py
rename : toolkit/components/telemetry/gen_histogram_data.py => toolkit/components/telemetry/build_scripts/gen_histogram_data.py
rename : toolkit/components/telemetry/gen_histogram_enum.py => toolkit/components/telemetry/build_scripts/gen_histogram_enum.py
rename : toolkit/components/telemetry/gen_histogram_phf.py => toolkit/components/telemetry/build_scripts/gen_histogram_phf.py
rename : toolkit/components/telemetry/gen_process_data.py => toolkit/components/telemetry/build_scripts/gen_process_data.py
rename : toolkit/components/telemetry/gen_process_enum.py => toolkit/components/telemetry/build_scripts/gen_process_enum.py
rename : toolkit/components/telemetry/gen_scalar_data.py => toolkit/components/telemetry/build_scripts/gen_scalar_data.py
rename : toolkit/components/telemetry/gen_scalar_enum.py => toolkit/components/telemetry/build_scripts/gen_scalar_enum.py
rename : toolkit/components/telemetry/parse_events.py => toolkit/components/telemetry/build_scripts/parsers/parse_events.py
rename : toolkit/components/telemetry/parse_histograms.py => toolkit/components/telemetry/build_scripts/parsers/parse_histograms.py
rename : toolkit/components/telemetry/parse_scalars.py => toolkit/components/telemetry/build_scripts/parsers/parse_scalars.py
rename : toolkit/components/telemetry/shared_telemetry_utils.py => toolkit/components/telemetry/build_scripts/parsers/shared_telemetry_utils.py
rename : toolkit/components/telemetry/EventInfo.h => toolkit/components/telemetry/core/EventInfo.h
rename : toolkit/components/telemetry/ScalarInfo.h => toolkit/components/telemetry/core/ScalarInfo.h
rename : toolkit/components/telemetry/Telemetry.cpp => toolkit/components/telemetry/core/Telemetry.cpp
rename : toolkit/components/telemetry/Telemetry.h => toolkit/components/telemetry/core/Telemetry.h
rename : toolkit/components/telemetry/TelemetryCommon.cpp => toolkit/components/telemetry/core/TelemetryCommon.cpp
rename : toolkit/components/telemetry/TelemetryCommon.h => toolkit/components/telemetry/core/TelemetryCommon.h
rename : toolkit/components/telemetry/TelemetryEvent.cpp => toolkit/components/telemetry/core/TelemetryEvent.cpp
rename : toolkit/components/telemetry/TelemetryEvent.h => toolkit/components/telemetry/core/TelemetryEvent.h
rename : toolkit/components/telemetry/TelemetryHistogram.cpp => toolkit/components/telemetry/core/TelemetryHistogram.cpp
rename : toolkit/components/telemetry/TelemetryHistogram.h => toolkit/components/telemetry/core/TelemetryHistogram.h
rename : toolkit/components/telemetry/TelemetryScalar.cpp => toolkit/components/telemetry/core/TelemetryScalar.cpp
rename : toolkit/components/telemetry/TelemetryScalar.h => toolkit/components/telemetry/core/TelemetryScalar.h
rename : toolkit/components/telemetry/ipc/TelemetryComms.h => toolkit/components/telemetry/core/ipc/TelemetryComms.h
rename : toolkit/components/telemetry/ipc/TelemetryIPC.cpp => toolkit/components/telemetry/core/ipc/TelemetryIPC.cpp
rename : toolkit/components/telemetry/ipc/TelemetryIPC.h => toolkit/components/telemetry/core/ipc/TelemetryIPC.h
rename : toolkit/components/telemetry/ipc/TelemetryIPCAccumulator.cpp => toolkit/components/telemetry/core/ipc/TelemetryIPCAccumulator.cpp
rename : toolkit/components/telemetry/ipc/TelemetryIPCAccumulator.h => toolkit/components/telemetry/core/ipc/TelemetryIPCAccumulator.h
rename : toolkit/components/telemetry/nsITelemetry.idl => toolkit/components/telemetry/core/nsITelemetry.idl
rename : toolkit/components/telemetry/CombinedStacks.cpp => toolkit/components/telemetry/other/CombinedStacks.cpp
rename : toolkit/components/telemetry/CombinedStacks.h => toolkit/components/telemetry/other/CombinedStacks.h
rename : toolkit/components/telemetry/GCTelemetry.jsm => toolkit/components/telemetry/other/GCTelemetry.jsm
rename : toolkit/components/telemetry/KeyedStackCapturer.cpp => toolkit/components/telemetry/other/KeyedStackCapturer.cpp
rename : toolkit/components/telemetry/KeyedStackCapturer.h => toolkit/components/telemetry/other/KeyedStackCapturer.h
rename : toolkit/components/telemetry/ProcessedStack.cpp => toolkit/components/telemetry/other/ProcessedStack.cpp
rename : toolkit/components/telemetry/ProcessedStack.h => toolkit/components/telemetry/other/ProcessedStack.h
rename : toolkit/components/telemetry/TelemetryIOInterposeObserver.cpp => toolkit/components/telemetry/other/TelemetryIOInterposeObserver.cpp
rename : toolkit/components/telemetry/TelemetryIOInterposeObserver.h => toolkit/components/telemetry/other/TelemetryIOInterposeObserver.h
rename : toolkit/components/telemetry/UITelemetry.jsm => toolkit/components/telemetry/other/UITelemetry.jsm
rename : toolkit/components/telemetry/WebrtcTelemetry.cpp => toolkit/components/telemetry/other/WebrtcTelemetry.cpp
rename : toolkit/components/telemetry/WebrtcTelemetry.h => toolkit/components/telemetry/other/WebrtcTelemetry.h
rename : toolkit/components/telemetry/TelemetryEventPing.jsm => toolkit/components/telemetry/pings/EventPing.jsm
rename : toolkit/components/telemetry/TelemetryHealthPing.jsm => toolkit/components/telemetry/pings/HealthPing.jsm
rename : toolkit/components/telemetry/TelemetryModules.jsm => toolkit/components/telemetry/pings/ModulesPing.jsm
rename : toolkit/components/telemetry/TelemetrySession.jsm => toolkit/components/telemetry/pings/TelemetrySession.jsm
rename : toolkit/components/telemetry/UpdatePing.jsm => toolkit/components/telemetry/pings/UpdatePing.jsm
2018-09-04 16:54:54 +03:00
shindli
7d53ec126f Backed out changeset f7c41ba8b88d (bug 1484611) for bustages in /builds/worker/workspace/build/src/toolkit/components/telemetry/tests/python/test_gen_scalar_data_json.py on a CLOSED TREE
--HG--
rename : toolkit/components/telemetry/other/CombinedStacks.cpp => toolkit/components/telemetry/CombinedStacks.cpp
rename : toolkit/components/telemetry/other/CombinedStacks.h => toolkit/components/telemetry/CombinedStacks.h
rename : toolkit/components/telemetry/core/EventInfo.h => toolkit/components/telemetry/EventInfo.h
rename : toolkit/components/telemetry/other/GCTelemetry.jsm => toolkit/components/telemetry/GCTelemetry.jsm
rename : toolkit/components/telemetry/other/KeyedStackCapturer.cpp => toolkit/components/telemetry/KeyedStackCapturer.cpp
rename : toolkit/components/telemetry/other/KeyedStackCapturer.h => toolkit/components/telemetry/KeyedStackCapturer.h
rename : toolkit/components/telemetry/other/ProcessedStack.cpp => toolkit/components/telemetry/ProcessedStack.cpp
rename : toolkit/components/telemetry/other/ProcessedStack.h => toolkit/components/telemetry/ProcessedStack.h
rename : toolkit/components/telemetry/core/ScalarInfo.h => toolkit/components/telemetry/ScalarInfo.h
rename : toolkit/components/telemetry/core/Telemetry.cpp => toolkit/components/telemetry/Telemetry.cpp
rename : toolkit/components/telemetry/core/Telemetry.h => toolkit/components/telemetry/Telemetry.h
rename : toolkit/components/telemetry/app/TelemetryArchive.jsm => toolkit/components/telemetry/TelemetryArchive.jsm
rename : toolkit/components/telemetry/core/TelemetryCommon.cpp => toolkit/components/telemetry/TelemetryCommon.cpp
rename : toolkit/components/telemetry/core/TelemetryCommon.h => toolkit/components/telemetry/TelemetryCommon.h
rename : toolkit/components/telemetry/app/TelemetryController.jsm => toolkit/components/telemetry/TelemetryController.jsm
rename : toolkit/components/telemetry/app/TelemetryEnvironment.jsm => toolkit/components/telemetry/TelemetryEnvironment.jsm
rename : toolkit/components/telemetry/core/TelemetryEvent.cpp => toolkit/components/telemetry/TelemetryEvent.cpp
rename : toolkit/components/telemetry/core/TelemetryEvent.h => toolkit/components/telemetry/TelemetryEvent.h
rename : toolkit/components/telemetry/pings/EventPing.jsm => toolkit/components/telemetry/TelemetryEventPing.jsm
rename : toolkit/components/telemetry/pings/HealthPing.jsm => toolkit/components/telemetry/TelemetryHealthPing.jsm
rename : toolkit/components/telemetry/core/TelemetryHistogram.cpp => toolkit/components/telemetry/TelemetryHistogram.cpp
rename : toolkit/components/telemetry/core/TelemetryHistogram.h => toolkit/components/telemetry/TelemetryHistogram.h
rename : toolkit/components/telemetry/other/TelemetryIOInterposeObserver.cpp => toolkit/components/telemetry/TelemetryIOInterposeObserver.cpp
rename : toolkit/components/telemetry/other/TelemetryIOInterposeObserver.h => toolkit/components/telemetry/TelemetryIOInterposeObserver.h
rename : toolkit/components/telemetry/pings/ModulesPing.jsm => toolkit/components/telemetry/TelemetryModules.jsm
rename : toolkit/components/telemetry/app/TelemetryReportingPolicy.jsm => toolkit/components/telemetry/TelemetryReportingPolicy.jsm
rename : toolkit/components/telemetry/core/TelemetryScalar.cpp => toolkit/components/telemetry/TelemetryScalar.cpp
rename : toolkit/components/telemetry/core/TelemetryScalar.h => toolkit/components/telemetry/TelemetryScalar.h
rename : toolkit/components/telemetry/app/TelemetrySend.jsm => toolkit/components/telemetry/TelemetrySend.jsm
rename : toolkit/components/telemetry/pings/TelemetrySession.jsm => toolkit/components/telemetry/TelemetrySession.jsm
rename : toolkit/components/telemetry/app/TelemetryStopwatch.jsm => toolkit/components/telemetry/TelemetryStopwatch.jsm
rename : toolkit/components/telemetry/app/TelemetryStorage.jsm => toolkit/components/telemetry/TelemetryStorage.jsm
rename : toolkit/components/telemetry/app/TelemetryTimestamps.jsm => toolkit/components/telemetry/TelemetryTimestamps.jsm
rename : toolkit/components/telemetry/app/TelemetryUtils.jsm => toolkit/components/telemetry/TelemetryUtils.jsm
rename : toolkit/components/telemetry/other/UITelemetry.jsm => toolkit/components/telemetry/UITelemetry.jsm
rename : toolkit/components/telemetry/pings/UpdatePing.jsm => toolkit/components/telemetry/UpdatePing.jsm
rename : toolkit/components/telemetry/other/WebrtcTelemetry.cpp => toolkit/components/telemetry/WebrtcTelemetry.cpp
rename : toolkit/components/telemetry/other/WebrtcTelemetry.h => toolkit/components/telemetry/WebrtcTelemetry.h
rename : toolkit/components/telemetry/build_scripts/gen_event_data.py => toolkit/components/telemetry/gen_event_data.py
rename : toolkit/components/telemetry/build_scripts/gen_event_enum.py => toolkit/components/telemetry/gen_event_enum.py
rename : toolkit/components/telemetry/build_scripts/gen_histogram_data.py => toolkit/components/telemetry/gen_histogram_data.py
rename : toolkit/components/telemetry/build_scripts/gen_histogram_enum.py => toolkit/components/telemetry/gen_histogram_enum.py
rename : toolkit/components/telemetry/build_scripts/gen_histogram_phf.py => toolkit/components/telemetry/gen_histogram_phf.py
rename : toolkit/components/telemetry/build_scripts/gen_process_data.py => toolkit/components/telemetry/gen_process_data.py
rename : toolkit/components/telemetry/build_scripts/gen_process_enum.py => toolkit/components/telemetry/gen_process_enum.py
rename : toolkit/components/telemetry/build_scripts/gen_scalar_data.py => toolkit/components/telemetry/gen_scalar_data.py
rename : toolkit/components/telemetry/build_scripts/gen_scalar_enum.py => toolkit/components/telemetry/gen_scalar_enum.py
rename : toolkit/components/telemetry/core/ipc/TelemetryComms.h => toolkit/components/telemetry/ipc/TelemetryComms.h
rename : toolkit/components/telemetry/core/ipc/TelemetryIPC.cpp => toolkit/components/telemetry/ipc/TelemetryIPC.cpp
rename : toolkit/components/telemetry/core/ipc/TelemetryIPC.h => toolkit/components/telemetry/ipc/TelemetryIPC.h
rename : toolkit/components/telemetry/core/ipc/TelemetryIPCAccumulator.cpp => toolkit/components/telemetry/ipc/TelemetryIPCAccumulator.cpp
rename : toolkit/components/telemetry/core/ipc/TelemetryIPCAccumulator.h => toolkit/components/telemetry/ipc/TelemetryIPCAccumulator.h
rename : toolkit/components/telemetry/core/nsITelemetry.idl => toolkit/components/telemetry/nsITelemetry.idl
rename : toolkit/components/telemetry/build_scripts/parsers/parse_events.py => toolkit/components/telemetry/parse_events.py
rename : toolkit/components/telemetry/build_scripts/parsers/parse_histograms.py => toolkit/components/telemetry/parse_histograms.py
rename : toolkit/components/telemetry/build_scripts/parsers/parse_scalars.py => toolkit/components/telemetry/parse_scalars.py
rename : toolkit/components/telemetry/build_scripts/parsers/shared_telemetry_utils.py => toolkit/components/telemetry/shared_telemetry_utils.py
2018-09-04 16:24:35 +03:00
Alessio Placitelli
f5298ed4fe Bug 1484611 - Rename and fixup test files. r=chutten,janerik
We settled on a new naming scheme for ping implementation: {name}Ping.jsm.
This changes the test filenames as well and fixup the path
used to reference the JSM files.

Depends on D4427

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

--HG--
rename : toolkit/components/telemetry/tests/unit/test_TelemetryEventPing.js => toolkit/components/telemetry/tests/unit/test_EventPing.js
rename : toolkit/components/telemetry/tests/unit/test_TelemetryEventPing_disabled.js => toolkit/components/telemetry/tests/unit/test_EventPing_disabled.js
rename : toolkit/components/telemetry/tests/unit/test_TelemetryHealthPing.js => toolkit/components/telemetry/tests/unit/test_HealthPing.js
rename : toolkit/components/telemetry/tests/unit/test_TelemetryModules.js => toolkit/components/telemetry/tests/unit/test_ModulesPing.js
extra : moz-landing-system : lando
2018-09-03 10:15:26 +00:00
Alessio Placitelli
f8234320a3 Bug 1484611 - Re-organize the telemetry module layout. r=chutten,janerik
This patch organizes the Telemetry files according to a new
directory layout, which makes the top level dir less cluttered.
For a comprehensive discussion about the new layout, see
the bug comments.
Additionally, the build script and a few Python and C++ files
are adjusted for dealing with the new directory layout.

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

--HG--
rename : toolkit/components/telemetry/TelemetryArchive.jsm => toolkit/components/telemetry/app/TelemetryArchive.jsm
rename : toolkit/components/telemetry/TelemetryController.jsm => toolkit/components/telemetry/app/TelemetryController.jsm
rename : toolkit/components/telemetry/TelemetryEnvironment.jsm => toolkit/components/telemetry/app/TelemetryEnvironment.jsm
rename : toolkit/components/telemetry/TelemetryReportingPolicy.jsm => toolkit/components/telemetry/app/TelemetryReportingPolicy.jsm
rename : toolkit/components/telemetry/TelemetrySend.jsm => toolkit/components/telemetry/app/TelemetrySend.jsm
rename : toolkit/components/telemetry/TelemetryStopwatch.jsm => toolkit/components/telemetry/app/TelemetryStopwatch.jsm
rename : toolkit/components/telemetry/TelemetryStorage.jsm => toolkit/components/telemetry/app/TelemetryStorage.jsm
rename : toolkit/components/telemetry/TelemetryTimestamps.jsm => toolkit/components/telemetry/app/TelemetryTimestamps.jsm
rename : toolkit/components/telemetry/TelemetryUtils.jsm => toolkit/components/telemetry/app/TelemetryUtils.jsm
rename : toolkit/components/telemetry/gen_event_data.py => toolkit/components/telemetry/build_scripts/gen_event_data.py
rename : toolkit/components/telemetry/gen_event_enum.py => toolkit/components/telemetry/build_scripts/gen_event_enum.py
rename : toolkit/components/telemetry/gen_histogram_data.py => toolkit/components/telemetry/build_scripts/gen_histogram_data.py
rename : toolkit/components/telemetry/gen_histogram_enum.py => toolkit/components/telemetry/build_scripts/gen_histogram_enum.py
rename : toolkit/components/telemetry/gen_histogram_phf.py => toolkit/components/telemetry/build_scripts/gen_histogram_phf.py
rename : toolkit/components/telemetry/gen_process_data.py => toolkit/components/telemetry/build_scripts/gen_process_data.py
rename : toolkit/components/telemetry/gen_process_enum.py => toolkit/components/telemetry/build_scripts/gen_process_enum.py
rename : toolkit/components/telemetry/gen_scalar_data.py => toolkit/components/telemetry/build_scripts/gen_scalar_data.py
rename : toolkit/components/telemetry/gen_scalar_enum.py => toolkit/components/telemetry/build_scripts/gen_scalar_enum.py
rename : toolkit/components/telemetry/parse_events.py => toolkit/components/telemetry/build_scripts/parsers/parse_events.py
rename : toolkit/components/telemetry/parse_histograms.py => toolkit/components/telemetry/build_scripts/parsers/parse_histograms.py
rename : toolkit/components/telemetry/parse_scalars.py => toolkit/components/telemetry/build_scripts/parsers/parse_scalars.py
rename : toolkit/components/telemetry/shared_telemetry_utils.py => toolkit/components/telemetry/build_scripts/parsers/shared_telemetry_utils.py
rename : toolkit/components/telemetry/EventInfo.h => toolkit/components/telemetry/core/EventInfo.h
rename : toolkit/components/telemetry/ScalarInfo.h => toolkit/components/telemetry/core/ScalarInfo.h
rename : toolkit/components/telemetry/Telemetry.cpp => toolkit/components/telemetry/core/Telemetry.cpp
rename : toolkit/components/telemetry/Telemetry.h => toolkit/components/telemetry/core/Telemetry.h
rename : toolkit/components/telemetry/TelemetryCommon.cpp => toolkit/components/telemetry/core/TelemetryCommon.cpp
rename : toolkit/components/telemetry/TelemetryCommon.h => toolkit/components/telemetry/core/TelemetryCommon.h
rename : toolkit/components/telemetry/TelemetryEvent.cpp => toolkit/components/telemetry/core/TelemetryEvent.cpp
rename : toolkit/components/telemetry/TelemetryEvent.h => toolkit/components/telemetry/core/TelemetryEvent.h
rename : toolkit/components/telemetry/TelemetryHistogram.cpp => toolkit/components/telemetry/core/TelemetryHistogram.cpp
rename : toolkit/components/telemetry/TelemetryHistogram.h => toolkit/components/telemetry/core/TelemetryHistogram.h
rename : toolkit/components/telemetry/TelemetryScalar.cpp => toolkit/components/telemetry/core/TelemetryScalar.cpp
rename : toolkit/components/telemetry/TelemetryScalar.h => toolkit/components/telemetry/core/TelemetryScalar.h
rename : toolkit/components/telemetry/ipc/TelemetryComms.h => toolkit/components/telemetry/core/ipc/TelemetryComms.h
rename : toolkit/components/telemetry/ipc/TelemetryIPC.cpp => toolkit/components/telemetry/core/ipc/TelemetryIPC.cpp
rename : toolkit/components/telemetry/ipc/TelemetryIPC.h => toolkit/components/telemetry/core/ipc/TelemetryIPC.h
rename : toolkit/components/telemetry/ipc/TelemetryIPCAccumulator.cpp => toolkit/components/telemetry/core/ipc/TelemetryIPCAccumulator.cpp
rename : toolkit/components/telemetry/ipc/TelemetryIPCAccumulator.h => toolkit/components/telemetry/core/ipc/TelemetryIPCAccumulator.h
rename : toolkit/components/telemetry/nsITelemetry.idl => toolkit/components/telemetry/core/nsITelemetry.idl
rename : toolkit/components/telemetry/CombinedStacks.cpp => toolkit/components/telemetry/other/CombinedStacks.cpp
rename : toolkit/components/telemetry/CombinedStacks.h => toolkit/components/telemetry/other/CombinedStacks.h
rename : toolkit/components/telemetry/GCTelemetry.jsm => toolkit/components/telemetry/other/GCTelemetry.jsm
rename : toolkit/components/telemetry/KeyedStackCapturer.cpp => toolkit/components/telemetry/other/KeyedStackCapturer.cpp
rename : toolkit/components/telemetry/KeyedStackCapturer.h => toolkit/components/telemetry/other/KeyedStackCapturer.h
rename : toolkit/components/telemetry/ProcessedStack.cpp => toolkit/components/telemetry/other/ProcessedStack.cpp
rename : toolkit/components/telemetry/ProcessedStack.h => toolkit/components/telemetry/other/ProcessedStack.h
rename : toolkit/components/telemetry/TelemetryIOInterposeObserver.cpp => toolkit/components/telemetry/other/TelemetryIOInterposeObserver.cpp
rename : toolkit/components/telemetry/TelemetryIOInterposeObserver.h => toolkit/components/telemetry/other/TelemetryIOInterposeObserver.h
rename : toolkit/components/telemetry/UITelemetry.jsm => toolkit/components/telemetry/other/UITelemetry.jsm
rename : toolkit/components/telemetry/WebrtcTelemetry.cpp => toolkit/components/telemetry/other/WebrtcTelemetry.cpp
rename : toolkit/components/telemetry/WebrtcTelemetry.h => toolkit/components/telemetry/other/WebrtcTelemetry.h
rename : toolkit/components/telemetry/TelemetryEventPing.jsm => toolkit/components/telemetry/pings/EventPing.jsm
rename : toolkit/components/telemetry/TelemetryHealthPing.jsm => toolkit/components/telemetry/pings/HealthPing.jsm
rename : toolkit/components/telemetry/TelemetryModules.jsm => toolkit/components/telemetry/pings/ModulesPing.jsm
rename : toolkit/components/telemetry/TelemetrySession.jsm => toolkit/components/telemetry/pings/TelemetrySession.jsm
rename : toolkit/components/telemetry/UpdatePing.jsm => toolkit/components/telemetry/pings/UpdatePing.jsm
extra : moz-landing-system : lando
2018-09-03 10:15:21 +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
Jan-Erik Rediger
e71a066abf Bug 1477213 - Replace cpp_guard with operating_systems for compile-time OS check. r=gfritzsche
`cpp_guard` was only used for operating system checks.
We can check this value in our Python build scripts and exclude histograms that shouldn't be included for the target OS.

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

--HG--
extra : moz-landing-system : lando
2018-08-27 14:23:34 +00:00
Chris H-C
d81becdb91 bug 1482466 - Ensure subsession activeTicks are correct in simpleMeasurements r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D3128

--HG--
extra : moz-landing-system : lando
2018-08-14 12:23:49 +00:00
Csoregi Natalia
32cdffd7a4 Backed out changeset 6b4359d502be (bug 1482466) for test_TelemetrySession_activeTicks.js failures. CLOSED TREE 2018-08-13 18:15:40 +03:00
Chris H-C
81200add33 bug 1482466 - Ensure subsession activeTicks are correct in simpleMeasurements r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D3128

--HG--
extra : moz-landing-system : lando
2018-08-13 13:58:40 +00:00
Gabriele Svelto
15adf94f4d Bug 1348273 - Convert crash annotations into a machine-readable list of constants; r=ted.mielczarek,njn,dholbert,mak,cpearce,mcmanus,froydnj,Dexter,jrmuizel,jchen,jimm,bz,surkov
This introduces the machinery needed to generate crash annotations from a YAML
file. The relevant C++ functions are updated to take a typed enum. JavaScript
calls are unaffected but they will throw if the string argument does not
correspond to one of the known entries in the C++ enum. The existing whitelists
and blacklists of annotations are also generated from the YAML file and all
duplicate code related to them has been consolidated. Once written out to the
.extra file the annotations are converted in string form and are no different
than the existing ones.

All existing annotations have been included in the list (and some obsolete ones
have been removed) and all call sites have been updated including tests where
appropriate.

--HG--
extra : source : 4f6c43f2830701ec5552e08e3f1b06fe6d045860
2018-07-05 15:42:11 +02: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
Chris H-C
af95ada6ba bug 1480204 - Record to a histogram counts of event registration errors, by type r=janerik
MozReview-Commit-ID: Ht3E4IcqAw8

bug 1480204 - Test registration failure probe r?janerik

MozReview-Commit-ID: 7PRdHJ9sDIg

bug 1480204 - Record when event recording fails r?janerik

MozReview-Commit-ID: 9m0GK4E6LNH

bug 1480204 - Test recording failure probe r?janerik

MozReview-Commit-ID: 2W9RQuGuklL

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

--HG--
extra : moz-landing-system : lando
2018-08-03 17:11:47 +00:00
Petru
f433bf7751 Bug 1471144 - Add gtest coverage for 'CombinedStacks' . r=janerik
Tested the functionality of 'CombinedStacks'. Added coverage for 'AddStack' and 'RemoveStack' methods.

MozReview-Commit-ID: CxBZHHZMN3z

--HG--
extra : rebase_source : 72ded4aebcbcd7b6a9e1b510326f64670b7b0f55
2018-07-26 01:00:06 +03:00
Mark Banner
29ebe3f3a8 Bug 1478308 - Remove unnecessary ChromeUtils.imports in toolkit/ r=mikedeboer
MozReview-Commit-ID: 45Tfs2ZZ06r

--HG--
extra : rebase_source : f76738612cb5f78787e9fae8f8c563d5ff5f33d1
2018-07-25 11:00:35 +01:00
Narcis Beleuzu
d47c829065 Backed out 4 changesets (bug 1478308) for ESlint failure on AttributionCode.jsm. CLOSED TREE
Backed out changeset a809b45ff49b (bug 1478308)
Backed out changeset c68131530742 (bug 1478308)
Backed out changeset 0e4ba7a6dc1a (bug 1478308)
Backed out changeset 32a27f317a77 (bug 1478308)
2018-07-26 11:13:28 +03:00
Mark Banner
d95c1526b8 Bug 1478308 - Remove unnecessary ChromeUtils.imports in toolkit/ r=mikedeboer
MozReview-Commit-ID: 45Tfs2ZZ06r

--HG--
extra : rebase_source : 10f2f734c883a1ac85b5dee21df119a4c6ae2898
2018-07-25 11:00:35 +01:00
Petru Gurita
28070d12c4 Bug 1473520 - Add test coverage for applying recorded scalar actions. r=janerik
Created two new test coverages, `WrongscalarOperator' and 'WrongKeyedScalarOperator', that test scalar operations on wrong type of scalars.

MozReview-Commit-ID: 8iI8NaZlmfg

--HG--
extra : rebase_source : ec0fed2b18a729d92fe9cff32ae27c1304427a0f
2018-07-17 23:01:25 +03:00
Petru Gurita
20de52549b Bug 1473520 - Add test coverage for applying recorded scalar actions. r=janerik
Created two new test coverages, `WrongscalarOperator' and 'WrongKeyedScalarOperator', that test scalar operations on wrong type of scalars.

MozReview-Commit-ID: 6FIMqRi0dgk

--HG--
extra : rebase_source : dca08d8580b86eded03ca48e28f9b402ae3a1f7d
2018-07-16 23:32:01 +03:00
Kirk Steuber
da107c225e Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in the test harness r=ato,chutten,jmaher,lina
MozReview-Commit-ID: GCGKQ5QCC7o

--HG--
extra : rebase_source : ba135c7d285987fd030fef4e18a5aa701a43cdba
extra : intermediate-source : e6c89a0ff0c7a7e7cd1c028e49660bab0416a531
extra : source : 646080a591c0d2365d6e8f4a493607fa3fff86c9
2018-05-22 09:14:19 -07:00
Andreea Pavel
1e8d2e6f7d Backed out 7 changesets (bug 1420514) for breaking bc on different files on a CLOSED TREE
Backed out changeset 5a46a221b6e8 (bug 1420514)
Backed out changeset 48ed6dfe8772 (bug 1420514)
Backed out changeset 01bf643c77e5 (bug 1420514)
Backed out changeset 5791b17ccb82 (bug 1420514)
Backed out changeset 416e398d942f (bug 1420514)
Backed out changeset de4a4592dbd9 (bug 1420514)
Backed out changeset d3399edf0197 (bug 1420514)
2018-07-12 21:22:32 +03:00
Kirk Steuber
35d8c30dbb Bug 1420514 - Replace app.update.enabled with app.update.disabledForTesting in the test harness r=ato,chutten,jmaher,lina
MozReview-Commit-ID: GCGKQ5QCC7o

--HG--
extra : rebase_source : e38cf587711192c3020cd9ac6a39cdbd97d2600b
extra : source : 646080a591c0d2365d6e8f4a493607fa3fff86c9
2018-05-22 09:14:19 -07:00
Jan-Erik Rediger
51cf911a75 Bug 1445921 - Test for canary client id in received pings. r=Dexter
MozReview-Commit-ID: 8aPTGmYv6Wf

Depends on D1948

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

--HG--
extra : moz-landing-system : lando
2018-07-10 12:54:53 +00:00
Jan-Erik Rediger
9c43966e5b Bug 1445921 - Implement and test new optout ping logic. r=Dexter,chutten
This follows the steps from the specification and also ensures sending
the optout ping is only tried once and discarded if that fails.

Depends on D1947

MozReview-Commit-ID: 99peURNq9jx

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

--HG--
extra : moz-landing-system : lando
2018-07-10 12:47:14 +00:00
Alessio Placitelli
b38a4fc76f Bug 1473525 - Add an API endpoint to wait for HCT to init. r=janerik,chutten
The HCT content library needs the chrome to broadcast the value of the
Telemetry state before it can report a reliable value. This patch adds
a way to wait for the broadcast to happen and singnal that it's ok
to read the value from canUpload.

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

--HG--
extra : moz-landing-system : lando
2018-07-10 12:42:52 +00:00
Chris H-C
1cd9afb82a bug 1460900 - Cease timing how long it takes to load pings from disk r=janerik
We introduced these measures in bug 1033860 because of the variety of different
things besides pings we were sending using Telemetry. We don't do that any more
and haven't looked at these probes in at least two years.

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

--HG--
extra : moz-landing-system : lando
2018-07-09 15:59:51 +00:00
Gurzau Raul
51fdfe5279 Backed out changeset 9912325cd073 (bug 1460900) for Linting failure on gecko/toolkit/components/telemetry/TelemetryStorage.jsm on a CLOSED TREE 2018-07-09 18:36:02 +03:00
Chris H-C
268ec922a0 bug 1460900 - Cease timing how long it takes to load pings from disk r=janerik
We introduced these measures in bug 1033860 because of the variety of different
things besides pings we were sending using Telemetry. We don't do that any more
and haven't looked at these probes in at least two years.

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

--HG--
extra : moz-landing-system : lando
2018-07-09 07:40:55 +00:00
Gurzau Raul
dd9a507efe Backed out 4 changesets (bug 1445921) for Linting failure on components/telemetry/tests/unit/test_TelemetryController.js on a CLOSED TREE
Backed out changeset b5bff80b9d18 (bug 1445921)
Backed out changeset b859e76fcc67 (bug 1445921)
Backed out changeset 7c23db3a5f53 (bug 1445921)
Backed out changeset f3ef58bc6b38 (bug 1445921)

--HG--
extra : rebase_source : 00bc0e17ea782a73c5067c1f8d615fc7b80bbabb
2018-07-09 13:06:17 +03:00
Jan-Erik Rediger
e3f1af33ec Bug 1445921 - Test for canary client id in received pings. r=Dexter
MozReview-Commit-ID: 8aPTGmYv6Wf

Depends on D1948

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

--HG--
extra : moz-landing-system : lando
2018-07-04 15:58:43 +00:00
Jan-Erik Rediger
5d51186ddc Bug 1445921 - Implement and test new optout ping logic. r=Dexter,chutten
This follows the steps from the specification and also ensures sending
the optout ping is only tried once and discarded if that fails.

Depends on D1947

MozReview-Commit-ID: 99peURNq9jx

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

--HG--
extra : moz-landing-system : lando
2018-07-06 15:12:45 +00:00
Christian Holler
535dd9dbc9 Bug 1471647 - Add a pref to override the Telemetry update channel. r=Dexter
MozReview-Commit-ID: 4pRYWT8R8bB

--HG--
extra : rebase_source : 4616ea0374139d7424c88a2d557c98645d7b46a1
2018-06-28 15:05:11 +02:00
Issei Horie
a016c0795d Bug 1469522: Remove savedPings from simpleMeasurements. r=Dexter 2018-06-24 22:10:19 +09:00
Kiran
47c93cc6da bug 1427765 - Add gtest coverage for accumulating using strings r=chutten
MozReview-Commit-ID: CSXigsG8TI0

--HG--
extra : rebase_source : 0e0ff739c4ea8f13f8aab06af2b134691a1f4f84
2018-06-28 15:10:37 -04:00
Andrew Halberstadt
9435736ade Bug 1471620 - Skip python-tests locally that don't run with python 3 in CI r=davehunt
This will make sure that when running |mach python-test --python 3| locally,
we only run the tests that also run in CI with python 3 (and therefore pass
presumably).

MozReview-Commit-ID: 3OBr9yLSlSq

--HG--
extra : rebase_source : 456340d0ecdddf1078f2b5b4ebb1eddf3813b26a
2018-06-27 11:10:02 -04:00
Chris H-C
5e61eced35 bug 1463439 - Add a pref to enable 'event' ping. Defaults to true, except for GV. r=Dexter
When it's false we also disable collecting events completely, in case the
reason we're disabling it is due to storage issues.

GeckoView doesn't presently support Events, so the 'event' ping is disabled by
default for that platform.

MozReview-Commit-ID: 9eKAtRiuER0

--HG--
extra : rebase_source : 71b3c9ff802420ff21941656c3d848c6d320578d
2018-05-29 12:24:02 -04:00
Arjun Krishna Babu
7a3711075a Bug 1469233 - remove pingsOverdue from simpleMeasurements; r=Dexter
pingsOverdue is a telemetry-specific data field that is not used anymore.
Therefore it is being removed from both the docs and TelemetrySession.jsm

The logic that exports and computes the overdue pings count, and all related
code, is also removed.

Associated test failure (due to performing the above) is fixed by removing the
offending test code.

MozReview-Commit-ID: DZUapvZbC9U

--HG--
extra : rebase_source : b5207495f19d23d0a9f57ba62a8c6c6872958b49
2018-06-20 18:51:09 +05:30
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
Chris H-C
e0f71a0137 bug 1460595 - Test the 'event' ping r=Dexter
MozReview-Commit-ID: 2SJCgXOQNEW

--HG--
extra : rebase_source : 8f281bbe4c612de001e8d86025e66b4a2b6859e8
2018-05-15 16:43:28 -04:00
Chris H-C
bb95e8c68b bug 1460595 - Test "event" ping event storage r=Dexter,janerik
I added checks that the new topic was appropriately notified and
that storage doesn't truncate upon hitting the limit, also covering the
case when there is a specified event limit for return.

MozReview-Commit-ID: FoSVvi7XSeM

--HG--
extra : rebase_source : 97ccd213985e0979f832c9f2956bf1e9d6bbfb74
2018-05-11 16:13:18 -04:00
Gregory Szorc
1705480c26 Bug 1469999 - Use yaml.safe_load() in telemetry test; r=chutten
yaml.load() can lead to arbitrary code execution because it isn't
secure by default and allows special YAML syntax.

While it shouldn't be a problem here, I'm trying to get rid of all
yaml.load() calls so we can add a lint to ban the practice.

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

--HG--
extra : rebase_source : eed31255da88254cb248b51c5ab917bcae76f1db
extra : histedit_source : 4a681465ec8434e92dc9164a759eb521c10b9e79
2018-06-20 14:34:15 -07: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
Jan-Erik Rediger
4188b33ac3 Bug 1466857 - Avoid sending an update ping if Telemetry is disabled. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D1596
2018-06-20 13:16:19 +00:00
Jan-Erik Rediger
ef61efe67d Bug 1466490 - Add multi-process xpcshell test for scalar semantics. r=Dexter
This follows the documentation example:

* Scalar deserialization is started
* “test” scalar is incremented by “10” by the application -> The operation [test, add, 10] is recorded into the list.
* The state of the “test” scalar is loaded off the persistence file, and the value “14” is set.
* Deserialization is finished and the pending operations are applied.
* The “test” scalar is incremented by “10”, the value is now “24”

It does that in both the parent and the content process.

MozReview-Commit-ID: CnzDcJ5o7jJ

--HG--
extra : rebase_source : cae5297f98b56b1a8fedad604d905e818c66e442
2018-06-14 16:05:27 -07:00
Jan-Erik Rediger
89583e171e Bug 1466490 - Set Telemetry preference on startup. r=Dexter
MozReview-Commit-ID: 1ac74K1Leoy

--HG--
extra : rebase_source : 3ee047b15d5a5940aeaa75a7b4ea23277e8eff94
2018-06-19 16:16:58 +02:00
Jan-Erik Rediger
81b833210c Bug 1466490 - Extract common test functionality into a header. r=Dexter
MozReview-Commit-ID: 81Gj0FyCBqG

--HG--
extra : rebase_source : 8805e892f1fe1d57e8aeb672f4d26817242d981e
2018-06-15 09:49:02 -07:00
Kris Maglione
0506a56751 Bug 1468362: Remove ADDON_SINGING buildconfig setting. r=aswan
MozReview-Commit-ID: MeD4VQPVf6

--HG--
extra : rebase_source : c40ed5b7d194290332f0aa77deaf91812de48c42
extra : histedit_source : 34a69d708597fcdbfb9bffccd7dbf28c9d1a42a7
2018-06-12 13:56:58 -04:00
Alessio Placitelli
24270848ee Bug 1468809 - Do not snapshot expired keyed histograms. r=chutten,janerik
This patch changes the snapshotting code for keyed histograms
so that requesting a snapshot does not report expired histograms.

MozReview-Commit-ID: GDiw6yOcF8J

--HG--
extra : rebase_source : 30e10d7b1e63b6eef263066a49b8c4dea0c140e0
2018-06-15 19:31:26 +02:00
Cosmin Sabou
7a8929b71a Backed out 3 changesets (bug 1466490) for ESlint failures on test_GeckoView_ScalarSemantics. CLOSED TREE
Backed out changeset 5f13ed9de8a3 (bug 1466490)
Backed out changeset 95048dd368eb (bug 1466490)
Backed out changeset e3891caf027f (bug 1466490)
2018-06-15 22:34:01 +03:00
Jan-Erik Rediger
98131cebc7 Bug 1466490 - Add multi-process xpcshell test for scalar semantics. r=Dexter
This follows the documentation example:

* Scalar deserialization is started
* “test” scalar is incremented by “10” by the application -> The operation [test, add, 10] is recorded into the list.
* The state of the “test” scalar is loaded off the persistence file, and the value “14” is set.
* Deserialization is finished and the pending operations are applied.
* The “test” scalar is incremented by “10”, the value is now “24”

It does that in both the parent and the content process.

MozReview-Commit-ID: FSIkuW2xYjD

--HG--
extra : rebase_source : cae0ecb98a0cea08dc56c38f8be1c6ff2341cc5e
2018-06-14 16:05:27 -07:00
Jan-Erik Rediger
a549b4247f Bug 1466490 - Extract common test functionality into a header. r=Dexter
MozReview-Commit-ID: 81Gj0FyCBqG

--HG--
extra : rebase_source : 8805e892f1fe1d57e8aeb672f4d26817242d981e
2018-06-15 09:49:02 -07:00
Alessio Placitelli
8a526f5234 Bug 1467705 - Add test coverage for histogram packing routines. r=chutten
MozReview-Commit-ID: LcGGQzYpRGJ

--HG--
extra : rebase_source : 778db35a30f776de5329fa29b677c36214864728
2018-06-14 20:51:10 +02:00
Narcis Beleuzu
8aa6325a89 Merge inbound to mozilla-central. a=merge 2018-06-14 00:52:57 +03:00
Joel Maher
1ef32bf5c6 Bug 1405428 - skip-if = verify on xpcshell tests which do not pass test-verify. r=gbrown 2018-06-13 11:34:40 -04:00
Alessio Placitelli
86853086bd Bug 1461965 - Add GeckoView test coverage for content histograms. r=chutten,janerik
This patch uses the GeckoView testing IDL interface and introduces a test
to verify that content histograms are correctly persisted and unpersisted.

MozReview-Commit-ID: 3Ja0hOTvEki

--HG--
extra : rebase_source : ad4288e988565391eec39fd82ab7f6ab6bb6ee06
2018-06-05 17:01:09 +02:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Bharat Raghunathan
9ad8a95306 Bug 1463183 - Remove all instances of isUniversalBinary since we no longer build universal binaries for macOS r=spohl
MozReview-Commit-ID: FZfVrYtEo13

--HG--
extra : rebase_source : 1ae3d3e3d97255643372b41d0c8a7bdd8ed5537a
2018-05-31 20:04:23 +05:30
Jan-Erik Rediger
fc126e6baa Bug 1463694 - Allow dynamic builtin events to overwrite existing events on registration. r=chutten
This means that during a normal "mach build faster" build all the events
will be overwritten, as the generated EventArtifactsDefinitions.json
contains all events from the Events.yaml it was generated from.

Real dynamic events follow similar code paths internally.
We also ensure they trigger the right code path and don't overwrite.

MozReview-Commit-ID: JvFZfwCbjQN

--HG--
extra : rebase_source : cb6ed79afa678f9f0ef78a01c6cf5335b96c39d0
2018-05-29 16:05:56 +02:00
Michael Kaply
c7275be13d Bug 1300209 - Remove list.txt support from search service. r=adw
MozReview-Commit-ID: CH3Pya9xdIn

--HG--
extra : rebase_source : 0b3bea75ab22f263b298b12ad742574d0e9a429e
2018-05-21 15:13:16 -05:00