Allow "check_port_available()" to raise socket errors
Categories
(Remote Protocol :: Marionette, enhancement, P2)
Tracking
(firefox66 fixed, firefox67 fixed)
People
(Reporter: whimboo, Assigned: whimboo)
References
Details
Attachments
(1 file)
Currently we hide the error as raised by socket.bind()
inside of is_port_available
because this method is only allowed to return a boolean.
It would be better to allow this method to raise an error, so it can be re-used in calling code for better error messages.
We would need that to easier analyze what's happening on bug 1527963.
Assignee | ||
Comment 1•5 years ago
|
||
Lets make the initial request part of the more pressing one. As noticed when using ncap locally and keeping the port 2828 in use, Marionette didn't detect that and happily started Firefox. But then it was failing to connect to the server, and instead connected to ncap which times out after 120s.
So the initial port probe shouldn't make use of "SO_REUSEADDR".
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
We actually cannot remove this socket option because it would result in failures for restart tests. As such lets try to keep this bug simple and only make the check_port_available
method more verbose.
Assignee | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/81945490d433 [marionette] Allow check_for_port to raise exceptions. r=automatedtester
Comment 7•5 years ago
|
||
bugherder |
Assignee | ||
Comment 9•5 years ago
|
||
Yes, for failure inspection it would be great to have this test-only patch uplifted to beta.
Comment 11•5 years ago
|
||
bugherder uplift |
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Updated•1 year ago
|
Description
•