Closed Bug 1588678 Opened 5 years ago Closed 5 years ago

Extensions from distribution/extensions not loaded for mochitest on Mac

Categories

(Calendar :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 71.0

People

(Reporter: darktrojan, Assigned: darktrojan)

Details

Attachments

(1 file, 1 obsolete file)

The point of failure could be any one of a number of things here, but I'm posting this in Mochitest since that's what I'm trying to do.

For Thunderbird beta/ESR, Lightning is at distribution/extensions/{e2fda1a4-762b-4020-b5ad-a41df1933103}.xpi. This gets copied into the profile directory at start-up, and everything is fine. Except when it isn't – on Mac mochitest jobs, Lightning never loads and there's no mention of it in the logs, so I presume it is not copied into the profile directory.

This is happening on TaskCluster (example). I haven't got a Mac so I can't test if it happens on a local build.

I could use some help on this. We're making more and more mochitests so it's becoming more important.

What I don't understand is why it works on Linux and Windows but not on Mac. The file must be packaged correctly since Mozmill tests load Lightning as expected. Is it something to do with how the profile is set up on TC? Is it something OS-specific in Marionette?

Flags: needinfo?(hskupin)
Flags: needinfo?(gbrown)
Flags: needinfo?(ahal)

Are you modifying the following preference for the Thunderbird tests?

https://searchfox.org/mozilla-central/rev/55aa17110091deef24b913d033ccaf58f9c6d337/testing/marionette/client/marionette_driver/geckoinstance.py#72

If you don't it shouldn't work at all, so not sure why it is only failing on MacOS. Maybe try with various combinations of the addon specific preferences.

Flags: needinfo?(hskupin)

It seems that's exactly the problem, but as you say, why does it work on Linux and Windows?

Flags: needinfo?(gbrown)
Flags: needinfo?(ahal)

It might be good to ask some extension folks about it. If the prefs are set to block those extensions it should work cross-platform. Otherwise it smells like a bug to me.

Assignee: nobody → geoff
Status: NEW → ASSIGNED
Component: Mochitest → General
Product: Testing → Calendar
Version: Version 3 → unspecified
Attachment #9103184 - Flags: review?(paul)
Attachment #9103184 - Flags: approval-calendar-beta?(paul)

Fixed the pref order so I don't grumble later about people who can't put things in order, only to find myself at fault.

Attachment #9103184 - Attachment is obsolete: true
Attachment #9103184 - Flags: review?(paul)
Attachment #9103184 - Flags: approval-calendar-beta?(paul)
Attachment #9103186 - Flags: review?(paul)
Attachment #9103186 - Flags: approval-calendar-beta?(paul)
Comment on attachment 9103186 [details] [diff] [review]
1588678-calendar-mochitest-2.diff

Review of attachment 9103186 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM.
Attachment #9103186 - Flags: review?(paul)
Attachment #9103186 - Flags: review+
Attachment #9103186 - Flags: approval-calendar-beta?(paul)
Attachment #9103186 - Flags: approval-calendar-beta+

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/0f8f556acd91
Enable loading of Lightning in mochitest on beta/ESR channels. r=pmorris

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Keywords: checkin-needed
Resolution: --- → FIXED

Need Calendar 72 Milestone. Does Philipp still need to do this himself?

Flags: needinfo?(philipp)
Flags: needinfo?(geoff)
Target Milestone: --- → 71

I can't.

Flags: needinfo?(geoff)

I can't see if this was caused by a problem with the testing infrastructure or with the extensions code itself. CC'ing Andrew, who might be interested.

Flags: needinfo?(philipp)
Target Milestone: 71 → 72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: