Closed Bug 1533879 Opened 7 years ago Closed 6 years ago

Turn off telemetry on geckoview during Raptor tests

Categories

(Testing :: Raptor, defect, P3)

Version 3
defect

Tracking

(firefox76 fixed)

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: rwood, Assigned: Bebe)

Details

Attachments

(1 file)

From an adb logcat taken from a raptor-speedometer-geckoview job it looks like geckoview is trying to ping telemetry:

03-02 15:36:16.132 5653 5669 E GeckoConsole: [JavaScript Error: "1551569776131 Toolkit.Telemetry ERROR TelemetrySend::_doPing - error making request to https://127.0.0.1/telemetry-dummy//submit/telemetry/b6984eae-5c24-4ba6-bd1e-0373f34821e6/health/Fennec/67.0a1/default/20190302214639?v=4: eUnreachable" {file: "resource://gre/modules/Log.jsm" line: 679}]
03-02 15:36:16.132 5653 5669 E GeckoConsole: append@resource://gre/modules/Log.jsm:679:12
03-02 15:36:16.132 5653 5669 E GeckoConsole: log@resource://gre/modules/Log.jsm:360:16
03-02 15:36:16.132 5653 5669 E GeckoConsole: getLoggerWithMessagePrefix/proxy.log@resource://gre/modules/Log.jsm:484:18
03-02 15:36:16.132 5653 5669 E GeckoConsole: error@resource://gre/modules/Log.jsm:368:10
03-02 15:36:16.132 5653 5669 E GeckoConsole: errorhandler@resource://gre/modules/TelemetrySend.jsm:1165:17

We should turn off telemetry (via Firefox prefs) when running Raptor so that it doesn't interfere with the performance tests.

As it looks like we modify the preference to exchange the origin URL with localhost. So at least no telemetry data is getting sent.

I think it's user_pref("toolkit.telemetry.enabled", false); what we want to set in the raptor profile by default.

Raphael, is that still the right pref to turn off telemetry?

Flags: needinfo?(rpierzina)
Priority: P2 → P3

We set "datareporting.healthreport.uploadEnabled" to False in the telemetry integration tests, see:
https://searchfox.org/mozilla-central/source/toolkit/components/telemetry/tests/marionette/tests/client/test_deletion_request_ping.py#12

Chutten, can you please confirm that is still the recommended method for disabling telemetry in Firefox?

Flags: needinfo?(rpierzina) → needinfo?(chutten)

That is indeed correct. datareporting.healthreport.uploadEnabled is the pref that coincides with the data choice user setting in `about:preferences#privacy" and is the one button you need to turn off in order to disable Firefox Telemetry (and some other things too).

(on not-Fennec products) toolkit.telemetry.enabled is, due to legacy reasons, locked based on the channels of the build and profile. (the long and complicated documentation of our prefs and what build configs mean which mean what can be found here).

We meant to clean that up after Fennec left on ESR but we unfortunately became busy with other things.

Flags: needinfo?(chutten)

Thanks Chris! Florin, to drop the amount of external connections, could one of your team work on that or at least mentor this bug?

Flags: needinfo?(fstrugariu)
Assignee: nobody → fstrugariu
Status: NEW → ASSIGNED

Added datareporting.healthreport.uploadEnabled : False to all raptor test profiles.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=a8b664f68228a97c4b37e17b4dea635176afffd8

Flags: needinfo?(fstrugariu)

@whimboo
Ran a mach raptor-test -t raptor-tp6-amazon-firefox --debug locally and took a look over about:config

datareporting.healthreport.uploadEnabled is set to true running mozilla central so it's not set in some other place for our profile.
Offcorse with this patch the pref is set to false

Flags: needinfo?(hskupin)

No need to set needinfo when you also requested feedback via phabricator some hours ago. I replied there.

Flags: needinfo?(hskupin)
Pushed by fstrugariu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aa11db74789b Turn off telemetry on geckoview during Raptor tests r=whimboo,perftest-reviewers,sparky
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: