Closed
Bug 1612474
Opened 5 years ago
Closed 5 years ago
Intermittent /webdriver/tests/execute_script/user_prompts.py | test_dismiss[capabilities0-alert-None] - setup error [connection refused]
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: dluca [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=287037203&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/AKGzbbs0ROyrO7--T7cePw/runs/0/artifacts/public/logs/live_backing.log
INFO - TEST-PASS | /webdriver/tests/execute_script/user_prompts.py | test_accept_and_notify[capabilities0-alert-None]
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - TEST-PASS | /webdriver/tests/execute_script/user_prompts.py | test_accept_and_notify[capabilities0-confirm-True]
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - TEST-PASS | /webdriver/tests/execute_script/user_prompts.py | test_accept_and_notify[capabilities0-prompt-]
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/execute_script/user_prompts.py | test_dismiss[capabilities0-alert-None] - setup error
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - capabilities = {'unhandledPromptBehavior': 'dismiss'}
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': 'Z:\task_1580434816\build\application\firefox\firefox.exe', 'prefs'...platform.test,www2.www.not-web-platform.test', 'network.process.enabled': False}}}, 'host': '127.0.0.1', 'port': 50741}
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - request = <SubRequest 'session' for <Function 'test_dismiss[capabilities0-alert-None]'>>
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - @pytest.fixture(scope="function")
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - def session(capabilities, configuration, request):
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - """Create and start a session for a test that does not itself test session creation.
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - By default the session will stay open after each test, but we always try to start a
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - new one and assume that if that fails there is already a valid session. This makes it
[task 2020-01-31T02:10:44.169Z] 02:10:44 INFO - possible to recover from some errors that might leave the session in a bad state, but
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - does not demand that we start a new session per test."""
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - global _current_session
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - # Update configuration capabilities with custom ones from the
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - # capabilities fixture, which can be set by tests
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - caps = copy.deepcopy(configuration["capabilities"])
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - caps.update(capabilities)
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - caps = {"alwaysMatch": caps}
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - # If there is a session with different capabilities active, end it now
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - if _current_session is not None and (
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - caps != _current_session.requested_capabilities):
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - _current_session.end()
[task 2020-01-31T02:10:44.170Z] 02:10:44 INFO - _current_session = None
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - if _current_session is None:
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - _current_session = webdriver.Session(
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - configuration["host"],
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - configuration["port"],
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - capabilities=caps)
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - try:
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - > _current_session.start()
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - capabilities = {'unhandledPromptBehavior': 'dismiss'}
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - caps = {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1580434816\build\application\firefox\firefox.exe', 'prefs':...atform.test,www2.www.not-web-platform.test', 'network.process.enabled': False}}, 'unhandledPromptBehavior': 'dismiss'}}
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': 'Z:\task_1580434816\build\application\firefox\firefox.exe', 'prefs'...platform.test,www2.www.not-web-platform.test', 'network.process.enabled': False}}}, 'host': '127.0.0.1', 'port': 50741}
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - request = <SubRequest 'session' for <Function 'test_dismiss[capabilities0-alert-None]'>>
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - tests\web-platform\tests\webdriver\tests\support\fixtures.py:150:
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:428: in start
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - value = self.send_command("POST", "session", body=body)
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - self = <Session (disconnected)>, method = 'POST', url = 'session'
[task 2020-01-31T02:10:44.171Z] 02:10:44 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1580434816\build\application\firefox\firef...tform.test,www2.www.not-web-platform.test', 'network.process.enabled': False}}, 'unhandledPromptBehavior': 'dismiss'}}}
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - def send_command(self, method, url, body=None):
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - """
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - Send a command to the remote end and validate its success.
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - :param method: HTTP method to use in request.
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - e.g. `window/rect`.
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - :param body: Optional body of the HTTP request.
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - :return: `None` if the HTTP response body was empty, otherwise
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - the `value` field returned after parsing the response
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - body as JSON.
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - :raises error.WebDriverException: If the remote end returns
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - an error.
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - :raises ValueError: If the response body does not contain a
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - `value` key.
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - """
[task 2020-01-31T02:10:44.172Z] 02:10:44 INFO - response = self.transport.send(
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - method, url, body,
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - session=self)
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - if response.status != 200:
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - err = error.from_response(response)
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - # The driver could have already been deleted the session.
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - self.session_id = None
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - > raise err
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - E TimeoutException: timeout (500): connection refused
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1580434816\build\application\firefox\firef...tform.test,www2.www.not-web-platform.test', 'network.process.enabled': False}}, 'unhandledPromptBehavior': 'dismiss'}}}
[task 2020-01-31T02:10:44.173Z] 02:10:44 INFO - err = <TimeoutException http_status=500>
[task 2020-01-31T02:10:44.174Z] 02:10:44 INFO - method = 'POST'
[task 2020-01-31T02:10:44.174Z] 02:10:44 INFO - response = <Response status=500 error=<TimeoutException http_status=500>>
[task 2020-01-31T02:10:44.174Z] 02:10:44 INFO - self = <Session (disconnected)>
[task 2020-01-31T02:10:44.174Z] 02:10:44 INFO - url = 'session'
[task 2020-01-31T02:10:44.174Z] 02:10:44 INFO -
[task 2020-01-31T02:10:44.174Z] 02:10:44 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:479: TimeoutException
[task 2020-01-31T02:10:44.174Z] 02:10:44 INFO - ...........
[task 2020-01-31T02:10:44.174Z] 02:10:44 INFO - TEST-OK | /webdriver/tests/execute_script/user_prompts.py | took 92147ms
[task 2020-01-31T02:10:44.254Z] 02:10:44 INFO - Closing logging queue
[task 2020-01-31T02:10:44.254Z] 02:10:44 INFO - queue closed
[task 2020-01-31T02:10:44.254Z] 02:10:44 INFO - Starting runner
[task 2020-01-31T02:10:44.719Z] 02:10:44 INFO - PID 2732 | 1580436644709 geckodriver DEBUG Listening on 127.0.0.1:51007
[task 2020-01-31T02:10:45.208Z] 02:10:45 INFO - WebDriver HTTP server listening at http://127.0.0.1:51007/
[task 2020-01-31T02:10:45.208Z] 02:10:45 INFO - TEST-START | /webdriver/tests/find_elements/find.py
Updated•5 years ago
|
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
Summary: Intermittent /webdriver/tests/execute_script/user_prompts.py | test_dismiss[capabilities0-alert-None] - setup error → Intermittent /webdriver/tests/execute_script/user_prompts.py | test_dismiss[capabilities0-alert-None] - setup error [connection refused]
Comment hidden (Intermittent Failures Robot) |
Comment 3•2 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
•