Closed Bug 1535932 Opened 5 years ago Closed 5 years ago

Intermittent testing/marionette/harness/marionette_harness/tests/unit/test_typing.py TestTypingContentLegacy.test_should_fire_key_up_events | IOError: Port 127.0.0.1:2828 is unavailable ([Errno 98] Address already in use)

Categories

(Testing :: Marionette Client and Harness, defect, P5)

Version 3
x86_64
Android
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1540648

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure, regression)

#[markdown(off)]
Filed by: rmaries [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=234428090&repo=autoland

https://queue.taskcluster.net/v1/task/fAW44hWbTPGxFpdDPNFN3A/runs/0/artifacts/public/logs/live_backing.log

[task 2019-03-17T14:32:38.358Z] 14:32:38 INFO - TEST-START | testing/marionette/harness/marionette_harness/tests/unit/test_typing.py TestTypingContentLegacy.test_should_fire_key_up_events
[task 2019-03-17T14:32:38.463Z] 14:32:38 WARNING - TEST-UNEXPECTED-ERROR | testing/marionette/harness/marionette_harness/tests/unit/test_typing.py TestTypingContentLegacy.test_should_fire_key_up_events | IOError: Port 127.0.0.1:2828 is unavailable ([Errno 98] Address already in use)
[task 2019-03-17T14:32:38.463Z] 14:32:38 INFO - Traceback (most recent call last):
[task 2019-03-17T14:32:38.463Z] 14:32:38 INFO - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 140, in run
[task 2019-03-17T14:32:38.463Z] 14:32:38 INFO - self.setUp()
[task 2019-03-17T14:32:38.463Z] 14:32:38 INFO - File "/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_typing.py", line 370, in setUp
[task 2019-03-17T14:32:38.463Z] 14:32:38 INFO - super(TestTypingContent, self).setUp()
[task 2019-03-17T14:32:38.464Z] 14:32:38 INFO - File "/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_typing.py", line 23, in setUp
[task 2019-03-17T14:32:38.464Z] 14:32:38 INFO - super(TypingTestCase, self).setUp()
[task 2019-03-17T14:32:38.464Z] 14:32:38 INFO - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 331, in setUp
[task 2019-03-17T14:32:38.464Z] 14:32:38 INFO - super(MarionetteTestCase, self).setUp()
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 254, in setUp
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - self.marionette.start_session()
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/decorators.py", line 26, in _
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - return func(*args, **kwargs)
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1103, in start_session
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - self.start_binary(timeout)
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 478, in start_binary
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - reraise(IOError, msg, tb)
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 474, in start_binary
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - self.check_port_available(self.port, host=self.host)
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 522, in check_port_available
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - s.bind((host, port))
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - File "/usr/lib/python2.7/socket.py", line 228, in meth
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - return getattr(self._sock,name)(*args)
[task 2019-03-17T14:32:38.465Z] 14:32:38 INFO - TEST-INFO took 105ms

I think this might be related to bug 1529960.

(In reply to Treeherder Bug Filer from comment #0)

I think this might be related to bug 1529960.

rmaries: I'm not disputing your suggestion, but was wondering if there was anything in particular that led you to think the pidof change was responsible? Nothing stood out to me but I don't have the same context.

Flags: needinfo?(rmaries)

(In reply to Bob Clary [:bc:] from comment #1)

(In reply to Treeherder Bug Filer from comment #0)

I think this might be related to bug 1529960.

rmaries: I'm not disputing your suggestion, but was wondering if there was anything in particular that led you to think the pidof change was responsible? Nothing stood out to me but I don't have the same context.

Looking for an existent bug for this fail I've found bug 1527963 which I thought is a general bug for this kind of failures and it is closed as duplicate of bug 1529960.

Flags: needinfo?(rmaries)

Right. This is Android 7.0 x86-64 opt which the "workaround" was to try once in bug 1529960 comment 7. I guess once is not enough always. So this isn't a regression caused by bug 1529960 but a sign that bug 1529960 wasn't completely sufficient. Thanks! That puts things in perspective.

Component: Mozbase → Marionette
OS: Unspecified → Android
Hardware: Unspecified → x86_64
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Product: Testing → Remote Protocol
Moving bug to Testing::Marionette Client and Harness component per bug 1815831.
Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in before you can comment on or make changes to this bug.