Closed Bug 1664968 Opened 4 years ago Closed 4 years ago

Intermittent [tier2] Mn-fis testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py TestNavigate.test_type_to_remote_tab | IOError: Process killed because the connection to Marionette server is lost. Check gecko.log for errors

Categories

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

defect

Tracking

(Fission Milestone:M7, firefox84 fixed)

RESOLVED FIXED
84 Branch
Fission Milestone M7
Tracking Status
firefox84 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: whimboo)

References

Details

(Keywords: intermittent-failure)

Filed by: rmaries [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=315708851&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/C-zmvloXSuueSGFj1L-5zw/runs/0/artifacts/public/logs/live_backing.log


[task 2020-09-15T03:19:57.479Z] 03:19:57     INFO - TEST-START | testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py TestNavigate.test_type_to_remote_tab
[task 2020-09-15T03:25:58.232Z] 03:25:58     INFO -  1600140358225	Marionette	DEBUG	Closed connection 19
[task 2020-09-15T03:27:09.287Z] 03:27:09     INFO - TEST-UNEXPECTED-ERROR | testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py TestNavigate.test_type_to_remote_tab | IOError: Process killed because the connection to Marionette server is lost. Check gecko.log for errors (Reason: Connection timed out after 360.0s)
[task 2020-09-15T03:27:09.287Z] 03:27:09     INFO - Traceback (most recent call last):
[task 2020-09-15T03:27:09.287Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 196, in run
[task 2020-09-15T03:27:09.287Z] 03:27:09     INFO -     testMethod()
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py", line 337, in test_type_to_remote_tab
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -     message="'{}' hasn't been loaded".format(self.test_page_remote))
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/wait.py", line 129, in until
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -     rv = condition(self.marionette)
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py", line 336, in <lambda>
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -     lambda mn: mn.get_url() == self.test_page_remote,
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1424, in get_url
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -     key="value")
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/decorators.py", line 36, in _
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -     m._handle_socket_failure()
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 682, in _handle_socket_failure
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -     reraise(IOError, IOError(message.format(returncode=returncode, reason=exc)), tb)
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/decorators.py", line 26, in _
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -     return func(*args, **kwargs)
[task 2020-09-15T03:27:09.288Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 594, in _send_message
[task 2020-09-15T03:27:09.289Z] 03:27:09     INFO -     msg = self.client.request(name, params)
[task 2020-09-15T03:27:09.289Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/transport.py", line 276, in request
[task 2020-09-15T03:27:09.289Z] 03:27:09     INFO -     return self.receive()
[task 2020-09-15T03:27:09.289Z] 03:27:09     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/transport.py", line 186, in receive
[task 2020-09-15T03:27:09.289Z] 03:27:09     INFO -     raise socket.timeout("Connection timed out after {}s".format(self.socket_timeout))
[task 2020-09-15T03:27:09.289Z] 03:27:09     INFO - TEST-INFO took 431809ms
[task 2020-09-15T03:27:09.289Z] 03:27:09    ERROR - test_end for testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py TestNavigate.test_type_to_remote_tab logged while not in progress. Logged with data: {"status": "ERROR", "extra": {"class_name": "test_navigation.TestNavigate", "method_name": "test_type_to_remote_tab"}, "expected": "PASS", "test": "testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py TestNavigate.test_type_to_remote_tab", "message": "InvalidSessionIdException: Please start a session", "stack": "Traceback (most recent call last):\n  File \"/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py\", line 227, in run\n    self.tearDown()\n  File \"/builds/worker/workspace/build/tests/marionette/tests/testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py\", line 65, in tearDown\n    self.marionette.timeout.reset()\n  File \"/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/timeout.py\", line 104, in reset\n    self.script = DEFAULT_SCRIPT_TIMEOUT\n  File \"/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/timeout.py\", line 57, in script\n    self._set(\"script\", sec)\n  File \"/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/timeout.py\", line 33, in _set\n    self._marionette._send_message(\"WebDriver:SetTimeouts\", {name: ms})\n  File \"/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/decorators.py\", line 26, in _\n    return func(*args, **kwargs)\n  File \"/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py\", line 591, in _send_message\n    raise errors.InvalidSessionIdException(\"Please start a session\")\n"}

The WebDriver:GetCurrentURL command hangs here due to an unexpected remoteness change:

[task 2020-09-15T03:19:58.143Z] 03:19:58     INFO -  1600139998140	Marionette	DEBUG	19 -> [0,28,"WebDriver:GetCurrentURL",{}]
[task 2020-09-15T03:19:58.149Z] 03:19:58     INFO -  [Child 3386, Main Thread] WARNING: NS_ENSURE_TRUE(browserChrome) failed: file /builds/worker/checkouts/gecko/docshell/base/nsDocShell.cpp, line 11750
[task 2020-09-15T03:19:58.179Z] 03:19:58     INFO -  1600139998177	Marionette	TRACE	[82] Frame script loaded
[task 2020-09-15T03:19:58.180Z] 03:19:58     INFO -  1600139998178	Marionette	TRACE	[82] Frame script registered
[task 2020-09-15T03:19:58.183Z] 03:19:58     INFO -  1600139998181	Marionette	TRACE	[76] Received observer notification outer-window-destroyed
[task 2020-09-15T03:19:58.184Z] 03:19:58     INFO -  1600139998181	Marionette	TRACE	Detected remoteness change. New browsing context: 82

Right now this is basically based on bug 1347458 because we had to use the framescript again (bug 1663641). Bug 1664881 should get it fixed.

Depends on: 1347458, 1664881
Summary: Intermittent testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py TestNavigate.test_type_to_remote_tab | IOError: Process killed because the connection to Marionette server is lost. Check gecko.log for errors (Reason: Connection tim → Intermittent Fis testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py TestNavigate.test_type_to_remote_tab | IOError: Process killed because the connection to Marionette server is lost. Check gecko.log for errors (Reason: Connection
Fission Milestone: --- → M7
Depends on: 1519354
No longer depends on: 1347458
Summary: Intermittent Fis testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py TestNavigate.test_type_to_remote_tab | IOError: Process killed because the connection to Marionette server is lost. Check gecko.log for errors (Reason: Connection → Intermittent [tier2] Mn-fis testing/marionette/harness/marionette_harness/tests/unit/test_navigation.py TestNavigate.test_type_to_remote_tab | IOError: Process killed because the connection to Marionette server is lost. Check gecko.log for errors

I haven't seen this bug with actors enabled yet. So having bug 1660168 fixed should also fix this one.

Depends on: 1660168
Whiteboard: [marionette-fission-mvp]

This bug has been indeed fixed by turning on the Actor implementation in Marionette, and for Fission we do not want to support the framescript anytime longer.

Assignee: nobody → hskupin
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Whiteboard: [marionette-fission-mvp]
Target Milestone: --- → 84 Branch
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.