Closed
Bug 1412222
Opened 7 years ago
Closed 7 years ago
start_session calls wait_for_port and ignores the result
Categories
(Remote Protocol :: Marionette, defect)
Tracking
(firefox57 fixed, firefox58 fixed)
RESOLVED
FIXED
mozilla58
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Attachments
(1 file)
Currently `start_session()` calls `wait_for_port()` in the case of Marionette doesn't manage the process. That is fine, but it actually doesn't take care of the result at all. It means that if a connection was not successful, the code would still continue in creating a TCPTransport client. This can fail with what I have seen on bug 1410366 comment 32.
https://dxr.mozilla.org/mozilla-central/rev/aa958b29c149a67fce772f8473e9586e71fbdb46/testing/marionette/client/marionette_driver/marionette.py#1225
I would propose that we make use of `raise_for_port()` here, so `start_session()` aborts early, and will not try to instantiate the client at all.
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8922704 [details]
Bug 1412222 - start_session should not ignore the result of connection attempts.
https://reviewboard.mozilla.org/r/193834/#review199010
Attachment #8922704 -
Flags: review?(ato) → review+
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8a0ea908547d
start_session should not ignore the result of connection attempts. r=ato
![]() |
||
Comment 4•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Assignee | ||
Comment 5•7 years ago
|
||
To improve stability of the marionette client I would like to see this test only patch uplifted to beta. Thanks.
status-firefox57:
--- → affected
Whiteboard: [checkin-needed-beta]
Comment 6•7 years ago
|
||
bugherder uplift |
Whiteboard: [checkin-needed-beta]
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
•