Closed Bug 1200164 Opened 9 years ago Closed 8 years ago

Only do isOfficialTelemetry checks for Telemetry upload

Categories

(Toolkit :: Telemetry, defect, P1)

defect
Points:
2

Tracking

()

RESOLVED FIXED
Tracking Status
firefox45 --- wontfix
firefox46 --- fixed

People

(Reporter: Dexter, Assigned: gfritzsche)

References

(Blocks 1 open bug)

Details

(Whiteboard: [measurement:client])

Attachments

(2 files, 1 obsolete file)

Throughout the Telemetry code we disable some behaviours (e.g. the creation of shutdown pings and the deletion of aborted session pings [1]) if we're not running an official build (both MOZILLA_OFFICIAL and MOZ_TELEMETRY_REPORTING are set).

This could cause some confusion during debugging sessions: I think we should restrict those checks only to ping uploads.

[1] - https://dxr.mozilla.org/mozilla-central/rev/f2518b8a7b97b5bb477e94bc9131584007aac887/toolkit/components/telemetry/TelemetrySession.jsm#1792
Blocks: 1122482
Whiteboard: [unifiedTelemetry]
More info about this can be found in bug 1173720 comment 2.
Blocks: 1201022
No longer blocks: 1122482
Points: --- → 2
Priority: -- → P3
Whiteboard: [unifiedTelemetry] → [unifiedTelemetry] [measurement:client]
Priority: P3 → P2
Assignee: nobody → gfritzsche
Priority: P2 → P1
Whiteboard: [unifiedTelemetry] [measurement:client] → [measurement:client]
Attachment #8698909 - Flags: review?(alessio.placitelli)
Comment on attachment 8698909 [details] [diff] [review]
Only do isOfficialTelemetry checks for Telemetry uploads

Review of attachment 8698909 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good and... much appreciated!

::: toolkit/components/telemetry/docs/preferences.rst
@@ +9,1 @@
>  Sending only happens on official builds with ``MOZ_TELEMETRY_REPORTING`` defined.

Nit: Maybe we should keep/mention that official means "defining MOZILLA_OFFICIAL" here.
Attachment #8698909 - Flags: review?(alessio.placitelli) → review+
Attachment #8698909 - Attachment is obsolete: true
Attachment #8699956 - Flags: review+
Comment on attachment 8698910 [details] [diff] [review]
Make developer builds always default to Telemetry enabled

I don't think this is a good idea. There are many other uses for MOZILLA_OFFICIAL beyond developer builds: I suspect this will affect various linux distros, for example.

I also don't see why it's especially important to have extended-set telemetry on by default for developer builds.
Attachment #8698910 - Flags: review?(benjamin) → review-
(In reply to Benjamin Smedberg  [:bsmedberg] from comment #7)
> I don't think this is a good idea. There are many other uses for
> MOZILLA_OFFICIAL beyond developer builds: I suspect this will affect various
> linux distros, for example.
> 
> I also don't see why it's especially important to have extended-set
> telemetry on by default for developer builds.

I think it would be much better to match the Nightly Telemetry behavior in Firefox dev builds (i.e. default to Telemetry on), some points here are:
* it avoids confusion ("oh, this hasn't recorded yet because Telemetry isn't on!")
* it gives dev builds the same behavior here
* it avoids issues with tests (test blowing up on CI that worked fine in local build due to different defaults)

Do you agree with this if we have a better solution without the side-effects you brought up?
Flags: needinfo?(benjamin)
Keywords: leave-open
In theory if you could have nightly developer builds turn extended collection on (without any sending), while at the same time not change the defaults for external distributors building releases from tarballs, that would be fine. I don't know how specifically you'd accomplish that though.
Flags: needinfo?(benjamin)
Depends on: 1237700
Blocks: 1237954
(In reply to Benjamin Smedberg  [:bsmedberg] from comment #12)
> In theory if you could have nightly developer builds turn extended
> collection on (without any sending), while at the same time not change the
> defaults for external distributors building releases from tarballs, that
> would be fine. I don't know how specifically you'd accomplish that though.

Right, ok - that doesn't sound easily doable, moved this to bug 1237954 for consideration.
Status: NEW → RESOLVED
Closed: 8 years ago
Keywords: leave-open
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: