Persona is no longer an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 718812 - TEST-UNEXPECTED-FAIL | test-install-xpi.js | timed out waiting for modal dialog
: TEST-UNEXPECTED-FAIL | test-install-xpi.js | timed out waiting for modal dialog
: intermittent-failure
Product: Thunderbird
Classification: Client Software
Component: Testing Infrastructure (show other bugs)
: Trunk
: x86 Mac OS X
: -- normal (vote)
: Thunderbird 12.0
Assigned To: Mark Banner (:standard8)
Depends on:
  Show dependency treegraph
Reported: 2012-01-17 13:37 PST by Mark Banner (:standard8)
Modified: 2012-11-25 19:31 PST (History)
1 user (show)
standard8: in‑testsuite+
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---

The fix (1.51 KB, patch)
2012-01-17 13:41 PST, Mark Banner (:standard8)
mconley: review+
standard8: approval‑comm‑aurora+
standard8: approval‑comm‑beta+
Details | Diff | Splinter Review

Description Mark Banner (:standard8) 2012-01-17 13:37:28 PST
EXCEPTION: Timeout waiting for modal dialog to open.
    at: utils.js line 429
       TimeoutError("Timeout waiting for modal dialog to open.") utils.js 429
       waitFor((function () this.waitingForOpen == null && this.monitorizeClose()),"Timeout waiting for modal dialog to open.",10000,100,[object Object]) utils.js 467
       WindowWatcher_waitForModalDialog("Addons:Install",(void 0)) test-window-helpers.js 398
       wait_for_modal_dialog("Addons:Install") test-window-helpers.js 631
       test_install_xpi_offer() test-install-xpi.js 158
            frame.js 557
            frame.js 626
            frame.js 669
            frame.js 497
            frame.js 675
            server.js 179
            server.js 183
Comment 1 Mark Banner (:standard8) 2012-01-17 13:41:14 PST
Created attachment 589284 [details] [diff] [review]
The fix

This has been happening randomly for a while but has just got a lot worse, I thought there was a bug filed but apparently not.

As it happens, the cause is AMO having a few issues (according to the status page), which is the perfect opportunity to debug. It appears that when we install an add-on there's a ping in to the cache to check for compatibility updates.

There's a pref that we can use to turn this off - extensions.getAddons.cache.enabled.

Doing an export NSPR_LOG_MODULES=nsHttp:5 and grepping the log, with the pref as its default, I was seeing "Host:", but with the pref turned off, there's no such line.

This should prevent our tests failing when there's no amo.
Comment 2 Mike Conley (:mconley) - (high latency on reviews and needinfos) 2012-01-17 13:47:37 PST
Comment on attachment 589284 [details] [diff] [review]
The fix

Solid patch - looks good to me.  All content-tabs tests are passing locally.

I don't think we test add-ons elsewhere, so I assume the rest of the tests are fine.  r=me.
Comment 3 Mark Banner (:standard8) 2012-01-17 13:52:31 PST
Checked in:

Note You need to log in before you can comment on or make changes to this bug.