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)

58 Branch
defect
Not set
normal

Tracking

(firefox57 fixed, firefox58 fixed)

RESOLVED FIXED
mozilla58
Tracking Status
firefox57 --- fixed
firefox58 --- fixed

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 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
https://hg.mozilla.org/mozilla-central/rev/8a0ea908547d
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
To improve stability of the marionette client I would like to see this test only patch uplifted to beta. Thanks.
Whiteboard: [checkin-needed-beta]
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: