Closed Bug 2055613 Opened 1 month ago Closed 2 days ago

Remove activeAddons/activeTheme/activePlugins from the legacy telemetry environment

Categories

(Toolkit :: Add-ons Manager, task, P2)

task

Tracking

()

RESOLVED FIXED
156 Branch
Tracking Status
firefox156 --- fixed

People

(Reporter: rpl, Assigned: rpl)

References

Details

(Whiteboard: [addons-jira])

Attachments

(2 files)

As part of Bug 1981496 we have moved the internals that are collecting telemetry data related to the active extensions, active theme and active GMPlugins from the telemetry environment internals to the AddonManager internals and we have started to collect them in Glean (and Bug 2000866 introduced an addons ping that include this data in addition to the metrics one), but we have kept this data also in the telemetry environment.

This bug is tracking following up on removing these telemetry data from the legacy telemetry environment.

In addition to remove the logic that is adding this data into the telemetry environment we should also:

See the list of steps as documented in https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/start/remove-telemetry.html#environment-fields

See Also: → 1485703

And when you do so, remember to update the magic comments that power arewegleanyet (should just have to decrease both the Legacy and Glean numbers by 3 (activeAddons, activeGMPlugins, theme)) and the docs.

(( The accounting for the Environment is weird, thus the comments. The "Glean Count" is the number of Glean metrics mirroring the Environment pieces. The "Legacy Count" is the number of Environment pieces. You'd think you'd just reduce the "Legacy Count", but in removing the Environment pieces, the Glean metrics aren't mirrors any more, so you have to reduce that count too. ))

See Also: → 1950416
Assignee: nobody → lgreco
Severity: -- → N/A
Status: NEW → ASSIGNED
Priority: -- → P2

Removes activeAddons/theme/GMPlugins test coverage from TelemetryEnvironment and
AddonManager tests, ahead of removing the environment addons properties as part
of the child revision.

Removes environment.addons along with cleaning up about:telemetry and EnvironmentAddonBuilder from
logic that was mainly needed due to the legacy telemetry environment.

Also updates the docs and and decrements the arewegleanyet Legacy/Glean counters.

Attachment #9624989 - Attachment description: WIP: Bug 2055613 - Prepare telemetry/addons tests for legacy environment addons removal r=chutten!,robwu! → Bug 2055613 - Prepare telemetry/addons tests for legacy environment addons removal r=chutten!,robwu!
Attachment #9624990 - Attachment description: WIP: Bug 2055613 - Remove activeAddons/theme/activeGMPlugins from the legacy Telemetry environment r=chutten!,robwu! → Bug 2055613 - Remove activeAddons/theme/activeGMPlugins from the legacy Telemetry environment r=chutten!,robwu!
Pushed by luca.greco@alcacoop.it: https://github.com/mozilla-firefox/firefox/commit/a449dabf881c https://hg.mozilla.org/integration/autoland/rev/4b5e5685c540 Prepare telemetry/addons tests for legacy environment addons removal r=chutten,robwu https://github.com/mozilla-firefox/firefox/commit/0681535597e7 https://hg.mozilla.org/integration/autoland/rev/df6099ef8434 Remove activeAddons/theme/activeGMPlugins from the legacy Telemetry environment r=chutten,robwu
Pushed by csabou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/4b843058d565 https://hg.mozilla.org/integration/autoland/rev/47f67f50e8f1 Revert "Bug 2055613 - Remove activeAddons/theme/activeGMPlugins from the legacy Telemetry environment r=chutten,robwu" for causing xpcshell failures on test_exposure.

(In reply to Cosmin Sabou [:CosminS] from comment #6)

Backed out for causing xpcshell failures on test_exposure.

Push with failures

Failure log

Backout link

These ones too:

These xpcshell failures were definitely related to the change in the last of the two patches, the underlying issue was kind of pre-existing, due to the TelemetryEnvironment initialization waiting on browser-delayed-startup-finished which doesn't happen in xpcshell test unless explicitly notified, which was hidden by a rejection that was having the unintented side-effect of hiding that issue.

I was able to reproduce each of these test failures consistently and I've updated the patch to handle them.

And likely also this: https://treeherder.mozilla.org/logviewer?job_id=586537525&repo=autoland&task=UKUXi_lHSa6B1sCY4r9XpQ.0

I suspect this may be unrelated, the _telemetry in the test name was making suspicious but I wasn't unable to hit that locally and based on a quick look to the test I couldn't see how the change in the second of the two patches in this stack may be triggering that kind of assertion failure.

Flags: needinfo?(lgreco)
Pushed by luca.greco@alcacoop.it: https://github.com/mozilla-firefox/firefox/commit/654092cd49be https://hg.mozilla.org/integration/autoland/rev/32445af6209f Prepare telemetry/addons tests for legacy environment addons removal r=chutten,robwu https://github.com/mozilla-firefox/firefox/commit/a00651a7905c https://hg.mozilla.org/integration/autoland/rev/172729ec14a1 Remove activeAddons/theme/activeGMPlugins from the legacy Telemetry environment r=chutten,robwu,urlbar-reviewers,jteow
Pushed by pstanciu@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/961c083faa64 https://hg.mozilla.org/integration/autoland/rev/fae0edc32792 Revert "Bug 2055613 - Remove activeAddons/theme/activeGMPlugins from the legacy Telemetry environment r=chutten,robwu,urlbar-reviewers,jteow" for causing xpc failures @ test_provider_markSafe.js
Flags: needinfo?(lgreco)

(In reply to pstanciu from comment #10)

Backed out for causing xpc failures @ test_provider_markSafe.js

I've looked into it, the test AOM provider registered internally by test_provider_markSafe.js was missing a getAddonsByTypes method that the AddonManager expects to be available on every registered AOM provider, it wasn't noticed before the changes applied to the second patch because there wasn't anything calling that method and so the incomplete test AOM provider wasn't hitting the failure because the EnvironmentAddonBuilder instance was only created by the telemetry environment initialization (while it is now instantiated by AMTelemetry on the AddonManager startup also when the test doesn't trigger the telemetry environment initialization).

I've update the patch to add the getAddonsByTypes method to the test AOM mock providers created by test_provider_markSafe.js (and on a couple more xpcshell test that I've verified locally were also missing the getAddonsByTypes method and would be hitting a similar test failure).

Flags: needinfo?(lgreco)
Pushed by luca.greco@alcacoop.it: https://github.com/mozilla-firefox/firefox/commit/8be228876055 https://hg.mozilla.org/integration/autoland/rev/8f10a945fa66 Prepare telemetry/addons tests for legacy environment addons removal r=chutten,robwu https://github.com/mozilla-firefox/firefox/commit/c7f5b0e32802 https://hg.mozilla.org/integration/autoland/rev/589a05df4bac Remove activeAddons/theme/activeGMPlugins from the legacy Telemetry environment r=chutten,robwu,urlbar-reviewers,jteow
Status: ASSIGNED → RESOLVED
Closed: 2 days ago
Resolution: --- → FIXED
Target Milestone: --- → 156 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: