Closed
Bug 1302707
Opened 8 years ago
Closed 8 years ago
Timeout error not returned when elapsing page loading timeout
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox50 wontfix, firefox51 fixed, firefox52 fixed)
RESOLVED
FIXED
mozilla52
People
(Reporter: whimboo, Assigned: ato)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(14 files)
781 bytes,
text/plain
|
Details | |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
automatedtester
:
review+
|
Details |
Just noticed this while investigating a hidden test failure which appeared with my changes on bug 1156427.
We seem to constantly fail to raise the TimeoutException in those cases when any about: page has been loaded before. See the attached testcase for example (part of test_navigation.py).
For now I will disable this specific test via bug 1156427. We should not forget to re-enable it.
Assignee | ||
Comment 1•8 years ago
|
||
I will take this. hskupin caused me to open a can of worms, and I’ve found numerous other problems surrounding this.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Reporter | ||
Comment 11•8 years ago
|
||
mozreview-review |
Comment on attachment 8791305 [details]
Bug 1302707 - Correct input types for timeout function;
https://reviewboard.mozilla.org/r/78748/#review77374
::: testing/marionette/harness/marionette/tests/unit/test_implicit_waits.py:15
(Diff revision 1)
> class TestImplicitWaits(MarionetteTestCase):
> def testShouldImplicitlyWaitForASingleElement(self):
> test_html = self.marionette.absolute_url("test_dynamic.html")
> self.marionette.navigate(test_html)
> add = self.marionette.find_element(By.ID, "adder")
> - self.marionette.set_search_timeout("30000")
> + self.marionette.set_search_timeout(30000)
It might be good to leave a test with string, so we can check that the type conversion will still work.
Reporter | ||
Comment 12•8 years ago
|
||
mozreview-review |
Comment on attachment 8791306 [details]
Bug 1302707 - Replace uses of Marionette.timeouts with set_page_load_timeout in tests;
https://reviewboard.mozilla.org/r/78750/#review77376
::: testing/marionette/harness/marionette/tests/unit/test_navigation.py:128
(Diff revision 1)
> self.assertEqual("complete", state)
> self.assertTrue(self.marionette.find_element(By.ID, "mozLink"))
>
> def test_should_throw_a_timeoutexception_when_loading_page(self):
> try:
> - self.marionette.timeouts("page load", 0)
> + self.marionette.set_page_load_timeout(0)
Keep in mind that this patch needs an update regarding my landed changes on autoland. The test is currently marked as skipped.
Comment 13•8 years ago
|
||
mozreview-review |
Comment on attachment 8791299 [details]
Bug 1302707 - Remove GeckoDriver#setScriptTimeout;
https://reviewboard.mozilla.org/r/78736/#review77946
Attachment #8791299 -
Flags: review?(dburns) → review+
Comment 14•8 years ago
|
||
mozreview-review |
Comment on attachment 8791300 [details]
Bug 1302707 - Remove GeckoDriver#setSearchTimeout;
https://reviewboard.mozilla.org/r/78738/#review77948
Attachment #8791300 -
Flags: review?(dburns) → review+
Comment 15•8 years ago
|
||
mozreview-review |
Comment on attachment 8791301 [details]
Bug 1302707 - Make GeckoDriver#timeouts spec compatible;
https://reviewboard.mozilla.org/r/78740/#review77950
Attachment #8791301 -
Flags: review?(dburns) → review+
Comment 16•8 years ago
|
||
mozreview-review |
Comment on attachment 8791303 [details]
Bug 1302707 - Add Marionette.set_page_load_timeout and adjust to new driver API;
https://reviewboard.mozilla.org/r/78744/#review77952
Attachment #8791303 -
Flags: review?(dburns) → review+
Comment 17•8 years ago
|
||
mozreview-review |
Comment on attachment 8791302 [details]
Bug 1302707 - Remove Marionette.timeouts from client;
https://reviewboard.mozilla.org/r/78742/#review77954
Attachment #8791302 -
Flags: review?(dburns) → review+
Comment 18•8 years ago
|
||
mozreview-review |
Comment on attachment 8791304 [details]
Bug 1302707 - Reuse Marionette.reset_timeouts in harness;
https://reviewboard.mozilla.org/r/78746/#review77956
Attachment #8791304 -
Flags: review?(dburns) → review+
Comment 19•8 years ago
|
||
mozreview-review |
Comment on attachment 8791305 [details]
Bug 1302707 - Correct input types for timeout function;
https://reviewboard.mozilla.org/r/78748/#review78456
Attachment #8791305 -
Flags: review?(dburns) → review+
Assignee | ||
Comment 20•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8791305 [details]
Bug 1302707 - Correct input types for timeout function;
https://reviewboard.mozilla.org/r/78748/#review77374
> It might be good to leave a test with string, so we can check that the type conversion will still work.
This is a good idea, but I think I will add this as a dedicated test case so we remember why we did it, if you agree.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 32•8 years ago
|
||
mozreview-review |
Comment on attachment 8791306 [details]
Bug 1302707 - Replace uses of Marionette.timeouts with set_page_load_timeout in tests;
https://reviewboard.mozilla.org/r/78750/#review79820
Attachment #8791306 -
Flags: review?(dburns) → review+
Comment 33•8 years ago
|
||
mozreview-review |
Comment on attachment 8791307 [details]
Bug 1302707 - Correct Marionette tests to match API changes;
https://reviewboard.mozilla.org/r/78752/#review79822
Attachment #8791307 -
Flags: review?(dburns) → review+
Comment 34•8 years ago
|
||
mozreview-review |
Comment on attachment 8794919 [details]
Bug 1302707 - Add test for Marionette:timeouts compat behaviour;
https://reviewboard.mozilla.org/r/81142/#review79824
Attachment #8794919 -
Flags: review?(dburns) → review+
Comment 35•8 years ago
|
||
mozreview-review |
Comment on attachment 8794923 [details]
Bug 1302707 - Unignore test that expects timeout error;
https://reviewboard.mozilla.org/r/81144/#review79826
Attachment #8794923 -
Flags: review?(dburns) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Summary: No TimeoutException raised in navigate() with timeout set after an about page was loaded → Timeout error not returned when elapsing page loading timeout
Comment 48•8 years ago
|
||
mozreview-review |
Comment on attachment 8795272 [details]
Bug 1302707 - Fix type check to allow page loading timeout of 0;
https://reviewboard.mozilla.org/r/81390/#review80248
Attachment #8795272 -
Flags: review?(dburns) → review+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 62•8 years ago
|
||
mozreview-review |
Comment on attachment 8795772 [details]
Bug 1302707 - Set the default page loading- and script timeout;
https://reviewboard.mozilla.org/r/81712/#review80956
Attachment #8795772 -
Flags: review?(dburns) → review+
Comment 63•8 years ago
|
||
Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bcd7283f53d6
Remove GeckoDriver#setScriptTimeout; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/b137cbc3015d
Remove GeckoDriver#setSearchTimeout; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/9f5ec882f0b9
Make GeckoDriver#timeouts spec compatible; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/a2e5784054a5
Remove Marionette.timeouts from client; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/2065cb35df80
Add Marionette.set_page_load_timeout and adjust to new driver API; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/8495bc553c45
Reuse Marionette.reset_timeouts in harness; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/05f9545d263f
Correct input types for timeout function; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/646af81d6c2e
Replace uses of Marionette.timeouts with set_page_load_timeout in tests; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/f665a904fc6b
Correct Marionette tests to match API changes; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/03a8529a7baa
Add test for Marionette:timeouts compat behaviour; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/6d9aac56c0fa
Unignore test that expects timeout error; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/8ef405957cfe
Fix type check to allow page loading timeout of 0; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/f8dbc2865d67
Set the default page loading- and script timeout; r=automatedtester
Comment 64•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/bcd7283f53d6
https://hg.mozilla.org/mozilla-central/rev/b137cbc3015d
https://hg.mozilla.org/mozilla-central/rev/9f5ec882f0b9
https://hg.mozilla.org/mozilla-central/rev/a2e5784054a5
https://hg.mozilla.org/mozilla-central/rev/2065cb35df80
https://hg.mozilla.org/mozilla-central/rev/8495bc553c45
https://hg.mozilla.org/mozilla-central/rev/05f9545d263f
https://hg.mozilla.org/mozilla-central/rev/646af81d6c2e
https://hg.mozilla.org/mozilla-central/rev/f665a904fc6b
https://hg.mozilla.org/mozilla-central/rev/03a8529a7baa
https://hg.mozilla.org/mozilla-central/rev/6d9aac56c0fa
https://hg.mozilla.org/mozilla-central/rev/8ef405957cfe
https://hg.mozilla.org/mozilla-central/rev/f8dbc2865d67
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Assignee | ||
Comment 65•8 years ago
|
||
Sheriffs: I’m not convinced this will apply cleanly to Aurora and Beta, but if it does please uplift as test-only changes.
Whiteboard: [checkin-needed-aurora][checkin-needed-beta]
Comment 66•8 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-aurora/rev/dd846f56708c
https://hg.mozilla.org/releases/mozilla-aurora/rev/a9982ca70afe
https://hg.mozilla.org/releases/mozilla-aurora/rev/7cd274832bf5
https://hg.mozilla.org/releases/mozilla-aurora/rev/915cc0459055
https://hg.mozilla.org/releases/mozilla-aurora/rev/2d92e455676a
https://hg.mozilla.org/releases/mozilla-aurora/rev/abd8c70863b5
https://hg.mozilla.org/releases/mozilla-aurora/rev/bcc9f9b2fd76
https://hg.mozilla.org/releases/mozilla-aurora/rev/584661e07983
https://hg.mozilla.org/releases/mozilla-aurora/rev/f0571bd4793b
https://hg.mozilla.org/releases/mozilla-aurora/rev/59e7b6843b45
https://hg.mozilla.org/releases/mozilla-aurora/rev/467f50444ef1
https://hg.mozilla.org/releases/mozilla-aurora/rev/079142762f42
https://hg.mozilla.org/releases/mozilla-aurora/rev/ebe183f4b761
status-firefox51:
--- → fixed
Whiteboard: [checkin-needed-aurora][checkin-needed-beta] → [checkin-needed-beta]
Comment 67•8 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/c269b01e8c43
https://hg.mozilla.org/releases/mozilla-beta/rev/017b6d1f94ae
https://hg.mozilla.org/releases/mozilla-beta/rev/65b9e6c2ebc1
https://hg.mozilla.org/releases/mozilla-beta/rev/9b2b1f7ed386
https://hg.mozilla.org/releases/mozilla-beta/rev/69e835c16323
https://hg.mozilla.org/releases/mozilla-beta/rev/5ef2aa3c2f0b
https://hg.mozilla.org/releases/mozilla-beta/rev/42c89df8a3b6
https://hg.mozilla.org/releases/mozilla-beta/rev/207c42ee8c1f
https://hg.mozilla.org/releases/mozilla-beta/rev/940456a3e1a6
https://hg.mozilla.org/releases/mozilla-beta/rev/908065fea4d1
https://hg.mozilla.org/releases/mozilla-beta/rev/b3cd57791e83
https://hg.mozilla.org/releases/mozilla-beta/rev/b45de44b4003
https://hg.mozilla.org/releases/mozilla-beta/rev/572ea1c38212
status-firefox50:
--- → fixed
Whiteboard: [checkin-needed-beta]
Comment 68•8 years ago
|
||
As it had an serious impact on the beta release, next time, please don't bypass the process by "cheating" with a test-only approval.
Reporter | ||
Comment 69•8 years ago
|
||
Just to add here... The update tests started to fail on Oct 1st, so a day after the push to mozilla-central. That's the time when the new code hit the Nightly or test package for the first time.
https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&filter-searchStr=fxup%20os%20x&filter-tier=1&filter-tier=2&filter-tier=3&bugfiler&fromchange=80a9c7007243ac4e931a8c4352723cbf840aff03
We should consider waiting for uplifts of Marionette changes until the next Nightly build has been successfully tested.
Assignee | ||
Comment 70•8 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #68)
> As it had an serious impact on the beta release, next time, please don't
> bypass the process by "cheating" with a test-only approval.
Please hold your horses. Detecting regressions caused by moving targets in out-of-tree code is impossible in the try integration process. The changes made in these patches have no effect on end-users since they are hidden behind a flag to enable Marionette, which normally qualifies for the test-only approval. The regression we are seeing here is in release automation, and not a regression that would affect users.
Anyway, the tl;dr here is that we are not so attached to the changes that we can’t back them out of beta. Can I plead to someone’s good will to do that for me as I don’t have the experience doing that on a beta tree?
Comment 71•8 years ago
|
||
After discussing on IRC, we decided to backout the change:
https://hg.mozilla.org/releases/mozilla-beta/rev/5a5fc43f88e40f423cd052b2b537761a6a492da8
Then, please apologize if my tone "looked bad", I would like to restate that release management should be involved in decision when it might impact the release (automation or not). This is why I asked that the uplift approval process is used.
Assignee | ||
Comment 72•8 years ago
|
||
(In reply to Sylvestre Ledru [:sylvestre] from comment #71)
> I would like to restate that
> release management should be involved in decision when it might impact the
> release (automation or not).
That is very reasonable and I apologise that I didn’t exert more diligence when writing this patch.
The core of the issue is that we have an inflexible situation with regards to making changes to the Marionette client, since it is being used for upgrade tests out-of-tree. This means it is easy to detect regressions against the current Firefox built on try, but much harder to detect whether it continues to work reliably with older versions.
As :whimboo said on IRC, we have to use the newer Marionette client version because the upgrade tests might use new APIs that were not available in the known-compatible client with the Firefox that is being upgraded from.
Thanks for backing the patches out.
Updated•8 years ago
|
Updated•2 years ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•