Closed Bug 762590 Opened 12 years ago Closed 12 years ago

Telemetry.canSend check doesn't prevent pings from being sent

Categories

(Toolkit :: Telemetry, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16
Tracking Status
firefox14 --- fixed
firefox15 --- fixed

People

(Reporter: taras.mozilla, Assigned: froydnj)

References

Details

Attachments

(1 file)

10:48 <@taras> looking at the code
10:48 <@taras> the canSend check
10:48 <@taras> causes us to still send the data
10:48 <@taras> but as a test-ping :)
10:51 <@taras> so the 404, wont be noticed
10:51 <@taras> 1/second thing is weird though
10:51 <@taras> must be some coincidence in our browser-idle scheduling + when devs go to work
Depends on: 758193
Depends on: 762620
No longer depends on: 758193
Attachment #631080 - Flags: review?(taras.mozilla)
Comment on attachment 631080 [details] [diff] [review]
be more careful with canSend logic

Logic one can actually follow
Attachment #631080 - Flags: review?(taras.mozilla) → review+
Lets uplift this into aurora/beta
https://hg.mozilla.org/integration/mozilla-inbound/rev/ea069bf72d62
Status: NEW → ASSIGNED
OS: Windows 7 → All
Hardware: x86_64 → All
Comment on attachment 631080 [details] [diff] [review]
be more careful with canSend logic

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 722240
User impact if declined: Decreased battery life and excess internet traffic.
Testing completed (on m-c, etc.): Going on to m-c tomorrow, 8 June.
Risk to taking this patch (and alternatives if risky): Always a risk with telemetry patches that something can go wrong, but this seems pretty safe.
String or UUID changes made by this patch: None.
Attachment #631080 - Flags: approval-mozilla-beta?
Attachment #631080 - Flags: approval-mozilla-aurora?
Actually, how much of a problem is this, really?  Telemetry.canSend should only ever be false for *non*-official builds (developer builds, Iceweasel, etc.) so this shouldn't be a problem on our official builds.
That is, bug 758193 would seem to be the aurora/beta candidate here, not this bug.
Comment on attachment 631080 [details] [diff] [review]
be more careful with canSend logic

Removing a? flags until we've discussed comment 6 and comment 7 in some more detail.
Attachment #631080 - Flags: approval-mozilla-beta?
Attachment #631080 - Flags: approval-mozilla-aurora?
(In reply to Nathan Froyd (:froydnj) from comment #6)
> Actually, how much of a problem is this, really?  Telemetry.canSend should
> only ever be false for *non*-official builds (developer builds, Iceweasel,
> etc.) so this shouldn't be a problem on our official builds.

It's not much of a problem. Fennec team is doing development on the beta branch, so it would reduce traffic from developer devices. Indeed, there isn't any impact on official builds. Beta/aurora uplift is a nice to have.
https://hg.mozilla.org/mozilla-central/rev/ea069bf72d62

(Merged by Ed Morley)
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
Comment on attachment 631080 [details] [diff] [review]
be more careful with canSend logic

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 722240
User impact if declined: Decreased battery life, extra data usage.  Note that per comment 9, this is only a concern for Mozilla developers if they are developing off aurora/beta.
Testing completed (on m-c, etc.): Local testing, on m-c as of today.
Risk to taking this patch (and alternatives if risky): Epsilon.
String or UUID changes made by this patch: None.
Attachment #631080 - Flags: approval-mozilla-beta?
Attachment #631080 - Flags: approval-mozilla-aurora?
Comment on attachment 631080 [details] [diff] [review]
be more careful with canSend logic

Won't affect official builds - approved for branches.
Attachment #631080 - Flags: approval-mozilla-beta?
Attachment #631080 - Flags: approval-mozilla-beta+
Attachment #631080 - Flags: approval-mozilla-aurora?
Attachment #631080 - Flags: approval-mozilla-aurora+
To clarify based on a discussion on IRC: This *DOES* affect official builds because Fennec (XUL and Mobile) have (unintentionally it seems) have had telemetry disabled for a while.

With the bug, these devices were still able to send test-pings (disastrously so due to bug 762620). With the fix, the official builds for those devices will be affected and will no longer send any telemetry (but this is what we want).
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: