Closed
Bug 1178456
Opened 9 years ago
Closed 9 years ago
Experiments service shouldn't use FHR prefs
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
VERIFIED
FIXED
mozilla42
People
(Reporter: benjamin, Assigned: Dexter)
References
Details
(Whiteboard: [rC] [unifiedTelemetry] [uplift3])
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
Dexter
:
review+
ritu
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
The experiments service currently uses datareporting.healthreport.service.enabled
We should check other prefs or ideally just use the helper functions in the telemetry code.
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → alessio.placitelli
Updated•9 years ago
|
Assignee | ||
Comment 1•9 years ago
|
||
This patch removes the dependency and uses Telemetry.canRecordBase to check if Telemetry is on.
Attachment #8627811 -
Flags: review?(gfritzsche)
Comment 2•9 years ago
|
||
Comment on attachment 8627811 [details] [diff] [review]
bug1178456.patch
Review of attachment 8627811 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/experiments/ExperimentsService.js
@@ +27,5 @@
> });
>
> XPCOMUtils.defineLazyGetter(
> this, "gExperimentsEnabled", () => {
> + return gPrefs.get(PREF_EXPERIMENTS_ENABLED, false) && Services.telemetry.canRecordBase;
This actually changes semantics here - experiments should only be enabled when the user opted into Telemetry.
To keep things working properly and be able to switch between old FHR and unified Telemetry, we should hang it off the right prefs:
EXPERIMENTS_ENABLED && (UNIFIED_TELEMETRY || HEALTHREPORT_ENABLED) && TELEMETRY_ENABLED
Attachment #8627811 -
Flags: review?(gfritzsche)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8627811 -
Attachment is obsolete: true
Attachment #8628218 -
Flags: review?(gfritzsche)
Comment 4•9 years ago
|
||
Comment on attachment 8628218 [details] [diff] [review]
bug1178456.patch - v2
Review of attachment 8628218 [details] [diff] [review]:
-----------------------------------------------------------------
Please take this through some basic manual testing to make sure Experiments initializes (or not) as expected.
Confirming via logging should be sufficient.
::: browser/experiments/ExperimentsService.js
@@ +35,5 @@
>
> XPCOMUtils.defineLazyGetter(
> this, "gExperimentsEnabled", () => {
> + // We can enable experiments if either unified telemetry or FHR is on, and user
> + // has opted into Telemetry.
Nits: upper-case Telemetry, "the user"
Attachment #8628218 -
Flags: review?(gfritzsche) → review+
Assignee | ||
Comment 5•9 years ago
|
||
That's what I've tested so far:
- DRS and Unified Telemetry both ON, the user opted into Telemetry -> Experiments Enabled
- DRS ON, Unified OFF, the user opted into Telemetry -> Experiments Enabled
- DRS OFF, Unified ON, the user opted into Telemetry -> Experiments Enabled
- DRS OFF, Unified OFF -> Experiments Disabled
- DRS On, Unified ON, the user didn't opt into Telemetry -> Experiments disabled
- DRS On, Unified Off, the user didn't opt into Telemetry -> Experiments disabled
Attachment #8628218 -
Attachment is obsolete: true
Attachment #8628228 -
Flags: review+
Assignee | ||
Comment 6•9 years ago
|
||
Comment 8•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Updated•9 years ago
|
Whiteboard: [rc5] [unifiedTelemetry] [uplift2]
Updated•9 years ago
|
status-firefox40:
--- → wontfix
status-firefox41:
--- → affected
Whiteboard: [rc5] [unifiedTelemetry] [uplift2] → [rC] [unifiedTelemetry] [uplift3]
Comment 9•9 years ago
|
||
Comment on attachment 8628228 [details] [diff] [review]
bug1178456.patch - v3
Approval Request Comment
[Feature/regressing bug #]:
This is part of the uplift3 batch for the unified Telemetry project: http://bit.ly/1TCl4r8
This is targetting 41 now and these are the last minor "feature" patches blocking shipping - any further patches will be fixes for data quality etc. with very limited scope & impact.
[User impact if declined]:
Unified Telemetry can't ship.
This is a fix needed to keep Telemetry Experiments working.
[Describe test coverage new/current, TreeHerder]:
This has good automated test-coverage.
[Risks and why]:
Low-risk, well understood small behavior change limited to Experiments code.
[String/UUID change made/needed]:
No string changes.
Attachment #8628228 -
Flags: approval-mozilla-aurora?
Comment on attachment 8628228 [details] [diff] [review]
bug1178456.patch - v3
Seems safe to uplift as it has been in m-c for 3 weeks.
Attachment #8628228 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Tracked. Requesting QE team to verify the fix whenever possible. Thanks!
tracking-firefox41:
--- → +
Flags: qe-verify+
Comment 12•9 years ago
|
||
Comment 13•9 years ago
|
||
I see that the verification of this bug implies having _only_ Unified Telemetry disabled in some cases. Alessio, is there any way to manually disable just Unified Telemetry on Beta 41? It was my understanding that on pre-release builds, Unified Telemetry is always enabled and the "toolkit.telemetry.unified" pref doesn't control its state.
Flags: needinfo?(alessio.placitelli)
Assignee | ||
Comment 14•9 years ago
|
||
Andrei, thanks for testing this! We are not planning to turn toolkit.telemetry.unified off anymore, so testing with FHR on/off should be enough!
Flags: needinfo?(alessio.placitelli)
Comment 15•9 years ago
|
||
Verified fixed on Firefox 41.0b8 (20150907144446), using Windows 7 x64, Ubuntu 14.04 and Mac OS X 10.9.5.
Confirmed that the state of datareporting.healthreport.service.enabled has no effect over the experiments feature. I've used the guidelines from the Telemetry Test Plan [1] to do this.
[1] https://wiki.mozilla.org/QA/Telemetry#Telemetry_Experiments
You need to log in
before you can comment on or make changes to this bug.
Description
•