Closed Bug 1494826 Opened 6 years ago Closed 6 years ago

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

Categories

(Remote Protocol :: Marionette, defect, P5)

Version 3
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1498944

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: intermittent-failure)

Filed by: ccoroiu [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=201966051&repo=mozilla-inbound https://queue.taskcluster.net/v1/task/SIo5PILURRyLJxaIgwTGXg/runs/0/artifacts/public/logs/live_backing.log [task 2018-09-27T15:15:42.208Z] 15:15:42 INFO - TEST-PASS | /webdriver/tests/delete_all_cookies/user_prompts.py | test_accept_and_notify[capabilities0-prompt-] [task 2018-09-27T15:15:42.208Z] 15:15:42 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/delete_all_cookies/user_prompts.py | test_dismiss[capabilities0-alert-None] - setup error [task 2018-09-27T15:15:42.209Z] 15:15:42 INFO - capabilities = {'unhandledPromptBehavior': 'dismiss'} [task 2018-09-27T15:15:42.209Z] 15:15:42 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-09-27T15:15:42.215Z] 15:15:42 INFO - request = <SubRequest 'session' for <Function 'test_dismiss[capabilities0-alert-None]'>> [task 2018-09-27T15:15:42.215Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.215Z] 15:15:42 INFO - @pytest.fixture(scope="function") [task 2018-09-27T15:15:42.218Z] 15:15:42 INFO - def session(capabilities, configuration, request): [task 2018-09-27T15:15:42.218Z] 15:15:42 INFO - """Create and start a session for a test that does not itself test session creation. [task 2018-09-27T15:15:42.219Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.219Z] 15:15:42 INFO - By default the session will stay open after each test, but we always try to start a [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - new one and assume that if that fails there is already a valid session. This makes it [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - possible to recover from some errors that might leave the session in a bad state, but [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - does not demand that we start a new session per test.""" [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - global _current_session [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - # Update configuration capabilities with custom ones from the [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - # capabilities fixture, which can be set by tests [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - caps = copy.deepcopy(configuration["capabilities"]) [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - caps.update(capabilities) [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - caps = {"alwaysMatch": caps} [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - # If there is a session with different capabilities active, end it now [task 2018-09-27T15:15:42.220Z] 15:15:42 INFO - if _current_session is not None and ( [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - caps != _current_session.requested_capabilities): [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - _current_session.end() [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - _current_session = None [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - if _current_session is None: [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - _current_session = webdriver.Session( [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - configuration["host"], [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - configuration["port"], [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - capabilities=caps) [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - try: [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - > _current_session.start() [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - capabilities = {'unhandledPromptBehavior': 'dismiss'} [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - caps = {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox/firefox', 'prefs...latform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}, 'unhandledPromptBehavior': 'dismiss'}} [task 2018-09-27T15:15:42.221Z] 15:15:42 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-09-27T15:15:42.221Z] 15:15:42 INFO - request = <SubRequest 'session' for <Function 'test_dismiss[capabilities0-alert-None]'>> [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - tests/web-platform/tests/webdriver/tests/conftest.py:150: [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [task 2018-09-27T15:15:42.221Z] 15:15:42 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:422: in start [task 2018-09-27T15:15:42.222Z] 15:15:42 INFO - value = self.send_command("POST", "session", body=body) [task 2018-09-27T15:15:42.222Z] 15:15:42 INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [task 2018-09-27T15:15:42.222Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.223Z] 15:15:42 INFO - self = <Session (disconnected)>, method = 'POST', url = 'session' [task 2018-09-27T15:15:42.223Z] 15:15:42 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox...atform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}, 'unhandledPromptBehavior': 'dismiss'}}} [task 2018-09-27T15:15:42.224Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.224Z] 15:15:42 INFO - def send_command(self, method, url, body=None): [task 2018-09-27T15:15:42.225Z] 15:15:42 INFO - """ [task 2018-09-27T15:15:42.225Z] 15:15:42 INFO - Send a command to the remote end and validate its success. [task 2018-09-27T15:15:42.225Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.225Z] 15:15:42 INFO - :param method: HTTP method to use in request. [task 2018-09-27T15:15:42.225Z] 15:15:42 INFO - :param uri: "Command part" of the HTTP request URL, [task 2018-09-27T15:15:42.226Z] 15:15:42 INFO - e.g. `window/rect`. [task 2018-09-27T15:15:42.226Z] 15:15:42 INFO - :param body: Optional body of the HTTP request. [task 2018-09-27T15:15:42.226Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.226Z] 15:15:42 INFO - :return: `None` if the HTTP response body was empty, otherwise [task 2018-09-27T15:15:42.227Z] 15:15:42 INFO - the `value` field returned after parsing the response [task 2018-09-27T15:15:42.227Z] 15:15:42 INFO - body as JSON. [task 2018-09-27T15:15:42.227Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.227Z] 15:15:42 INFO - :raises error.WebDriverException: If the remote end returns [task 2018-09-27T15:15:42.227Z] 15:15:42 INFO - an error. [task 2018-09-27T15:15:42.228Z] 15:15:42 INFO - :raises ValueError: If the response body does not contain a [task 2018-09-27T15:15:42.228Z] 15:15:42 INFO - `value` key. [task 2018-09-27T15:15:42.228Z] 15:15:42 INFO - """ [task 2018-09-27T15:15:42.228Z] 15:15:42 INFO - response = self.transport.send( [task 2018-09-27T15:15:42.229Z] 15:15:42 INFO - method, url, body, [task 2018-09-27T15:15:42.230Z] 15:15:42 INFO - encoder=protocol.Encoder, decoder=protocol.Decoder, [task 2018-09-27T15:15:42.230Z] 15:15:42 INFO - session=self) [task 2018-09-27T15:15:42.230Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.230Z] 15:15:42 INFO - if response.status != 200: [task 2018-09-27T15:15:42.230Z] 15:15:42 INFO - err = error.from_response(response) [task 2018-09-27T15:15:42.230Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.230Z] 15:15:42 INFO - if isinstance(err, error.InvalidSessionIdException): [task 2018-09-27T15:15:42.230Z] 15:15:42 INFO - # The driver could have already been deleted the session. [task 2018-09-27T15:15:42.231Z] 15:15:42 INFO - self.session_id = None [task 2018-09-27T15:15:42.231Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.231Z] 15:15:42 INFO - > raise err [task 2018-09-27T15:15:42.231Z] 15:15:42 INFO - E UnknownErrorException: unknown error (500): connection refused [task 2018-09-27T15:15:42.231Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.232Z] 15:15:42 INFO - body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox...atform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}, 'unhandledPromptBehavior': 'dismiss'}}} [task 2018-09-27T15:15:42.232Z] 15:15:42 INFO - err = <UnknownErrorException http_status=500> [task 2018-09-27T15:15:42.232Z] 15:15:42 INFO - method = 'POST' [task 2018-09-27T15:15:42.233Z] 15:15:42 INFO - response = <Response status=500 error=<UnknownErrorException http_status=500>> [task 2018-09-27T15:15:42.235Z] 15:15:42 INFO - self = <Session (disconnected)> [task 2018-09-27T15:15:42.236Z] 15:15:42 INFO - url = 'session' [task 2018-09-27T15:15:42.237Z] 15:15:42 INFO - [task 2018-09-27T15:15:42.238Z] 15:15:42 INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:473: UnknownErrorException [task 2018-09-27T15:15:42.239Z] 15:15:42 INFO - ........... [task 2018-09-27T15:15:42.240Z] 15:15:42 INFO - TEST-OK | /webdriver/tests/delete_all_cookies/user_prompts.py | took 132624ms
Missing sessionstore-windows-restored notification. So this depends on bug 1382162.
Depends on: 1382162
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
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.