Closed Bug 1706732 Opened 4 years ago Closed 4 years ago

Make `--backgroundtask backgroundupdate` send Glean pings with non-Desktop Firefox Glean application ID

Categories

(Toolkit :: Application Update, task)

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox89 --- fixed
firefox90 --- fixed

People

(Reporter: nalexander, Assigned: nalexander)

References

Details

Attachments

(1 file)

Bug 1703318 added a new Glean backgroundupdate ping, but it's sent with Desktop Firefox's Glean application ID. Bug 1704871 allows to send it with its own application ID. After Bug 1704878, we'll be able to use the new application ID; this ticket tracks doing so.

In Bug 1704878, probe-scraper now has "firefox.desktop.background.update" registered as an app_id.

If I’m understanding the new FOG interface correctly, this would mean changing https://searchfox.org/mozilla-central/source/toolkit/mozapps/update/BackgroundTask_backgroundupdate.jsm#314 to be:

FOG.initializeFOG(gleanRoot, "firefox.desktop.background.update");

?ni :nalexander Do you have everything you need to go ahead and make this code change to include the new app_id?

Flags: needinfo?(nalexander)

The Glean application ID is not included in the Glean ping itself, so
I haven't updated the existing Marionette test for this custom ping.
We'll verify by inspecting the data in the metrics pipeline directly.

Pushed by nalexander@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5c49b44eba9b Send "background-update" Glean pings with Glean application ID "firefox.desktop.background.update". r=chutten
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch

(In reply to Jeff Klukas [:klukas] (UTC-4) from comment #1)

In Bug 1704878, probe-scraper now has "firefox.desktop.background.update" registered as an app_id.

If I’m understanding the new FOG interface correctly, this would mean changing https://searchfox.org/mozilla-central/source/toolkit/mozapps/update/BackgroundTask_backgroundupdate.jsm#314 to be:

FOG.initializeFOG(gleanRoot, "firefox.desktop.background.update");

?ni :nalexander Do you have everything you need to go ahead and make this code change to include the new app_id?

Done. Thanks for all of your help, :klukas!

Flags: needinfo?(nalexander)

Comment on attachment 9217876 [details]
Bug 1706732 - Send "background-update" Glean pings with Glean application ID "firefox.desktop.background.update". r?chutten

Beta/Release Uplift Approval Request

  • User impact if declined: None.

  • Is this code covered by automated tests?: Yes

  • Has the fix been verified in Nightly?: Yes

  • Needs manual test from QE?: No

  • If yes, steps to reproduce:

  • List of other uplifts needed: None

  • Risk to taking this patch: Low

  • Why is the change risky/not risky? (and alternatives if risky): This impacts metrics sent by the background update system from Bug 1689520, which is compiled into Beta 89 but preffed off by default. Right now, any Beta that enables background update will send Glean metrics as "firefox.desktop", where it will cause noise with regular Firefox metrics. This very small change identifies background update metrics as a new application "firefox.desktop.background.update".

    This is working in Nightly; we have data flowing.

    We would like to stage the rollout of background updates in Beta 89; this blocks that.

  • String changes made/needed:

Attachment #9217876 - Flags: approval-mozilla-beta?

Comment on attachment 9217876 [details]
Bug 1706732 - Send "background-update" Glean pings with Glean application ID "firefox.desktop.background.update". r?chutten

Low risk, has tests and baked on nightly, , approved for 89 beta 9, thanks.

Attachment #9217876 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: