Closed Bug 1003083 Opened 10 years ago Closed 10 years ago

[zh-cn] Test failure "controller.waitForPageLoad(URI=https://addons.mozilla.org/zh-CN/firefox/licenses/5.txt, readyState=complete) " in testSecurityNotification.js

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect, P2)

defect

Tracking

(firefox30 fixed, firefox31 fixed, firefox32 fixed, firefox-esr24 fixed)

RESOLVED FIXED
Tracking Status
firefox30 --- fixed
firefox31 --- fixed
firefox32 --- fixed
firefox-esr24 --- fixed

People

(Reporter: AndreeaMatei, Assigned: danisielm)

References

()

Details

(Whiteboard: [mozmill-test-failure])

Attachments

(1 file, 2 obsolete files)

This also started on Saturday for Aurora zh-cn, reproduces on all platforms.

Affected line:
http://hg.mozilla.org/qa/mozmill-tests/file/mozilla-aurora/firefox/tests/remote/testSecurity/testSecurityNotification.js#l39
So this is reproducible? If yes, please get on it. We had so many waitForPageLoad() failures we were never able to understand. Now we would have a fantastic chance!
It's not reproducing locally for me, but I'll try to investigate it on a remote machine.
Might be a network issue as we're using remote pages.
Yep, it's something with the network as the page isn't loading.
Has a 12-25% reproducibility rate on daily ci testruns with zh-CN builds. (based on reports from the last days)
This is remote. Maybe we should use one of the boxes to run the tests on. I did more than 200 runs locally but wasn't able to see the failure.
An update here, when it fails with 
>controller.waitForPageLoad(URI=https://addons.mozilla.org/zh-CN/firefox/licenses/5.txt, readyState=complete)
it fails because it can't find the page. When it fails with:
>controller.waitForPageLoad(URI=http://www.firefox.com.cn/, readyState=loading)
it fails because the page takes too long to load, that's due to latency probably coused by the fact that data center that delivers this content is in China. For the second case increasing the timeout for waitForPageLoad should be enough.
(In reply to Cosmin Malutan from comment #8)
> An update here, when it fails with 
> >controller.waitForPageLoad(URI=https://addons.mozilla.org/zh-CN/firefox/licenses/5.txt, readyState=complete)
> it fails because it can't find the page

Interesting. Can you please check which events are triggered here? Therefore please enable the dump statements in window.js especially for the error case. We should have a 404 here, so not sure why we get a complete state.

> >controller.waitForPageLoad(URI=http://www.firefox.com.cn/, readyState=loading)
> it fails because the page takes too long to load, that's due to latency
> probably coused by the fact that data center that delivers this content is
> in China. For the second case increasing the timeout for waitForPageLoad
> should be enough.

No, we shouldn't increase the timeout but fix the real underlying issue! No-one would expect to wait that long to see the loading of the page finished. Please also enable debugging in Firefox, and check the debug output. Maybe you even want to create a HTTP log, so we can see which servers are getting hit.
Failed again today on Firefox 31.0a2 Aurora zh-CN on mm-ub-1204-64-2.
http://mozmill-daily.blargon7.com/#/remote/report/7a69d3e8424ecf8642bb6566e475f5c5
Please file a bug so we can make that faster. It's a bit way too long to load that page.
Lots of failures accessing http://www.firefox.com.cn/ this week with that locale. 
That happens as we access unsecure page: http://mozilla.org/ which get's redirected to http://www.firefox.com.cn/.

I suggest to change the test to visit http://mozqa.com/ as unsecure page so we don't get retirects depending on locale.
(In reply to daniel.gherasim from comment #14)
> That happens as we access unsecure page: http://mozilla.org/ which get's
> redirected to http://www.firefox.com.cn/.

Does that also happen when you run the zh-cn locale and manually open that page? If that is the case I would agree, also given that we always wanted to utilize mozqa.com.
Did that manually & it took about 25 seconds to load.
Running the test locally I can reproduce this 20/30 times. 
Also filed bug 1014549 to reduce loading time on that page.
Attachment #8427016 - Flags: review?(andrei.eftimie)
Attachment #8427016 - Flags: review?(andreea.matei)
Comment on attachment 8427016 [details] [diff] [review]
replace_mozilla_org_with_mozqa_com.patch

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

We should try changing all urls to mozqa.com

As said inline, we still lack a verified cert on mozqa.com
But It would still be better to change at least 2 out of 3 urls to our own domain.

::: firefox/tests/remote/testSecurity/testSecurityNotification.js
@@ +8,5 @@
>  var { assert, expect } = require("../../../../lib/assertions");
>  
>  const TEST_DATA = [
>    // Invalid cert page
>    "https://summitbook.mozilla.org",

We can use https://ssl-md5.mozqa.com/

@@ +10,5 @@
>  const TEST_DATA = [
>    // Invalid cert page
>    "https://summitbook.mozilla.org",
>    // Secure page
>    "https://addons.mozilla.org/licenses/5.txt",

Unfortunately I don't think we have an externally verified cert on mozqa.com
Attachment #8427016 - Flags: review?(andrei.eftimie)
Attachment #8427016 - Flags: review?(andreea.matei)
Attachment #8427016 - Flags: review-
Actually these are the domains that will be used by mozqa.com once we make the switch (see bug 991103):
> www.mozqa.com
> ssl-ov.mozqa.com
> ssl-selfsigned.mozqa.com
> ssl-dv.mozqa.com
> summitbook.mozilla.org
> ssl-md5.mozqa.com
> ssl-ss-unknownissuer.mozqa.com

Right now summitbook.mozilla.org responds from a different IP, so I'm not sure how this domain will work.
(In reply to Andrei Eftimie from comment #18)
> Actually these are the domains that will be used by mozqa.com once we make
> the switch (see bug 991103):

That's not true. All of them are currently active and get used.
Assignee: nobody → daniel.gherasim
Changed the links. Also the https://addons.mozilla.org/licenses/5.txt link to avoid the 'redirect' based on localized browser.

We can keep an eye on this & maybe whis will fix the controller.waitForPageLoad with readyState=complete problem.
Attachment #8427016 - Attachment is obsolete: true
Attachment #8429843 - Flags: review?(andrei.eftimie)
Attachment #8429843 - Flags: review?(andreea.matei)
Comment on attachment 8429843 [details] [diff] [review]
replace_mozilla_org_with_mozqa_com_v2.patch

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

I'm still confused as to why I see different IP's for different mozqa.com subdomains if they are resolved from the same host.

::: firefox/tests/remote/testSecurity/testSecurityNotification.js
@@ +8,5 @@
>  var { assert, expect } = require("../../../../lib/assertions");
>  
>  const TEST_DATA = [
>    // Invalid cert page
> +  "https://ssl-md5.mozqa.com",

As Henrik said since https://summitbook.mozilla.org is under our control, we should leave this as it was, we won't need to change the error code then.

@@ +13,2 @@
>    // Secure page
> +  "https://addons.mozilla.org/en-US/licenses/5.txt",

This looks like an easy fix for the chinese timeouts we're seeing. I'd rather go with this as a small change if none of the domains we control fulfill this tests requirements. We're having lots of failures because of this URL.
Attachment #8429843 - Flags: review?(andrei.eftimie)
Attachment #8429843 - Flags: review?(andreea.matei)
Attachment #8429843 - Flags: review-
Attachment #8429843 - Attachment is obsolete: true
Attachment #8431494 - Flags: review?(andrei.eftimie)
Attachment #8431494 - Flags: review?(andreea.matei)
Comment on attachment 8431494 [details] [diff] [review]
replace_mozilla_org_with_mozqa_com_v2.1.patch

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

This should stop all these failures on the CN domain. Local test completion time comes to 5s down from 15s with this change.
I'm landing this across branches. I'll make sure to check on Monday that we didn't have any other failures related to this.

Landed:
http://hg.mozilla.org/qa/mozmill-tests/rev/21ad90017cde (default)
http://hg.mozilla.org/qa/mozmill-tests/rev/e2993b5918f6 (mozilla-aurora)
http://hg.mozilla.org/qa/mozmill-tests/rev/bacf5f6e75e5 (mozilla-beta)
Attachment #8431494 - Flags: review?(andrei.eftimie)
Attachment #8431494 - Flags: review?(andreea.matei)
Attachment #8431494 - Flags: review+
Attachment #8431494 - Flags: checkin+
In the future I would still like to change https://addons.mozilla.org/licenses/5.txt to a domain under our control under mozqa.com
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
What's up with ESR24? Isn't it affected, Daniel?

(In reply to Andrei Eftimie from comment #24)
> In the future I would still like to change
> https://addons.mozilla.org/licenses/5.txt to a domain under our control
> under mozqa.com

How will you do this when mozqa.com has no EV certificate. But if the test specifically doesn't need one, I'm happy to change it to DV or OV.
(In reply to Henrik Skupin (:whimboo) from comment #25)
> What's up with ESR24? Isn't it affected, Daniel?
> 

ESR24 doesn't have localized builds but it's also affected by the waitForPageLoad on https://addons.mozilla.org/licenses/5.txt . 

Patch applies cleanly on ESR24 too so it can be landed.
(In reply to daniel.gherasim from comment #26)
> ESR24 doesn't have localized builds

Why you think so? While we don't have nightly builds for localizations, we still have releases for all supported locales.
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: