Closed Bug 609058 Opened 15 years ago Closed 15 years ago

Timeout waiting for installed extension in testExtensionInstallGetAddons/test1.js

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: u279076, Assigned: whimboo)

References

Details

(Whiteboard: [mozmill-branch-fail][mozmill-test-failure])

Attachments

(1 file, 2 obsolete files)

MODULE: restartTests/testExtensionInstallGetAddons/test1.js TEST: testInstallExtension ERROR: Timeout exceeded for waitForElement Lookup: /id("extensionsManager")/id("addonsMsg")/id("extensionsBox")/[1]/id("extensionsView")/{"addonID":"{8620c15f-30dc-4dba-a131-7c5d20cf4a29}"} BRANCH: mozilla1.9.1, mozilla1.9.2 PLATFORM: All
Blocks: 604718
Whiteboard: [mozmill-branch-fail]
Summary: Timeout failure in testExtensionInstallGetAddons/test1.js → Timeout failure in testInstallExtension
Assignee: nobody → anthony.s.hughes
Status: NEW → ASSIGNED
Attached patch WIP (obsolete) — Splinter Review
I've created a WIP patch and discovered an issue (probably a likely cause for the failure). In this patch, I've added: 1) a forced click on the Get-Addons pane so we ensure it is loaded. 2) a verification that there is a list of Recommended Add-ons * both of these ensures the Add-ons Manager is in a searchable state However, I've discovered that the list does not populate in the Mozmill test. This is most likely due to the use of preview.amo instead of amo. I've confirmed this by running through the steps manually. Can we not just use live AMO in these tests?
Attachment #487707 - Flags: feedback?(hskupin)
Blocks: 609060
"Can we not just use live AMO in these tests?" I was told earlier that we don't want to skew download stats
I just switched the test over to using live-AMO and it fixes this test. So, either we skew their stats or we get them to fix preview-amo.
(In reply to comment #3) > I just switched the test over to using live-AMO and it fixes this test. > > So, either we skew their stats or we get them to fix preview-amo. Frankly, I find it hard to believe there isn't someway for them to blacklist the stats coming from Mozmill testing; the same as socorro blacklists stats coming from the CrashMe.xpi extension.
Whiteboard: [mozmill-branch-fail] → [mozmill-branch-fail][mozmill-test-failure]
I have seen something similar the last days but it was working some hours later. So not sure if this is just a flaky connection. It shouldn't happen. Can you please talk to fligtar about this issue? preview.amo is the upcoming new version, so if there is a failure, we should make sure it doesn't get published to amo later this week.
Adding Fligtar to this bug so he can give feedback on this issue. Fligtar, for clarity, we are seeing that the Recommended Add-ons list (nor search) is populated with a list of Extensions when using the Add-on Manager and Preview.AMO. This affects both Namoroka (Firefox 3.6) and Shiretoko (Firefox 3.5). The following are the prefs we are using: extensions.getAddons.browseAddons https://preview.addons.mozilla.org/%LOCALE%/%APP% extensions.getAddons.recommended.browseURL https://preview.addons.mozilla.org/%LOCALE%/%APP%/recommended extensions.getAddons.recommended.url https://preview.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/list/featured/all/10/%OS%/%VERSION% extensions.getAddons.search.browseURL https://preview.addons.mozilla.org/%LOCALE%/%APP%/search?q=%TERMS% extensions.getAddons.search.url https://preview.addons.mozilla.org/%LOCALE%/%APP%/api/%API_VERSION%/search/%TERMS%/all/10/%OS%/%VERSION% Fligtar, is this an AMO problem?
> Fligtar, for clarity, we are seeing that the Recommended Add-ons list (nor > search) is populated with a list of Extensions when using the Add-on Manager > and Preview.AMO. Sorry, that should read: we are NOT seeing that the Recommended Add-ons list (nor search) is populated with a list of Extensions when using the Add-on Manager and Preview.AMO.
One other thing I'd like to note: Firefox 4 does not use the two "recommended" prefs (ie. they do not exist on a default profile).
After some discussion with Fligtar on IRC, an API issue was discovered yesterday. Blocking on bug 609187.
Depends on: 609187
Attached patch Patch v1 (1.9.2) (obsolete) — Splinter Review
First attempt at a patch now that the AMO API issue is resolved. Two things to note: 1. The default timeout of 5s on waitFor is not always long enough for the dynamically generated Add-ons list in the Add-on Manager. This is especially true for slower connections. Hence, I've increased it in this test to 10s. 2. Addons installed from preview.amo have a reverse domain (ie. addons.allizom.org instead of addons.mozilla.org). I've made this correction in the test.
Attachment #487707 - Attachment is obsolete: true
Attachment #488357 - Flags: review?(hskupin)
Attachment #487707 - Flags: feedback?(hskupin)
Comment on attachment 488357 [details] [diff] [review] Patch v1 (1.9.2) >+ // Wait for the Recommended Add-ons to display (default is 5) >+ // XXX: We can potentially fail here on slow connections >+ // waiting for the add-ons to load >+ var recommendedAddonsList = addonsManager.getElement({type: "listbox"}); >+ controller.waitFor(function() { >+ return recommendedAddonsList.getNode().itemCount == 5; >+ }, "Number of Recommended Add-ons listed should be 5.", 10000); There is gSearchTimeout defined globally we should use in this case. Also 5 should be replaced by the value set for the max results preference.
Attachment #488357 - Flags: review?(hskupin) → review-
> There is gSearchTimeout defined globally we should use in this case. Also 5 > should be replaced by the value set for the max results preference. I've done some research and talked to Mossop about this. Firstly, we have the pref extensions.getAddons.maxResults=15 which limits the list to 15. Second, this list gets limited by a parameter in the AMO URL (currently 10). Third, this list gets limited more by the number of compatible add-ons and installed add-ons. Note, there is no pref which explicitly controls "Recommended Add-ons", the same pref is used for recommended and search. So, this list could be anywhere from 0 to 15 addons. I'm not sure what the most reliable way to check this is. Perhaps itemCount > 0?
Move of Mozmill Test related project bugs to newly created components. You can filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Product: Testing → Mozilla QA
Is this test still valid? The modal dialog rewrite should have mostly bit-rotted this patch. (In reply to comment #12) > So, this list could be anywhere from 0 to 15 addons. I'm not sure what the > most reliable way to check this is. Perhaps itemCount > 0? We could set the max value to 2, and use a search term like "video" or "download" which should always return more than 2 results. Also the number in the "show all results" link below should always be higher than the max value.
Anthony, can you please give an update about the current state? This test is failing now for nearly 2 months. We should get it fixed or disabled as soon as possible.
(In reply to comment #15) > Anthony, can you please give an update about the current state? This test is > failing now for nearly 2 months. We should get it fixed or disabled as soon as > possible. I've not been able to look at this since mid-November. I'll make it a priority for the test-fails project. If you think there is value in disabling the test in the meantime, go for it.
(In reply to comment #16) > I've not been able to look at this since mid-November. I'll make it a priority > for the test-fails project. If you think there is value in disabling the test > in the meantime, go for it. We talked about disabling failed tests, which cannot be fixed in a short manner, during our work week beginning of December. There are also meeting notes. Anthony, you are assigned to this bug, so please upload a quick patch which will skip this test on all platforms. I'm happy to review and land it if necessary.
> We talked about disabling failed tests, which cannot be fixed in a short > manner, during our work week beginning of December. There are also meeting > notes. > We should probably disable all tests which are failing on the branches then. Most, if not all, existing failures have been occurring for at least a month. > Anthony, you are assigned to this bug, so please upload a quick patch which > will skip this test on all platforms. I'm happy to review and land it if > necessary. How does one "disable" a test?
> > Anthony, you are assigned to this bug, so please upload a quick patch which > > will skip this test on all platforms. I'm happy to review and land it if > > necessary. > How does one "disable" a test? It's a couple of meta tags that go at the bottom of a test, one for the setupModule and one for the teardownModule: Example: setupModule.__force_skip__ = "Bug 609058: Timeout failure in testInstallExtension"; teardownModule.__force_skip__ = true;
So this test disconnects in the last couple of days because the 'Install' button in the software installation dialog of the ACR extension doesn't get clicked. The dialog stays open. Strange, that should not happen since the modal dialog fixes have been landed.
Summary: Timeout failure in testInstallExtension → Timeout waiting for installed extension in testExtensionInstallGetAddons
Attached patch Patch v1Splinter Review
Ok, the problem on AMO has been fixed and now the extension we are looking for are visible. But now the new issue with the modal dialog has been raised. And that's a simple mistake by calling the constructor of the modal dialog with the controller and not the window.
Assignee: anthony.s.hughes → hskupin
Attachment #488357 - Attachment is obsolete: true
Attachment #503867 - Flags: review?(aaron.train)
Attachment #503867 - Flags: review?(aaron.train) → review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Summary: Timeout waiting for installed extension in testExtensionInstallGetAddons → Timeout waiting for installed extension in testExtensionInstallGetAddons/test1.js
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: