Closed
Bug 1500856
Opened 7 years ago
Closed 7 years ago
Intermittent /webdriver/tests/refresh/user_prompts.py | test_ignore[capabilities0-alert] - setup error
Categories
(Remote Protocol :: Marionette, defect, P5)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1498944
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: ncsoregi [at] mozilla.com
https://treeherder.mozilla.org/logviewer.html#?job_id=206910859&repo=autoland
https://queue.taskcluster.net/v1/task/EXBGQQGoQcmyESqx8-JAkA/runs/0/artifacts/public/logs/live_backing.log
[task 2018-10-22T06:31:36.132Z] 06:31:36 INFO - TEST-PASS | /webdriver/tests/refresh/user_prompts.py | test_dismiss_and_notify[capabilities0-confirm-False]
[task 2018-10-22T06:31:36.132Z] 06:31:36 INFO - TEST-PASS | /webdriver/tests/refresh/user_prompts.py | test_dismiss_and_notify[capabilities0-prompt-None]
[task 2018-10-22T06:31:36.132Z] 06:31:36 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/refresh/user_prompts.py | test_ignore[capabilities0-alert] - setup error
[task 2018-10-22T06:31:36.132Z] 06:31:36 INFO - capabilities = {'unhandledPromptBehavior': 'ignore'}
[task 2018-10-22T06:31:36.133Z] 06:31:36 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox/firefox', 'pref...b-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444}
[task 2018-10-22T06:31:36.133Z] 06:31:36 INFO - request = <SubRequest 'session' for <Function 'test_ignore[capabilities0-alert]'>>
[task 2018-10-22T06:31:36.133Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.134Z] 06:31:36 INFO - @pytest.fixture(scope="function")
[task 2018-10-22T06:31:36.135Z] 06:31:36 INFO - def session(capabilities, configuration, request):
[task 2018-10-22T06:31:36.135Z] 06:31:36 INFO - """Create and start a session for a test that does not itself test session creation.
[task 2018-10-22T06:31:36.135Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.135Z] 06:31:36 INFO - By default the session will stay open after each test, but we always try to start a
[task 2018-10-22T06:31:36.136Z] 06:31:36 INFO - new one and assume that if that fails there is already a valid session. This makes it
[task 2018-10-22T06:31:36.136Z] 06:31:36 INFO - possible to recover from some errors that might leave the session in a bad state, but
[task 2018-10-22T06:31:36.136Z] 06:31:36 INFO - does not demand that we start a new session per test."""
[task 2018-10-22T06:31:36.136Z] 06:31:36 INFO - global _current_session
[task 2018-10-22T06:31:36.137Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.137Z] 06:31:36 INFO - # Update configuration capabilities with custom ones from the
[task 2018-10-22T06:31:36.137Z] 06:31:36 INFO - # capabilities fixture, which can be set by tests
[task 2018-10-22T06:31:36.137Z] 06:31:36 INFO - caps = copy.deepcopy(configuration["capabilities"])
[task 2018-10-22T06:31:36.138Z] 06:31:36 INFO - caps.update(capabilities)
[task 2018-10-22T06:31:36.138Z] 06:31:36 INFO - caps = {"alwaysMatch": caps}
[task 2018-10-22T06:31:36.138Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.139Z] 06:31:36 INFO - # If there is a session with different capabilities active, end it now
[task 2018-10-22T06:31:36.139Z] 06:31:36 INFO - if _current_session is not None and (
[task 2018-10-22T06:31:36.140Z] 06:31:36 INFO - caps != _current_session.requested_capabilities):
[task 2018-10-22T06:31:36.141Z] 06:31:36 INFO - _current_session.end()
[task 2018-10-22T06:31:36.141Z] 06:31:36 INFO - _current_session = None
[task 2018-10-22T06:31:36.142Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.142Z] 06:31:36 INFO - if _current_session is None:
[task 2018-10-22T06:31:36.142Z] 06:31:36 INFO - _current_session = webdriver.Session(
[task 2018-10-22T06:31:36.143Z] 06:31:36 INFO - configuration["host"],
[task 2018-10-22T06:31:36.143Z] 06:31:36 INFO - configuration["port"],
[task 2018-10-22T06:31:36.143Z] 06:31:36 INFO - capabilities=caps)
[task 2018-10-22T06:31:36.144Z] 06:31:36 INFO - try:
[task 2018-10-22T06:31:36.145Z] 06:31:36 INFO - > _current_session.start()
[task 2018-10-22T06:31:36.145Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.146Z] 06:31:36 INFO - capabilities = {'unhandledPromptBehavior': 'ignore'}
[task 2018-10-22T06:31:36.147Z] 06:31:36 INFO - caps = {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox/firefox', 'prefs...platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}, 'unhandledPromptBehavior': 'ignore'}}
[task 2018-10-22T06:31:36.147Z] 06:31:36 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox/firefox', 'pref...b-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444}
[task 2018-10-22T06:31:36.148Z] 06:31:36 INFO - request = <SubRequest 'session' for <Function 'test_ignore[capabilities0-alert]'>>
[task 2018-10-22T06:31:36.148Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.149Z] 06:31:36 INFO - tests/web-platform/tests/webdriver/tests/conftest.py:150:
[task 2018-10-22T06:31:36.149Z] 06:31:36 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2018-10-22T06:31:36.150Z] 06:31:36 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:421: in start
[task 2018-10-22T06:31:36.150Z] 06:31:36 INFO - value = self.send_command("POST", "session", body=body)
[task 2018-10-22T06:31:36.151Z] 06:31:36 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2018-10-22T06:31:36.151Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.151Z] 06:31:36 INFO - self = <Session (disconnected)>, method = 'POST', url = 'session'
[task 2018-10-22T06:31:36.152Z] 06:31:36 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox...latform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}, 'unhandledPromptBehavior': 'ignore'}}}
[task 2018-10-22T06:31:36.152Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.152Z] 06:31:36 INFO - def send_command(self, method, url, body=None):
[task 2018-10-22T06:31:36.153Z] 06:31:36 INFO - """
[task 2018-10-22T06:31:36.153Z] 06:31:36 INFO - Send a command to the remote end and validate its success.
[task 2018-10-22T06:31:36.153Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.154Z] 06:31:36 INFO - :param method: HTTP method to use in request.
[task 2018-10-22T06:31:36.154Z] 06:31:36 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2018-10-22T06:31:36.155Z] 06:31:36 INFO - e.g. `window/rect`.
[task 2018-10-22T06:31:36.155Z] 06:31:36 INFO - :param body: Optional body of the HTTP request.
[task 2018-10-22T06:31:36.155Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.155Z] 06:31:36 INFO - :return: `None` if the HTTP response body was empty, otherwise
[task 2018-10-22T06:31:36.156Z] 06:31:36 INFO - the `value` field returned after parsing the response
[task 2018-10-22T06:31:36.156Z] 06:31:36 INFO - body as JSON.
[task 2018-10-22T06:31:36.157Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.157Z] 06:31:36 INFO - :raises error.WebDriverException: If the remote end returns
[task 2018-10-22T06:31:36.158Z] 06:31:36 INFO - an error.
[task 2018-10-22T06:31:36.158Z] 06:31:36 INFO - :raises ValueError: If the response body does not contain a
[task 2018-10-22T06:31:36.158Z] 06:31:36 INFO - `value` key.
[task 2018-10-22T06:31:36.159Z] 06:31:36 INFO - """
[task 2018-10-22T06:31:36.159Z] 06:31:36 INFO - response = self.transport.send(
[task 2018-10-22T06:31:36.160Z] 06:31:36 INFO - method, url, body,
[task 2018-10-22T06:31:36.160Z] 06:31:36 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2018-10-22T06:31:36.161Z] 06:31:36 INFO - session=self)
[task 2018-10-22T06:31:36.161Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.162Z] 06:31:36 INFO - if response.status != 200:
[task 2018-10-22T06:31:36.162Z] 06:31:36 INFO - err = error.from_response(response)
[task 2018-10-22T06:31:36.162Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.163Z] 06:31:36 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2018-10-22T06:31:36.163Z] 06:31:36 INFO - # The driver could have already been deleted the session.
[task 2018-10-22T06:31:36.164Z] 06:31:36 INFO - self.session_id = None
[task 2018-10-22T06:31:36.164Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.165Z] 06:31:36 INFO - > raise err
[task 2018-10-22T06:31:36.166Z] 06:31:36 INFO - E UnknownErrorException: unknown error (500): connection refused
[task 2018-10-22T06:31:36.166Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.167Z] 06:31:36 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox...latform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}, 'unhandledPromptBehavior': 'ignore'}}}
[task 2018-10-22T06:31:36.168Z] 06:31:36 INFO - err = <UnknownErrorException http_status=500>
[task 2018-10-22T06:31:36.168Z] 06:31:36 INFO - method = 'POST'
[task 2018-10-22T06:31:36.169Z] 06:31:36 INFO - response = <Response status=500 error=<UnknownErrorException http_status=500>>
[task 2018-10-22T06:31:36.169Z] 06:31:36 INFO - self = <Session (disconnected)>
[task 2018-10-22T06:31:36.170Z] 06:31:36 INFO - url = 'session'
[task 2018-10-22T06:31:36.171Z] 06:31:36 INFO -
[task 2018-10-22T06:31:36.171Z] 06:31:36 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:472: UnknownErrorException
[task 2018-10-22T06:31:36.173Z] 06:31:36 INFO - .....
[task 2018-10-22T06:31:36.173Z] 06:31:36 INFO - TEST-OK | /webdriver/tests/refresh/user_prompts.py | took 132582ms
There was no `sessionstore-windows-restored` notification fired during startup:
> [task 2018-10-22T06:30:17.808Z] 06:30:17 INFO - PID 7364 | 1540189817797 Marionette DEBUG Received observer notification toplevel-window-ready
> [task 2018-10-22T06:31:14.417Z] 06:31:14 INFO - PID 7364 | 1540189874409 mozrunner::runner DEBUG Killing process 8404
> [task 2018-10-22T06:31:14.433Z] 06:31:14 INFO - PID 7364 | 1540189874427 webdriver::server DEBUG <- 500 Internal Server Error {"value":{"error":"unknown error","message":"connection refused","stacktrace":""}}
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Comment 2•3 years ago
|
||
Moving bug to Remote Protocol::Marionette component per bug 1815831.
Component: geckodriver → Marionette
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•