Closed Bug 1591677 Opened 5 years ago Closed 5 years ago

TEST-UNEXPECTED-FAIL | toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js when run in the Thunderbird environment

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
firefox71 --- fixed

People

(Reporter: jorgk-bmo, Assigned: jorgk-bmo)

Details

(Whiteboard: [Thunderbird-testfailure: X all])

Attachments

(1 file)

That's the X4 failure that showed up on today's Daily run:
https://treeherder.mozilla.org/#/jobs?repo=comm-central&revision=b2b10252b7913be853ffceb5a37e4a26e3c431f4

https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=f915da42169e70bdd6711457966620e80f&tochange=0b9d0a86ebfd89cfb89b8044a72e89ce74

Looks like
bc70189de0004f410b6e5d8bf287a7eb5500c087 Thom Chiovoloni — Bug 1238810 - Replace {FXA,WEAVE}_CONFIGURED with entries in the telemetry environment. r=chutten,markh,loines
https://hg.mozilla.org/mozilla-central/rev/bc70189de0004f410b6e5d8bf287a7eb5500c087

Flags: needinfo?(benc)

The test fails for me like this:

ERROR Unexpected exception TypeError: Cc['@mozilla.org/weave/service;1'] is undefined at resource://gre/modules/TelemetryEnvironment.jsm:1792

Inside the _updateServicesInfo() function.

That line was added by the changeset you pointed at.
So it looks to me like the "weave" service (the historical name for Sync's XPCOM service) wasn't being registered under Thunderbird, but it wasn't a problem because it wasn't being used... but now it is?

I think there are two possibilities:

  1. the "Weave" service isn't available in Thunderbird, but should be.
  2. "Weave" isn't relevant to Thunderbird, so _updateServicesInfo() should be modified to deal with it not being there.

I don't know if TB uses Sync services in any way shape or form, so I really don't know what the correct solution is.

Some further notes:

_updateServicesInfo() is called from two places:

  1. the failing test, test_environmentServicesInfo().
  2. by TelemetryEnvironment, in response to an observer callback.

So we could easily decide the test wasn't relevant to TB and disable it, but that still leaves the observer use, which could potentially bite elsewhere.

Flags: needinfo?(benc)

If I'm not mistaken, the "weave" service comes from Weave.jsm:
https://searchfox.org/mozilla-central/rev/11d9c7b7fa82fdfb8ac2a8f0864e9d8d5fe2b926/services/sync/components.conf#10

I can't see right now how that service is included/packaged(?) into FF:
https://searchfox.org/mozilla-central/search?q=Weave.jsm&case=false&regexp=false&path=

So what is "Sync" in general? The Firefox account sync service for bookmarks, history, etc.?

Ben, can we whip up something quickly since the constant test failures aren't much fun.

I'm also adding Chris since he seems to be involved with Telemetry.

Flags: needinfo?(chutten)
Flags: needinfo?(benc)

The observer notification comes from the service itself, if I'm not mistaken, so I'm not as worried about being bitten elsewhere. The test appears to be specifically testing sync and FxA which we can probably "just" skip if TB.

Flags: needinfo?(chutten)
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/integration/autoland/rev/83c6ab83905c
Disable test_TelemetryEnvironment.js::test_environmentServicesInfo for Thunderbird. r=chutten

(In reply to Jorg K (GMT+2) from comment #3)

So what is "Sync" in general? The Firefox account sync service for bookmarks, history, etc.?

That was my assumption (backed up by nothing but guesswork :-)
I didn't think TB used it, but I figured if I was wrong it'd ring some bells with you.
Your patch looks good to me.

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

The observer notification comes from the service itself, if I'm not mistaken, so I'm not as worried about being bitten elsewhere. The test appears to be specifically testing sync and FxA which we can probably "just" skip if TB.

Thanks Chris, that clarifies things nicely!

Flags: needinfo?(benc)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 72.0
Component: General → Sync
Product: Thunderbird → Firefox
Target Milestone: Thunderbird 72.0 → ---

Comment on attachment 9104942 [details]
Bug 1591677 - Disable test_TelemetryEnvironment.js::test_environmentServicesInfo for Thunderbird. r=chutten

Beta/Release Uplift Approval Request

  • User impact if declined: This is a test-only for Thunderbird.
  • 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): Zero, just disables a test for TB.
  • String changes made/needed:
Attachment #9104942 - Flags: approval-mozilla-beta?

Sorry, I can never remember. "Test only" doesn't need approval, just set "checkin needed beta" on the whiteboard.

This needs uplift since bug 1238810 was also uplifted to FF 71 beta 6.

Assignee: nobody → jorgk
Attachment #9104942 - 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: