Closed Bug 1539154 Opened 5 years ago Closed 5 years ago

Implement telemetry for comparing BITS update download with nsIIncrementalDownload update download

Categories

(Toolkit :: Application Update, task, P1)

59 Branch
task

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)

References

Details

Attachments

(3 files)

The specification is being defined in bug 1528278 and I'll post it to this bug when it is finished.

Depends on: 1528278

Chris, I thought recording the application version that was updated from would be simple but after looking into it I'm not sure what the best way to do this would be. For this one I definitely would like to have multiple per session so a scalar won't work afaik. Could you provide me with info as to what can be used? Thanks!

Flags: needinfo?(chutten)

I might have been overthinking (or underthinking :) the issue with scalars and sessions. All of the data for this bug will be submitted to telemetry after an update has finished which only happens after a restart. With that in mind there shouldn't be any issues with sessions... right?

Correct! If there's only one piece of information you're recording, and you're only recording it after a successful start of session, then there's no possible conflict.

Flags: needinfo?(chutten)
Blocks: 1528278
No longer depends on: 1528278
No longer blocks: 1520321
Depends on: 1520321

This will provide telemetry so the affect of BITS update downloads with nsIIncrementalDownload update downloads can be compared.
Since a scalar can only be recorded once per session there are two scalars for each data point.
The update.startup telemetry is used to record values when an update finished during startup which prevents it from being recorded multiple times during a session.
The update.session telemetry is used to record values when an update finished during a session and there is a guard that prevent it from being recorded multiple times during a session.
All values for update.startup or update.session are submitted at the same time to simplify querying the values.
The tests only cover nsIIncrementalDownload since we don't have the ability to test BITS yet.
There is also some minor test cleanup.

Priority: -- → P1
Attachment #9059097 - Flags: data-review?(tdsmith)
Attached file data_review.csv
Attachment #9059098 - Flags: data-review?(tdsmith)
Type: enhancement → task
Comment on attachment 9059097 [details]
data_collection_review.txt

data-review+; thanks for collecting those into a table.

---

1) Is there or will there be **documentation** that describes the schema for the ultimate data set available publicly, complete and accurate?

Yes, these are scalars documented in Scalars.yaml.

2) Is there a control mechanism that allows the user to turn the data collection on and off? Provide details as to the control mechanism available.

Yes, the [telemetry opt-out mechanism](https://support.mozilla.org/en-US/kb/share-data-mozilla-help-improve-firefox).

3) If the request is for permanent data collection, is there someone who will monitor the data over time?

The request is for a temporary collection; Robert Strong will monitor with data science support.

4) Using the **[category system of data types](https://wiki.mozilla.org/Firefox/Data_Collection)** on the Mozilla wiki, what collection type of data do the requested measurements fall under?

All proposed collection are Category 1.

5) Is the data collection request for default-on or default-off?

Default-on.

6) Does the instrumentation include the addition of **any *new* identifiers**?

No.

7) Is the data collection covered by the existing Firefox privacy notice?

Yes.

8) Does there need to be a check-in in the future to determine whether to renew the data?

Yes; collection will expire before Firefox 72, expected in 2020.

9) Does the data collection use a third-party collection tool?

No.
Attachment #9059097 - Flags: data-review?(tdsmith) → data-review+
Attachment #9059098 - Flags: data-review?(tdsmith)
Pushed by rstrong@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5c50775a9771
Add telemetry for the phases of an update. r=bytesized
Pushed by rstrong@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/723b79068fb0
Add telemetry for the phases of an update. r=bytesized

I disabled the tests for staging failures on ASAN and relanded.

I filed bug 1545712 for the staging failure tests failing on ASAN.

Flags: needinfo?(robert.strong.bugs)

Just a heads up that the leak log is for "OS X 10.10 debug Web platform tests test-macosx64/debug-web-platform-tests-e10s-1 W(wpt1)" which doesn't run this code so it couldn't be responsible for that leak.

Flags: needinfo?(nerli)
Flags: needinfo?(nerli)
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Regressions: 1545868
Depends on: 1546854
Flags: in-testsuite+
Regressions: 1578262
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: