Closed Bug 1556128 Opened 6 years ago Closed 6 years ago

Intermittent /webdriver/tests/get_element_rect/user_prompts.py | test_dismiss_and_notify[capabilities0-alert-None] - setup error

Categories

(Remote Protocol :: Marionette, defect, P5)

Version 3
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure, regression)

Filed by: aiakab [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=249501432&repo=mozilla-inbound
Full log: https://queue.taskcluster.net/v1/task/HnSFbckCRT-CTOIDz9JLqQ/runs/0/artifacts/public/logs/live_backing.log


23:58:27 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_accept[capabilities0-alert-None]
23:58:27 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_accept[capabilities0-confirm-True]
23:58:27 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_accept[capabilities0-prompt-]
23:58:27 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_accept_and_notify[capabilities0-alert-None]
23:58:27 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_accept_and_notify[capabilities0-confirm-True]
23:58:27 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_accept_and_notify[capabilities0-prompt-]
23:58:27 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_dismiss[capabilities0-alert-None]
23:58:27 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_dismiss[capabilities0-confirm-False]
23:58:27 INFO - TEST-PASS | /webdriver/tests/get_element_rect/user_prompts.py | test_dismiss[capabilities0-prompt-None]
23:58:27 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/get_element_rect/user_prompts.py | test_dismiss_and_notify[capabilities0-alert-None] - setup error
23:58:27 INFO - capabilities = {'unhandledPromptBehavior': 'dismiss and notify'}
23:58:27 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': 'Z:\task_1559343995\build\application\firefox\firefox.exe', 'prefs'...orm.test,xn--lve-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444}
23:58:27 INFO - request = <SubRequest 'session' for <Function 'test_dismiss_and_notify[capabilities0-alert-None]'>>
23:58:27 INFO -
23:58:27 INFO - @pytest.fixture(scope="function")
23:58:27 INFO - def session(capabilities, configuration, request):
23:58:27 INFO - """Create and start a session for a test that does not itself test session creation.
23:58:27 INFO -
23:58:27 INFO - By default the session will stay open after each test, but we always try to start a
23:58:27 INFO - new one and assume that if that fails there is already a valid session. This makes it
23:58:27 INFO - possible to recover from some errors that might leave the session in a bad state, but
23:58:27 INFO - does not demand that we start a new session per test."""
23:58:27 INFO - global _current_session
23:58:27 INFO -
23:58:27 INFO - # Update configuration capabilities with custom ones from the
23:58:27 INFO - # capabilities fixture, which can be set by tests
23:58:27 INFO - caps = copy.deepcopy(configuration["capabilities"])
23:58:27 INFO - caps.update(capabilities)
23:58:27 INFO - caps = {"alwaysMatch": caps}
23:58:27 INFO -
23:58:27 INFO - # If there is a session with different capabilities active, end it now
23:58:27 INFO - if _current_session is not None and (
23:58:27 INFO - caps != _current_session.requested_capabilities):
23:58:27 INFO - _current_session.end()
23:58:27 INFO - _current_session = None
23:58:27 INFO -
23:58:27 INFO - if _current_session is None:
23:58:27 INFO - _current_session = webdriver.Session(
23:58:27 INFO - configuration["host"],
23:58:27 INFO - configuration["port"],
23:58:27 INFO - capabilities=caps)
23:58:27 INFO - try:
23:58:27 INFO - > _current_session.start()
23:58:27 INFO -
23:58:27 INFO - capabilities = {'unhandledPromptBehavior': 'dismiss and notify'}
23:58:27 INFO - caps = {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1559343995\build\application\firefox\firefox.exe', 'prefs':...ve-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}, 'unhandledPromptBehavior': 'dismiss and notify'}}
23:58:27 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': 'Z:\task_1559343995\build\application\firefox\firefox.exe', 'prefs'...orm.test,xn--lve-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444}
23:58:27 INFO - request = <SubRequest 'session' for <Function 'test_dismiss_and_notify[capabilities0-alert-None]'>>
23:58:27 INFO -
23:58:27 INFO - tests\web-platform\tests\webdriver\tests\support\fixtures.py:150:
23:58:27 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23:58:27 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:421: in start
23:58:27 INFO - value = self.send_command("POST", "session", body=body)
23:58:27 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
23:58:27 INFO -
23:58:27 INFO - self = <Session (disconnected)>, method = 'POST', url = 'session'
23:58:27 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1559343995\build\application\firefox\firef...e-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}, 'unhandledPromptBehavior': 'dismiss and notify'}}}
23:58:27 INFO -
23:58:27 INFO - def send_command(self, method, url, body=None):
23:58:27 INFO - """
23:58:27 INFO - Send a command to the remote end and validate its success.
23:58:27 INFO -
23:58:27 INFO - :param method: HTTP method to use in request.
23:58:27 INFO - :param uri: "Command part" of the HTTP request URL,
23:58:27 INFO - e.g. window/rect.
23:58:27 INFO - :param body: Optional body of the HTTP request.
23:58:27 INFO -
23:58:27 INFO - :return: None if the HTTP response body was empty, otherwise
23:58:27 INFO - the value field returned after parsing the response
23:58:27 INFO - body as JSON.
23:58:27 INFO -
23:58:27 INFO - :raises error.WebDriverException: If the remote end returns
23:58:27 INFO - an error.
23:58:27 INFO - :raises ValueError: If the response body does not contain a
23:58:27 INFO - value key.
23:58:27 INFO - """
23:58:27 INFO - response = self.transport.send(
23:58:27 INFO - method, url, body,
23:58:27 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder,
23:58:27 INFO - session=self)
23:58:27 INFO -
23:58:27 INFO - if response.status != 200:
23:58:27 INFO - err = error.from_response(response)
23:58:27 INFO -
23:58:27 INFO - if isinstance(err, error.InvalidSessionIdException):
23:58:27 INFO - # The driver could have already been deleted the session.
23:58:27 INFO - self.session_id = None
23:58:27 INFO -
23:58:27 INFO - > raise err
23:58:27 INFO - E UnknownErrorException: unknown error (500): permission denied
23:58:27 INFO -
23:58:27 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': 'Z:\task_1559343995\build\application\firefox\firef...e-6lad.www2.not-web-platform.test,www2.www.not-web-platform.test'}}, 'unhandledPromptBehavior': 'dismiss and notify'}}}
23:58:27 INFO - err = <UnknownErrorException http_status=500>
23:58:27 INFO - method = 'POST'
23:58:27 INFO - response = <Response status=500 error=<UnknownErrorException http_status=500>>
23:58:27 INFO - self = <Session (disconnected)>
23:58:27 INFO - url = 'session'
23:58:27 INFO -
23:58:27 INFO - tests\web-platform\tests\tools\webdriver\webdriver\client.py:472: UnknownErrorException
23:58:27 INFO - ........
23:58:27 INFO - TEST-OK | /webdriver/tests/get_element_rect/user_prompts.py | took 50894ms

That's the actual problem:

23:58:03 INFO - PID 3672 | 1559347083357 geckodriver::marionette DEBUG Waiting 60s to connect to browser on 127.0.0.1:2828
23:58:03 INFO - PID 3672 | [3584, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80520012: file z:/build/build/src/extensions/permissions/nsPermissionManager.cpp, line 2903
23:58:04 INFO - PID 3672 | 1559347084457 mozrunner::runner DEBUG Killing process 5548

But I'm not sure why geckodriver decides to kill Firefox already after a second.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
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.