Closed Bug 1491016 Opened 3 years ago Closed 2 years ago

Intermittent /webdriver/tests/close_window/user_prompts.py | test_accept[capabilities0-alert] - setup error

Categories

(Testing :: geckodriver, defect, P5)

Version 3
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: crash, intermittent-failure)

Filed by: apavel [at] mozilla.com

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

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

06:19:31     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
06:19:31     INFO - STDOUT: :437: in end
06:19:31     INFO - STDOUT:     self.send_command("DELETE", "session/%s" % self.session_id)
06:19:31     INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
06:19:31     INFO - STDOUT: self = <Session (disconnected)>, method = 'DELETE'
06:19:31     INFO - STDOUT: url = 'session/44d0f35a-1fc5-d14a-9bc1-778427badf20', body = None
06:19:31     INFO - STDOUT:     def send_command(self, method, url, body=None):
06:19:31     INFO - STDOUT:         """
06:19:31     INFO - STDOUT:             Send a command to the remote end and validate its success.
06:19:31     INFO - STDOUT:     
06:19:31     INFO - STDOUT:             :param method: HTTP method to use in request.
06:19:31     INFO - STDOUT:             :param uri: "Command part" of the HTTP request URL,
06:19:31     INFO - STDOUT:                 e.g. `window/rect`.
06:19:31     INFO - STDOUT:             :param body: Optional body of the HTTP request.
06:19:31     INFO - STDOUT:     
06:19:31     INFO - STDOUT:             :return: `None` if the HTTP response body was empty, otherwise
06:19:31     INFO - STDOUT:                 the `value` field returned after parsing the response
06:19:31     INFO - STDOUT:                 body as JSON.
06:19:31     INFO - STDOUT:     
06:19:31     INFO - STDOUT:             :raises error.WebDriverException: If the remote end returns
06:19:31     INFO - STDOUT:                 an error.
06:19:31     INFO - STDOUT:             :raises ValueError: If the response body does not contain a
06:19:31     INFO - STDOUT:                 `value` key.
06:19:31     INFO - STDOUT:             """
06:19:31     INFO - STDOUT:         response = self.transport.send(
06:19:31     INFO - STDOUT:             method, url, body,
06:19:31     INFO - STDOUT:             encoder=protocol.Encoder, decoder=protocol.Decoder,
06:19:31     INFO - STDOUT:             session=self)
06:19:31     INFO - STDOUT:     
06:19:31     INFO - STDOUT:         if response.status != 200:
06:19:31     INFO - STDOUT:             err = error.from_response(response)
06:19:31     INFO - STDOUT:     
06:19:31     INFO - STDOUT:             if isinstance(err, error.InvalidSessionIdException):
06:19:31     INFO - STDOUT:                 # The driver could have already been deleted the session.
06:19:31     INFO - STDOUT:                 self.session_id = None
06:19:31     INFO - STDOUT:     
06:19:31     INFO - STDOUT: >           raise err
06:19:31     INFO - STDOUT: E           UnknownErrorException: unknown error (500): Failed to decode response from marionette
06:19:31     INFO - STDOUT: body       = None
06:19:31     INFO - STDOUT: err        = <UnknownErrorException http_status=500>
06:19:31     INFO - STDOUT: method     = 'DELETE'
06:19:31     INFO - STDOUT: response   = <Response status=500 error=<UnknownErrorException http_status=500>>
06:19:31     INFO - STDOUT: self       = <Session (disconnected)>
06:19:31     INFO - STDOUT: url        = 'session/44d0f35a-1fc5-d14a-9bc1-778427badf20'
06:19:31     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
06:19:31     INFO - STDOUT: :473: UnknownErrorException
06:19:31     INFO - STDOUT: =============================== warnings summary ===============================
06:19:31     INFO - STDOUT: <undetermined location>
06:19:31     INFO - STDOUT:   Module already imported so cannot be rewritten: mozlog
06:19:31     INFO - STDOUT: -- Docs: http://doc.pytest.org/en/latest/warnings.html
06:19:31     INFO - STDOUT: =============== 17 passed, 1 warnings, 1 error in 27.64 seconds ================
06:19:31     INFO - 
06:19:31     INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/close_window/user_prompts.py | test_accept[capabilities0-alert] - setup error
06:19:31     INFO - capabilities = {'unhandledPromptBehavior': 'accept'}
06:19:31     INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/Users/cltbld/tasks/task_1536844599/build/application/Firefox Nigh...b-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444}
06:19:31     INFO - request = <SubRequest 'session' for <Function 'test_accept[capabilities0-alert]'>>
06:19:31     INFO - 
06:19:31     INFO -     @pytest.fixture(scope="function")
06:19:31     INFO -     def session(capabilities, configuration, request):
06:19:31     INFO -         """Create and start a session for a test that does not itself test session creation.
06:19:31     INFO -     
06:19:31     INFO -         By default the session will stay open after each test, but we always try to start a
06:19:31     INFO -         new one and assume that if that fails there is already a valid session. This makes it
06:19:31     INFO -         possible to recover from some errors that might leave the session in a bad state, but
06:19:31     INFO -         does not demand that we start a new session per test."""
06:19:31     INFO -         global _current_session
06:19:31     INFO -     
06:19:31     INFO -         # Update configuration capabilities with custom ones from the
06:19:31     INFO -         # capabilities fixture, which can be set by tests
06:19:31     INFO -         caps = copy.deepcopy(configuration["capabilities"])
06:19:31     INFO -         caps.update(capabilities)
06:19:31     INFO -         caps = {"alwaysMatch": caps}
06:19:31     INFO -     
06:19:31     INFO -         # If there is a session with different capabilities active, end it now
06:19:31     INFO -         if _current_session is not None and (
06:19:31     INFO -                 caps != _current_session.requested_capabilities):
06:19:31     INFO - >           _current_session.end()
06:19:31     INFO - 
06:19:31     INFO - capabilities = {'unhandledPromptBehavior': 'accept'}
06:19:31     INFO - caps       = {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/Users/cltbld/tasks/task_1536844599/build/application/Firefox Night...platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}, 'unhandledPromptBehavior': 'accept'}}
06:19:31     INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/Users/cltbld/tasks/task_1536844599/build/application/Firefox Nigh...b-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444}
06:19:31     INFO - request    = <SubRequest 'session' for <Function 'test_accept[capabilities0-alert]'>>
06:19:31     INFO - 
06:19:31     INFO - tests/web-platform/tests/webdriver/tests/conftest.py:141: 
06:19:31     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
06:19:31     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:437: in end
06:19:31     INFO -     self.send_command("DELETE", "session/%s" % self.session_id)
06:19:31     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Crash of Firefox, and no crash information due to bug 1490906.
Severity: normal → critical
Depends on: 1490906
Keywords: crash
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.