Closed
Bug 1198616
Opened 10 years ago
Closed 9 years ago
"TimeoutException: Timed out after 5 seconds" in test_safe_browsing_notification.py and test_safe_browsing_warning_pages.py
Categories
(Testing :: Firefox UI Tests, defect, P1)
Tracking
(firefox42 fixed, firefox43 fixed, firefox44 fixed, firefox45 fixed, firefox-esr38 fixed)
RESOLVED
FIXED
mozilla45
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
(Keywords: intermittent-failure)
Attachments
(1 file)
Looks like this failure happens because the target page has not been loaded within 5s:
Traceback (most recent call last):
File "c:\jenkins\workspace\mozilla-aurora_functional\venv\lib\site-packages\marionette\marionette_test.py", line 296, in run
testMethod()
File "c:\jenkins\workspace\mozilla-aurora_functional\venv\Lib\site-packages\firefox_ui_tests\functional\security\test_safe_browsing_notification.py", line 73, in test_notification_bar
self.check_not_badware_button(button_property, report_page)
File "c:\jenkins\workspace\mozilla-aurora_functional\venv\Lib\site-packages\firefox_ui_tests\functional\security\test_safe_browsing_notification.py", line 113, in check_not_badware_button
Wait(self.marionette).until(lambda mn: report_page in mn.get_url())
File "c:\jenkins\workspace\mozilla-aurora_functional\venv\lib\site-packages\marionette_driver\wait.py", line 143, in until
cause=last_exc)
TimeoutException: TimeoutException: Timed out after 5.0 seconds
I don't think that we should limit the Wait call to 5min given that this test is accessing remote content. We should increase the timeout or use a local page if possible.
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Comment hidden (Legacy TBPL/Treeherder Robot) |
Assignee | ||
Updated•9 years ago
|
Summary: "TimeoutException: Timed out after 5 seconds" in test_safe_browsing_notification.py → "TimeoutException: Timed out after 5 seconds" in test_safe_browsing_notification.py and test_safe_browsing_notification.py
Assignee | ||
Updated•9 years ago
|
Summary: "TimeoutException: Timed out after 5 seconds" in test_safe_browsing_notification.py and test_safe_browsing_notification.py → "TimeoutException: Timed out after 5 seconds" in test_safe_browsing_notification.py and test_safe_browsing_warning_pages.py
Comment hidden (Legacy TBPL/Treeherder Robot) |
Assignee | ||
Comment 5•9 years ago
|
||
Interestingly this issue doesn't appear for latest release. It may be a regression in DNS name resolution because watching the tests makes that visible that we wait a long time in looking up ...
Assignee | ||
Comment 6•9 years ago
|
||
No more failures since the fix on bug 1201715 has been landed. Looks like we got this fixed.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [failure] → [failure][fixed by bug 1201715]
Comment hidden (Legacy TBPL/Treeherder Robot) |
Assignee | ||
Comment 8•9 years ago
|
||
Doesn't look to be fixed. At least not for beta and maybe even release and esr38. I should go and further backport the fix on bug 1201715 for those branches. Reopening bug for now.
Status: RESOLVED → REOPENED
status-firefox41:
--- → affected
status-firefox42:
--- → affected
Resolution: FIXED → ---
Assignee | ||
Comment 9•9 years ago
|
||
Well, actually this is a page load issue which occurs after 30s. So this is valid and might have been a network issue around that time. The underlying issue was fixed by the patch on the other bug for aurora and beta too.
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•9 years ago
|
||
Not actually fixed. We still get those failures for the tests at least on mozilla-central from time to time.
Status: RESOLVED → REOPENED
status-firefox44:
--- → affected
Keywords: intermittent-failure
Resolution: FIXED → ---
Whiteboard: [failure][fixed by bug 1201715]
Assignee | ||
Comment 11•9 years ago
|
||
Maybe this failure is related to the "Service not available" 503 failure we currently get due to the migration process of that domain.
Assignee | ||
Comment 12•9 years ago
|
||
Ok, so the problem here is indeed a slow loading page. We check that the button is no longer available after clicking on it. But if the remote server is slow in serving the page, the current page is not getting unloaded. So we should better check for the new page being loaded first, and then do the button not existent check.
Assignee | ||
Comment 13•9 years ago
|
||
So we cannot flip those lines because we won't detect a page load. So a solution would be:
- Wait(self.marionette).until(expected.element_stale(button))
+ Wait(self.marionette, timeout=self.browser.timeout_page_load).until(
+ expected.element_stale(button))
I will check later if there is a better option for us.
Assignee | ||
Comment 14•9 years ago
|
||
Simple fix to ensure we do not fail in case of slow connection times to remote servers.
Assignee | ||
Comment 15•9 years ago
|
||
Bumping priority because nearly all tests were failing today with that failure. Orange factor will add a comment about that in the next couple of days I assume.
status-firefox41:
fixed → ---
status-firefox45:
--- → affected
status-firefox-esr38:
--- → affected
OS: Windows 7 → All
Priority: -- → P1
Attachment #8680844 -
Flags: review?(mjzffr) → review+
Assignee | ||
Comment 16•9 years ago
|
||
Merged to mozilla-central as:
https://github.com/mozilla/firefox-ui-tests/commit/ed85accfe2465706026cab2748502c2f92af9b6e
Backports will happen later or tomorrow.
Target Milestone: --- → Firefox 45
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 18•9 years ago
|
||
Actually this slowness is related to broken network routing and handled by bug 1170832. But we should harden our tests anyway.
Depends on: 1170832
Assignee | ||
Comment 19•9 years ago
|
||
Backported to all other branches:
https://github.com/mozilla/firefox-ui-tests/commit/bb0a9ebdd6fa72289dc4fb3a39e1420e0b1cc53d (aurora)
https://github.com/mozilla/firefox-ui-tests/commit/62d0e9d7f2b90cf3aa881e8bcbb6d7e11ac0f765 (beta)
https://github.com/mozilla/firefox-ui-tests/commit/f18beb68e55b23f57eaaadeb81f44dcb280f9858 (release)
https://github.com/mozilla/firefox-ui-tests/commit/1213b59dfacf5aec2b7fb077d13f5a3c96b1a96f (esr38)
Status: ASSIGNED → RESOLVED
Closed: 9 years ago → 9 years ago
Resolution: --- → FIXED
Comment hidden (Intermittent Failures Robot) |
Updated•9 years ago
|
Product: Mozilla QA → Testing
You need to log in
before you can comment on or make changes to this bug.
Description
•