Closed Bug 1899602 Opened 5 months ago Closed 4 months ago

Thunderbird Glean migrations

Categories

(Thunderbird :: General, task)

Tracking

(thunderbird_esr115 wontfix, thunderbird_esr128 affected)

RESOLVED FIXED
129 Branch
Tracking Status
thunderbird_esr115 --- wontfix
thunderbird_esr128 --- affected

People

(Reporter: mkmelin, Assigned: mkmelin)

References

(Blocks 2 open bugs)

Details

Attachments

(26 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Bug to track the actual migration of Telemetry probes to Glean.

Apparently this was not tested before.

:Dexter, :chutten - would be grateful for any feedback on these migrations

Status: NEW → ASSIGNED
Flags: needinfo?(chutten)
Flags: needinfo?(alessio.placitelli)

Wow, that's 23 reviews. Any in particular you'd consider an exemplar of the whole set, or would you like eyes on all of them?

Flags: needinfo?(mkmelin+mozilla)
Flags: needinfo?(chutten)
Flags: needinfo?(alessio.placitelli)

The most prominent classes are likely these:

We have a fair amount of labeled quantities (which isn't a type). I've used type: labeled_string for things like https://phabricator.services.mozilla.com/D213115 as advised on #glean
(Note for others, labeled_counter would have to be carefully set lifetime: application and tie to a once-in-a-run event - since counter can only add, not set, and we need to make sure to do it only once.)

Perhaps one other class that could use some more eyes is how I use event - there are a couple of these, like https://phabricator.services.mozilla.com/D213123 (the probe itself is not ideal and should be reworked in another bug)

Flags: needinfo?(mkmelin+mozilla)

Both of them look just fine to me, with some small things to watch out for. Where this will become interesting is analysis: will you be able to answer the questions you have with data in these shapes.

Depends on: 1903006
Attachment #9406470 - Attachment description: Bug 1899602 - migrate tb.account.size_on_disk and tb.account.total_messages to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.account.size_on_disk and tb.account.total_messages to glean. r=freaktechnik
Attachment #9406446 - Attachment description: Bug 1899602 - Lay the groundwork for enabling Glean and migrate tb.compose_format to Glean. r=#thunderbird-reviewers → Bug 1899602 - Lay the groundwork for enabling Glean and migrate tb.compose_format to Glean. r=babolivier
Attachment #9406447 - Attachment description: Bug 1899602 - migrate TB_COMPOSE_TYPE to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate TB_COMPOSE_TYPE to glean. r=babolivier
Attachment #9406448 - Attachment description: Bug 1899602 - convert tb.websearch.usage to Glean. r=#thunderbird-reviewers → Bug 1899602 - convert tb.websearch.usage to Glean. r=vineet
Attachment #9406449 - Attachment description: Bug 1899602 - migrate tb.account.count to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.account.count to glean. r=aleca
Attachment #9406450 - Attachment description: Bug 1899602 - migrate tb.account.successful_email_account_setup to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.account.successful_email_account_setup to glean. r=aleca
Attachment #9406451 - Attachment description: Bug 1899602 - migrate tb.account.failed_email_account_setup to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.account.failed_email_account_setup to glean. r=aleca
Attachment #9406452 - Attachment description: Bug 1899602 - migrate tb.ui.interaction probes to glean. r=#thunderbird-reviewers → ¨Bug 1899602 - migrate tb.ui.interaction probes to glean. r=aleca
Attachment #9406453 - Attachment description: Bug 1899602 - migrate tb.filelink.ignored to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.filelink.ignored to glean. r=aleca
Attachment #9406454 - Attachment description: Bug 1899602 - migrate tb.uploaded_size.uploaded to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.uploaded_size.uploaded to glean. r=aleca
Attachment #9406458 - Attachment description: Bug 1899602 - migrate tb.calendar.calendar_count to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.calendar.calendar_count to glean. r=aleca
Attachment #9406459 - Attachment description: Bug 1899602 - migrate tb.calendar.read_only_calendar_count to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.calendar.read_only_calendar_count to glean. r=aleca
Attachment #9406462 - Attachment description: Bug 1899602 - migrate tb.preferences_boolean to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.preferences_boolean to glean. r=aleca
Attachment #9406463 - Attachment description: Bug 1899602 - migrate tb.preferences_integer to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.preferences_integer to glean. r=aleca
Attachment #9406467 - Attachment description: Bug 1899602 - migrate tb.mails.folder_opened to glean. r=#thunderbird-reviewers → Bug 1899602 - migrate tb.mails.folder_opened to glean. r=aleca
Attachment #9406452 - Attachment description: ¨Bug 1899602 - migrate tb.ui.interaction probes to glean. r=aleca → Bug 1899602 - migrate tb.ui.interaction probes to glean. r=aleca

One thing that came to mind is that using a "tb." prefix probably isn't the best idea now, since there can't be (future) metrics files for other folders - say for calendar/ - using the same prefix. I guess we should use "mail." for the ones in the mail/ folder

Keywords: leave-open
Target Milestone: --- → 129 Branch
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/comm-central/rev/0c922bb4a746 Lay the groundwork for enabling Glean and migrate tb.compose_format to Glean. r=babolivier https://hg.mozilla.org/comm-central/rev/d89ef19a9482 migrate TB_COMPOSE_TYPE to glean. r=babolivier https://hg.mozilla.org/comm-central/rev/5953a605c975 convert tb.websearch.usage to Glean. r=vineet https://hg.mozilla.org/comm-central/rev/7f0bfdbd6fc5 migrate tb.account.count to glean. r=aleca https://hg.mozilla.org/comm-central/rev/20474f81f541 migrate tb.account.successful_email_account_setup to glean. r=aleca https://hg.mozilla.org/comm-central/rev/0375237a08a1 migrate tb.account.failed_email_account_setup to glean. r=aleca https://hg.mozilla.org/comm-central/rev/d9fa137dad19 migrate tb.ui.interaction probes to glean. r=aleca https://hg.mozilla.org/comm-central/rev/1b734c857eb8 migrate tb.filelink.ignored to glean. r=aleca https://hg.mozilla.org/comm-central/rev/5e81c59166a1 migrate tb.uploaded_size.uploaded to glean. r=aleca https://hg.mozilla.org/comm-central/rev/acb81094268b migrate tb.ui.configuration.folder_tree_modes to glean. r=aleca https://hg.mozilla.org/comm-central/rev/3c7d205b96f5 migrate tb.ui.configuration.pane_visibility to glean. r=aleca https://hg.mozilla.org/comm-central/rev/333cf4f413c1 migrate tb.ui.configuration.message_header to glean. r=aleca https://hg.mozilla.org/comm-central/rev/34488e9695ba migrate tb.calendar.calendar_count to glean. r=aleca https://hg.mozilla.org/comm-central/rev/f55b66432f26 migrate tb.calendar.read_only_calendar_count to glean. r=aleca https://hg.mozilla.org/comm-central/rev/6d081720ef95 migrate tb.addressbook.addressbook_count to glean. r=aleca https://hg.mozilla.org/comm-central/rev/16fa84b786af migrate tb.addressbook.contact_count to glean. r=aleca https://hg.mozilla.org/comm-central/rev/01e21678b928 migrate tb.preferences_boolean to glean. r=aleca https://hg.mozilla.org/comm-central/rev/a4c13883c8fa migrate tb.preferences_integer to glean. r=aleca https://hg.mozilla.org/comm-central/rev/4dd628be224b migrate tb.mails.sent to glean. r=aleca https://hg.mozilla.org/comm-central/rev/4cf00dd97f7f migrate tb.mails_read to glean. r=aleca https://hg.mozilla.org/comm-central/rev/6679f8d420f3 migrate tb.mails.read_secure to glean. r=aleca https://hg.mozilla.org/comm-central/rev/9d0300c2c6e4 migrate tb.mails.folder_opened to glean. r=aleca https://hg.mozilla.org/comm-central/rev/e8b9f19926e0 migrate tb.account.oauth2_provider_count to glean. r=aleca https://hg.mozilla.org/comm-central/rev/27899ccf0430 migrate tb.account.size_on_disk and tb.account.total_messages to glean. r=freaktechnik https://hg.mozilla.org/comm-central/rev/03745426540b remove obsolete Telemetry testing probes. r=aleca

(In reply to Magnus Melin [:mkmelin] from comment #30)

One thing that came to mind is that using a "tb." prefix probably isn't the best idea now, since there can't be (future) metrics files for other folders - say for calendar/ - using the same prefix. I guess we should use "mail." for the ones in the mail/ folder

Oh yes, that's an excellent point. Especially since all datasets will be namespaced to the application id (which I assume will be thunderbird) so including tb. could be redundant. Sorry, I should've caught that naming smell when you asked for review.

Oh, though I should mention, you can use the same category in multiple files. There's no restriction there. Though the pipeline will complain if you have a fully-duplicated metric name.

What are the next steps here?
Should we request 128 uplift?
Do you want to remove the tb. prefix?

Flags: needinfo?(mkmelin+mozilla)
See Also: → 1906163

I'll change/remove the prefix.
We should uplift to 128, but I'd wait until legal is finished so we can properly check data is getting sent correctly first.

:chutten, IIRC you mentioned earlier the Thunderbird app id also needs to be added to an allow list (in the data pipeline somewhere) so tb data wouldn't get discarded. Do you recall what that was, and how should that be handled?

Flags: needinfo?(mkmelin+mozilla) → needinfo?(chutten)

More than recalling it, we've documented it! https://mozilla.github.io/glean/book/user/adding-glean-to-your-project/index.html

I think the specific step you're after is 4, but the whole thing's a decent checklist to doublecheck.

Flags: needinfo?(chutten)

Stop using the tb. prefix, and put the probes in component relative metrics.yaml files

Attachment #9413620 - Attachment description: Bug 1899602 - Distribute metrics.yaml files to where they belong. r=#thunderbird-reviewers → Bug 1899602 - Distribute metrics.yaml files to where they belong. r=aleca

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/cfb3e3498687
Distribute metrics.yaml files to where they belong. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED

Candidate then for 128.1.0? Or do you have more coming?

Flags: needinfo?(mkmelin+mozilla)

We've been receiving telemetry for this in the data pipeline for a few weeks now but it's been coming with the firefox-desktop app namespace so it's all landing in bigquery right now (but not in the correct columns because the metrics weren't added to probe-scraper). I want to check if this is intended or possibly side effect of reusing firefox code. Reading the conversation above, it sounds like this isn't intended.

Thanks for the report.
This definitely wasn't the intended outcome.
Alessio, can you advice on the steps to take to fix this? Is following the steps to add the probe-scraper all we need?

Flags: needinfo?(alessio.placitelli)

(In reply to Ben Wu [:benwu] from comment #40)

We've been receiving telemetry for this in the data pipeline for a few weeks now but it's been coming with the firefox-desktop app namespace

Hey Chris, aren't we changing the app id somewhere for this?

Flags: needinfo?(alessio.placitelli) → needinfo?(chutten)

(In reply to Alessandro Castellani [:aleca] from comment #41)

Is following the steps to add the probe-scraper all we need?

No, we need legal clearance for that step

This is a different problem I believe: thunderbird should be using a different app id

The only place where that app id is set is in BrowserGlue which I was under the understanding that Thunderbird didn't actually run. If Thunderbird does run those idle tasks, then we're going to need an if (<is thunderbird>) { return; } somewhere around here. (( Actually, looks like those tasks have condition support, so maybe we should prefer condition: <isn't thunderbird> ))

Flags: needinfo?(chutten)

That's what's waiting on Legal before we do it. For now, if there's something e.g. in AppConstants we could check as a task condition, that could be ideal

(In reply to Chris H-C :chutten from comment #46)

That's what's waiting on Legal before we do it. For now, if there's something e.g. in AppConstants we could check as a task condition, that could be ideal

Adding a different app id, without enabling it into the pipeline, it's fine too I believe

Still waiting on legal and such, so we can properly verify stuff, so no uplifts yet.

Flags: needinfo?(mkmelin+mozilla)

(In reply to Magnus Melin [:mkmelin] from comment #48)

Still waiting on legal and such, so we can properly verify stuff, so no uplifts yet.

We got the go-ahead from legal - regardless, we still need to uplift, as this is currently reporting using the wrong app id.

Flags: needinfo?(mkmelin+mozilla)

I mean we need to uplift bug 1910837

Thanks, I've requested beta uplift for that one.
(Will get to this one later, but no time right now.)

Flags: needinfo?(mkmelin+mozilla)

(In reply to Magnus Melin [:mkmelin] from comment #51)

Thanks, I've requested beta uplift for that one.
(Will get to this one later, but no time right now.)

Thank you! Yes, that's fine, the important one was the other one :-)

See Also: → 1913930
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: