Closed Bug 1153987 Opened 9 years ago Closed 9 years ago

TelemetryPing should fully initialize whenever canRecordBase=true

Categories

(Toolkit :: Telemetry, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox37 --- unaffected
firefox38 --- unaffected
firefox39 --- affected
firefox40 --- affected

People

(Reporter: vladan, Assigned: vladan)

References

Details

Attachments

(1 file, 1 obsolete file)

We don't initialize TelemetryPing if canRecordExtended is false. This is incorrect, the Telemetry service (including TelemetryPing) needs to fully initialize if canRecordBase = true, independent of canRecordExtended.

Offending code from enableTelemetryRecording:

let enabled = Preferences.get(PREF_ENABLED, false);
if (!enabled || !Telemetry.canRecordBase) {
  // Turn off extended telemetry recording if disabled by preferences or if base/telemetry
  // telemetry recording is off.
  Telemetry.canRecordExtended = false;
  this._log.config("enableTelemetryRecording - Telemetry is disabled, turning off Telemetry recording.");
  return false;
}

I think this was an oversight from bug 1120369, so it will need to be uplifted to 38 & 39
Attached patch fixTelemetryPingInit.patch (obsolete) — Splinter Review
Attachment #8591824 - Flags: review?(gfritzsche)
Assignee: nobody → vdjeric
The patch in bug 1137252 fixes the issue, but we need to uplift a minimal fix to aurora & beta. I think this patch might be sufficient
Attachment #8591824 - Attachment is obsolete: true
Attachment #8591824 - Flags: review?(gfritzsche)
Attachment #8591837 - Flags: review?(gfritzsche)
Attachment #8591837 - Flags: feedback?(alessio.placitelli)
This was actually a regression from bug 1134279. We actually don't need this on beta, beta doesn't have canRecordBase
Comment on attachment 8591837 [details] [diff] [review]
fixTelemetryPingInit2.patch

I think this should also carry the changes from  runreftest.py, all.js and profile.py from bug 1137252 part 1, otherwise tests may fail/crash (tests would try to access real telemetry servers in tests).
Attachment #8591837 - Flags: feedback?(alessio.placitelli) → feedback+
Attachment #8591837 - Flags: review?(gfritzsche)
Do we need to fix this on Aurora right now or should we just focus on a batched uplift that includes bug 1137252?
Blocks: 1120356
(In reply to Georg Fritzsche [:gfritzsche] from comment #5)
> Do we need to fix this on Aurora right now or should we just focus on a
> batched uplift that includes bug 1137252?

Per todays meeting: Yes, we should, to fix things until bug 1137252 uplifts.
At this point we should not uplift this so turning the unified behavior off works properly on 39.
(In reply to Georg Fritzsche [:gfritzsche] from comment #7)
> At this point we should not uplift this so turning the unified behavior off
> works properly on 39.

Sorry, can you restate this?
Flags: needinfo?(gfritzsche)
Sorry - i was checking whether we can turn off the "unified" behavior properly on 39.
Currently this is mostly fine, but if we land this patch on 39 we would need to do further work on that train.
Flags: needinfo?(gfritzsche)
As discussed above and in todays meeting, the behavior on 39 right does not need to be fixed right now.
Proper initialization should be covered by bug 1148500.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: