Closed
Bug 1166128
Opened 10 years ago
Closed 10 years ago
Don't rely on datareporting.healthreport.uploadEnabled to control telemetry submission on Android
Categories
(Toolkit :: Telemetry, defect)
Tracking
()
RESOLVED
FIXED
mozilla41
People
(Reporter: jchen, Assigned: gfritzsche)
References
Details
(Whiteboard: [uplift])
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
gfritzsche
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
It appears we stopped getting Fennec telemetry since around the 4-18 Nightly.
One cause I see is that the "datareporting.healthreport.uploadEnabled" pref is *not* set in Fennec, but there may be other causes.
Reporter | ||
Comment 1•10 years ago
|
||
Can someone look into this, Vladan? We didn't notice this for about a month, so we should get it fixed asap.
Flags: needinfo?(vdjeric)
Comment 2•10 years ago
|
||
I don't think "datareporting.healthreport.uploadEnabled" controls the FHR system in Fennec, which is a Java background service. That said, Telemetry is not connected to that pref either, and we do depend on Gecko's Telemetry system to upload telemetry.
Flags: needinfo?(rnewman)
Comment 3•10 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #2)
> I don't think "datareporting.healthreport.uploadEnabled" controls the FHR
> system in Fennec, which is a Java background service. That said, Telemetry
> is not connected to that pref either, and we do depend on Gecko's Telemetry
> system to upload telemetry.
Unified Telemetry (FHR + Telemetry) does look at the "datareporting.healthreport.uploadEnabled" pref:
http://hg.mozilla.org/mozilla-central/annotate/4fb7ff694bf5/toolkit/components/telemetry/TelemetryController.jsm#l1186
Flags: needinfo?(vdjeric) → needinfo?(gfritzsche)
Comment 4•10 years ago
|
||
(In reply to Vladan Djeric (:vladan) -- please needinfo! from comment #3)
> Unified Telemetry (FHR + Telemetry) does look at the
> "datareporting.healthreport.uploadEnabled" pref:
>
> http://hg.mozilla.org/mozilla-central/annotate/4fb7ff694bf5/toolkit/
> components/telemetry/TelemetryController.jsm#l1186
Fennec is not using Unified Telemetry, right?
Comment 5•10 years ago
|
||
(In reply to Vladan Djeric (:vladan) -- please needinfo! from comment #3)
> Unified Telemetry (FHR + Telemetry) does look at the
> "datareporting.healthreport.uploadEnabled" pref:
Guess that's the bug then: don't do that. :D
Fennec ships Gecko's telemetry but not Gecko's FHR.
Assignee: nobody → gfritzsche
Blocks: 1069869
Status: NEW → ASSIGNED
Flags: needinfo?(rnewman)
Summary: No Fennec telemetry since 4-18 → Don't rely on datareporting.healthreport.uploadEnabled to control telemetry submission
Comment 6•10 years ago
|
||
Clearly we've specified that this is how desktop unified telemetry is supposed to behave. So what you want is an android-specific exception.
Summary: Don't rely on datareporting.healthreport.uploadEnabled to control telemetry submission → Don't rely on datareporting.healthreport.uploadEnabled to control telemetry submission on Android
Comment 7•10 years ago
|
||
(In reply to Benjamin Smedberg [:bsmedberg] from comment #6)
> Clearly we've specified that this is how desktop unified telemetry is
> supposed to behave. So what you want is an android-specific exception.
If the pref is unused for any Java FHR impl, but could be used to easily re-enable Telemetry then let's add it to mobile.js
Richard - Sound safe?
Flags: needinfo?(rnewman)
Comment 8•10 years ago
|
||
Safe for these purposes, potentially confusing for users or distributions that think they can use that pref to control health report upload on Android, or for future developers.
If you take that avenue, comment the heck out of the pref value.
Some alternate solutions:
* don't check d.h.uE if toolkit.telemetry.unified is false (which is the case for Fennec).
* introduce a second pref that can unilaterally allow telemetry upload, and check that alongside.
* don't assume that the _absence_ of d.h.uE (which I presume is the case for Fennec) means no telemetry upload. There are a few different alternatives: look for a second pref; assume true; maybe others.
Flags: needinfo?(rnewman)
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to Richard Newman [:rnewman] from comment #8)
> * don't check d.h.uE if toolkit.telemetry.unified is false (which is the
> case for Fennec).
That is what should probably happen (unless someone objects). That would also cover other uses, say Thunderbird and B2G.
Flags: needinfo?(gfritzsche)
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Comment 10•10 years ago
|
||
Looking at the implementation, this was simply a bug in the send condition check.
Attachment #8607998 -
Flags: review?(vdjeric)
Updated•10 years ago
|
Attachment #8607998 -
Flags: review?(vdjeric) → review+
Assignee | ||
Comment 11•10 years ago
|
||
A bundled try push showed android test failures: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ed63d9d3caf8
Fixed those and repushed: https://treeherder.mozilla.org/#/jobs?repo=try&revision=49e97a729591
Assignee | ||
Comment 12•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8607998 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Attachment #8608844 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 13•10 years ago
|
||
Comment 14•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox41:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Assignee | ||
Updated•9 years ago
|
status-firefox40:
--- → affected
Whiteboard: [uplift]
Assignee | ||
Comment 15•9 years ago
|
||
Comment on attachment 8608844 [details] [diff] [review]
Don't rely on datareporting.healthreport.uploadEnabled to control telemetry submission on Android
Approval Request Comment
[Feature/regressing bug #]:
Unified Telemetry, https://wiki.mozilla.org/Unified_Telemetry
This is part of the first (main) batch of uplifts to 40 to enable shipping on that train, see bug 1120356, comment 2.
[User impact if declined]:
Data & measurement insight projects delayed or blocked with direct impact on projects depending on this.
[Describe test coverage new/current, TreeHerder]:
We have good automation coverage of the feature.
We also had manual tests of the main tasks as well as confirmation of correct behavior on Nightly for the patches here.
[Risks and why]:
Low-risk - these patches are rather isolated to Telemetry and have been on Nightly for a while with no bad reports.
We intend to track on-going data quality and other issues during the 40 aurora & beta and flip the new behavior off when it doesn't meet the requirements.
[String/UUID change made/needed]:
The only string changes were to the about:telemetry page.
We decided that we can live with missing translations on that page for a cycle as that page is not exactly user-facing.
Attachment #8608844 -
Flags: approval-mozilla-aurora?
Comment 16•9 years ago
|
||
Comment on attachment 8608844 [details] [diff] [review]
Don't rely on datareporting.healthreport.uploadEnabled to control telemetry submission on Android
Unified telemetry is an important new feature. It is blocking some other projects. Taking it.
Attachment #8608844 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 17•9 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•