Closed
Bug 1680973
Opened 4 years ago
Closed 4 years ago
Intermittent [fission] /webdriver/tests/is_element_enabled/user_prompts.py | test_dismiss_and_notify[capabilities0-alert-None] - setup error
Categories
(Remote Protocol :: Marionette, defect, P5)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1630132
People
(Reporter: intermittent-bug-filer, Unassigned)
Details
(Keywords: intermittent-failure)
Filed by: rmaries [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=323707318&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/EP54AS5WQompFL2jDzgBMw/runs/0/artifacts/public/logs/live_backing.log
[task 2020-12-06T16:26:34.046Z] 16:26:34 INFO - TEST-START | /webdriver/tests/is_element_enabled/user_prompts.py
[task 2020-12-06T16:28:01.043Z] 16:28:01 INFO - TEST-PASS | /webdriver/tests/is_element_enabled/user_prompts.py | test_dismiss[capabilities0-prompt-None]
[task 2020-12-06T16:28:01.043Z] 16:28:01 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/is_element_enabled/user_prompts.py | test_dismiss_and_notify[capabilities0-alert-None] - setup error
[task 2020-12-06T16:28:01.043Z] 16:28:01 INFO - capabilities = {'unhandledPromptBehavior': 'dismiss and notify'}
[task 2020-12-06T16:28:01.043Z] 16:28:01 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': 'Z:\task_1607271201\build\application\firefox\firefox.exe', 'prefs'...enable-blacklist': False, 'media.peerconnection.mtransport_process': False, ...}}}, 'host': '127.0.0.1', 'port': 63086}
[task 2020-12-06T16:28:01.043Z] 16:28:01 INFO - request = <SubRequest 'session' for <Function 'test_dismiss_and_notify[capabilities0-alert-None]'>>
[task 2020-12-06T16:28:01.043Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.043Z] 16:28:01 INFO - @pytest.fixture(scope="function")
[task 2020-12-06T16:28:01.043Z] 16:28:01 INFO - def session(capabilities, configuration, request):
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - """Create and start a session for a test that does not itself test session creation.
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - By default the session will stay open after each test, but we always try to start a
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - new one and assume that if that fails there is already a valid session. This makes it
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - possible to recover from some errors that might leave the session in a bad state, but
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - does not demand that we start a new session per test."""
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - global _current_session
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - # Update configuration capabilities with custom ones from the
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - # capabilities fixture, which can be set by tests
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - caps = copy.deepcopy(configuration["capabilities"])
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - deep_update(caps, capabilities)
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - caps = {"alwaysMatch": caps}
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.044Z] 16:28:01 INFO - # If there is a session with different capabilities active, end it now
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - if _current_session is not None and (
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - caps != _current_session.requested_capabilities):
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - _current_session.end()
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - _current_session = None
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - if _current_session is None:
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - _current_session = webdriver.Session(
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - configuration["host"],
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - configuration["port"],
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - capabilities=caps)
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - try:
[task 2020-12-06T16:28:01.045Z] 16:28:01 INFO - > _current_session.start()
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - capabilities = {'unhandledPromptBehavior': 'dismiss and notify'}
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - caps = {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1607271201\build\application\firefox\firefox.exe', 'prefs':...ist': False, 'media.peerconnection.mtransport_process': False, ...}}, 'unhandledPromptBehavior': 'dismiss and notify'}}
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': 'Z:\task_1607271201\build\application\firefox\firefox.exe', 'prefs'...enable-blacklist': False, 'media.peerconnection.mtransport_process': False, ...}}}, 'host': '127.0.0.1', 'port': 63086}
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - request = <SubRequest 'session' for <Function 'test_dismiss_and_notify[capabilities0-alert-None]'>>
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - tests\web-platform\tests\webdriver\tests\support\fixtures.py:142:
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:491: in start
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - value = self.send_command("POST", "session", body=body)
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - self = <Session (disconnected)>, method = 'POST', url = 'session'
[task 2020-12-06T16:28:01.046Z] 16:28:01 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1607271201\build\application\firefox\firef...st': False, 'media.peerconnection.mtransport_process': False, ...}}, 'unhandledPromptBehavior': 'dismiss and notify'}}}
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - timeout = None
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - def send_command(self, method, url, body=None, timeout=None):
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - """
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - Send a command to the remote end and validate its success.
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - :param method: HTTP method to use in request.
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - :param uri: "Command part" of the HTTP request URL,
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - e.g. `window/rect`.
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - :param body: Optional body of the HTTP request.
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - :return: `None` if the HTTP response body was empty, otherwise
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - the `value` field returned after parsing the response
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - body as JSON.
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - :raises error.WebDriverException: If the remote end returns
[task 2020-12-06T16:28:01.047Z] 16:28:01 INFO - an error.
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO - :raises ValueError: If the response body does not contain a
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO - `value` key.
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO - """
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO - response = self.transport.send(
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO - method, url, body,
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO - session=self, timeout=timeout)
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO - if response.status != 200:
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO - err = error.from_response(response)
[task 2020-12-06T16:28:01.048Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.049Z] 16:28:01 INFO - if isinstance(err, error.InvalidSessionIdException):
[task 2020-12-06T16:28:01.049Z] 16:28:01 INFO - # The driver could have already been deleted the session.
[task 2020-12-06T16:28:01.049Z] 16:28:01 INFO - self.session_id = None
[task 2020-12-06T16:28:01.049Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.049Z] 16:28:01 INFO - > raise err
[task 2020-12-06T16:28:01.049Z] 16:28:01 INFO - E TimeoutException: timeout (500): No connection could be made because the target machine actively refused it. (os error 10061)
[task 2020-12-06T16:28:01.049Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.049Z] 16:28:01 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1607271201\build\application\firefox\firef...st': False, 'media.peerconnection.mtransport_process': False, ...}}, 'unhandledPromptBehavior': 'dismiss and notify'}}}
[task 2020-12-06T16:28:01.049Z] 16:28:01 INFO - err = <TimeoutException http_status=500>
[task 2020-12-06T16:28:01.049Z] 16:28:01 INFO - method = 'POST'
[task 2020-12-06T16:28:01.050Z] 16:28:01 INFO - response = <Response status=500 error=<TimeoutException http_status=500>>
[task 2020-12-06T16:28:01.050Z] 16:28:01 INFO - self = <Session (disconnected)>
[task 2020-12-06T16:28:01.050Z] 16:28:01 INFO - timeout = None
[task 2020-12-06T16:28:01.050Z] 16:28:01 INFO - url = 'session'
[task 2020-12-06T16:28:01.050Z] 16:28:01 INFO -
[task 2020-12-06T16:28:01.050Z] 16:28:01 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:544: TimeoutException```
| Comment hidden (Intermittent Failures Robot) |
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
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
•