Closed
Bug 1381343
Opened 8 years ago
Closed 8 years ago
Intermittent test_switch_window_content.py TestSwitchToWindowContent.test_switch_to_new_private_browsing_window_has_to_register_browsers | IOError: Process killed because the connection to Marionette server is lost (Connection timed out after 360.0s)
Categories
(Testing :: Marionette Client and Harness, defect)
Tracking
(firefox56 affected)
RESOLVED
WORKSFORME
| Tracking | Status | |
|---|---|---|
| firefox56 | --- | affected |
People
(Reporter: intermittent-bug-filer, Unassigned)
References
Details
(Keywords: intermittent-failure)
Comment 1•8 years ago
|
||
[task 2017-07-16T11:48:20.589907Z] 11:48:20 INFO - 1500205700584 Marionette TRACE 95 -> [0,31,"switchToWindow",{"focus":true,"name":"195"}]
[task 2017-07-16T11:54:20.691083Z] 11:54:20 INFO - 1500206060686 Marionette DEBUG Closed connection 95
[task 2017-07-16T11:55:26.769276Z] 11:55:26 INFO - TEST-UNEXPECTED-ERROR | test_switch_window_content.py TestSwitchToWindowContent.test_switch_to_new_private_browsing_window_has_to_register_browsers | IOError: Process killed because the connection to Marionette server is lost. Check gecko.log for errors (Reason: Connection timed out after 360.0s)
[task 2017-07-16T11:55:26.769583Z] 11:55:26 INFO - Traceback (most recent call last):
[task 2017-07-16T11:55:26.770339Z] 11:55:26 INFO - File "/home/worker/workspace/build/venv/local/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 156, in run
[task 2017-07-16T11:55:26.770957Z] 11:55:26 INFO - testMethod()
[task 2017-07-16T11:55:26.771522Z] 11:55:26 INFO - File "/home/worker/workspace/build/venv/local/lib/python2.7/site-packages/marionette_harness/marionette_test/decorators.py", line 150, in skip_wrapper
[task 2017-07-16T11:55:26.772240Z] 11:55:26 INFO - return test_item(self, *args, **kwargs)
[task 2017-07-16T11:55:26.772953Z] 11:55:26 INFO - File "/home/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_switch_window_content.py", line 166, in test_switch_to_new_private_browsing_window_has_to_register_browsers
[task 2017-07-16T11:55:26.773513Z] 11:55:26 INFO - self.marionette.switch_to_window(new_window)
[task 2017-07-16T11:55:26.774162Z] 11:55:26 INFO - File "/home/worker/workspace/build/venv/local/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1509, in switch_to_window
[task 2017-07-16T11:55:26.774691Z] 11:55:26 INFO - self._send_message("switchToWindow", body)
[task 2017-07-16T11:55:26.775281Z] 11:55:26 INFO - File "/home/worker/workspace/build/venv/local/lib/python2.7/site-packages/marionette_driver/decorators.py", line 28, in _
[task 2017-07-16T11:55:26.775791Z] 11:55:26 INFO - m._handle_socket_failure()
[task 2017-07-16T11:55:26.776408Z] 11:55:26 INFO - File "/home/worker/workspace/build/venv/local/lib/python2.7/site-packages/marionette_driver/decorators.py", line 23, in _
[task 2017-07-16T11:55:26.777001Z] 11:55:26 INFO - return func(*args, **kwargs)
[task 2017-07-16T11:55:26.777584Z] 11:55:26 INFO - File "/home/worker/workspace/build/venv/local/lib/python2.7/site-packages/marionette_driver/marionette.py", line 731, in _send_message
[task 2017-07-16T11:55:26.778201Z] 11:55:26 INFO - msg = self.client.request(name, params)
[task 2017-07-16T11:55:26.778746Z] 11:55:26 INFO - File "/home/worker/workspace/build/venv/local/lib/python2.7/site-packages/marionette_driver/transport.py", line 284, in request
[task 2017-07-16T11:55:26.779243Z] 11:55:26 INFO - return self.receive()
[task 2017-07-16T11:55:26.779766Z] 11:55:26 INFO - File "/home/worker/workspace/build/venv/local/lib/python2.7/site-packages/marionette_driver/transport.py", line 211, in receive
[task 2017-07-16T11:55:26.780322Z] 11:55:26 INFO - raise socket.timeout("Connection timed out after {}s".format(self.socket_timeout))
[task 2017-07-16T11:55:26.780842Z] 11:55:26 INFO - TEST-INFO took 426738ms
The test opens a new chrome window (private browsing window), and wants to switch to it. As such it should hit the following code in driver.js:
https://dxr.mozilla.org/mozilla-central/rev/13a2e506992ccf07c1358d9f22cbf2dfdcb0120f/testing/marionette/driver.js#1533-1548
So we most likely wait for the `browserListening` promise to be resolved:
https://dxr.mozilla.org/mozilla-central/rev/13a2e506992ccf07c1358d9f22cbf2dfdcb0120f/testing/marionette/driver.js#624-635
Maybe my changes for bug 1332122 sometimes can cause this issue. I don't see a reason right now to dig deeper into this given the very low intermittent failure rate.
Blocks: 1332122
status-firefox56:
--- → affected
| Comment hidden (Intermittent Failures Robot) |
Comment 3•8 years ago
|
||
Not seen a while so closing
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Updated•3 years ago
|
Product: Testing → Remote Protocol
Comment 4•3 years ago
|
||
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.
Description
•