Closed
Bug 1495668
Opened 6 years ago
Closed 6 years ago
Intermittent tier 2 /webdriver/tests/get_title/get.py | test_no_browsing_context - setup error
Categories
(Remote Protocol :: Marionette, defect, P5)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1498944
People
(Reporter: intermittent-bug-filer, Unassigned)
References
Details
(Keywords: intermittent-failure)
Filed by: ebalazs [at] mozilla.com
https://treeherder.mozilla.org/logviewer.html#?job_id=202796363&repo=mozilla-central
https://queue.taskcluster.net/v1/task/JcifvNIFSPSlN3aQB2NcYA/runs/0/artifacts/public/logs/live_backing.log
ERROR at setup of test_no_browsing_context __________________
[task 2018-10-02T05:07:47.717Z] 05:07:47 INFO - STDOUT: capabilities = {}
[task 2018-10-02T05:07:47.718Z] 05:07:47 INFO - STDOUT: 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-02T05:07:47.720Z] 05:07:47 INFO - STDOUT: request = <SubRequest 'session' for <Function 'test_no_browsing_context'>>
[task 2018-10-02T05:07:47.721Z] 05:07:47 INFO - STDOUT: @pytest.fixture(scope="function")
[task 2018-10-02T05:07:47.722Z] 05:07:47 INFO - STDOUT: def session(capabilities, configuration, request):
[task 2018-10-02T05:07:47.722Z] 05:07:47 INFO - STDOUT: """Create and start a session for a test that does not itself test session creation.
[task 2018-10-02T05:07:47.723Z] 05:07:47 INFO - STDOUT:
[task 2018-10-02T05:07:47.724Z] 05:07:47 INFO - STDOUT: By default the session will stay open after each test, but we always try to start a
[task 2018-10-02T05:07:47.726Z] 05:07:47 INFO - STDOUT: new one and assume that if that fails there is already a valid session. This makes it
[task 2018-10-02T05:07:47.727Z] 05:07:47 INFO - STDOUT: possible to recover from some errors that might leave the session in a bad state, but
[task 2018-10-02T05:07:47.728Z] 05:07:47 INFO - STDOUT: does not demand that we start a new session per test."""
[task 2018-10-02T05:07:47.729Z] 05:07:47 INFO - STDOUT: global _current_session
[task 2018-10-02T05:07:47.729Z] 05:07:47 INFO - STDOUT:
[task 2018-10-02T05:07:47.731Z] 05:07:47 INFO - STDOUT: # Update configuration capabilities with custom ones from the
[task 2018-10-02T05:07:47.731Z] 05:07:47 INFO - STDOUT: # capabilities fixture, which can be set by tests
[task 2018-10-02T05:07:47.732Z] 05:07:47 INFO - STDOUT: caps = copy.deepcopy(configuration["capabilities"])
[task 2018-10-02T05:07:47.733Z] 05:07:47 INFO - STDOUT: caps.update(capabilities)
[task 2018-10-02T05:07:47.733Z] 05:07:47 INFO - STDOUT: caps = {"alwaysMatch": caps}
[task 2018-10-02T05:07:47.735Z] 05:07:47 INFO - STDOUT:
[task 2018-10-02T05:07:47.736Z] 05:07:47 INFO - STDOUT: # If there is a session with different capabilities active, end it now
[task 2018-10-02T05:07:47.737Z] 05:07:47 INFO - STDOUT: if _current_session is not None and (
[task 2018-10-02T05:07:47.737Z] 05:07:47 INFO - STDOUT: caps != _current_session.requested_capabilities):
[task 2018-10-02T05:07:47.738Z] 05:07:47 INFO - STDOUT: _current_session.end()
[task 2018-10-02T05:07:47.740Z] 05:07:47 INFO - STDOUT: _current_session = None
[task 2018-10-02T05:07:47.740Z] 05:07:47 INFO - STDOUT:
[task 2018-10-02T05:07:47.741Z] 05:07:47 INFO - STDOUT: if _current_session is None:
[task 2018-10-02T05:07:47.742Z] 05:07:47 INFO - STDOUT: _current_session = webdriver.Session(
[task 2018-10-02T05:07:47.742Z] 05:07:47 INFO - STDOUT: configuration["host"],
[task 2018-10-02T05:07:47.744Z] 05:07:47 INFO - STDOUT: configuration["port"],
[task 2018-10-02T05:07:47.744Z] 05:07:47 INFO - STDOUT: capabilities=caps)
[task 2018-10-02T05:07:47.745Z] 05:07:47 INFO - STDOUT: try:
[task 2018-10-02T05:07:47.746Z] 05:07:47 INFO - STDOUT: > _current_session.start()
[task 2018-10-02T05:07:47.746Z] 05:07:47 INFO - STDOUT: capabilities = {}
[task 2018-10-02T05:07:47.748Z] 05:07:47 INFO - STDOUT: caps = {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox/firefox', 'prefs...w1.not-web-platform.test,www.not-web-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}}
[task 2018-10-02T05:07:47.749Z] 05:07:47 INFO - STDOUT: 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-02T05:07:47.749Z] 05:07:47 INFO - STDOUT: request = <SubRequest 'session' for <Function 'test_no_browsing_context'>>
[task 2018-10-02T05:07:47.790Z] 05:07:47 INFO - STDOUT: tests/web-platform/tests/webdriver/tests/conftest.py
[task 2018-10-02T05:07:47.790Z] 05:07:47 INFO - STDOUT: :150:
[task 2018-10-02T05:07:47.791Z] 05:07:47 INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2018-10-02T05:07:47.791Z] 05:07:47 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2018-10-02T05:07:47.791Z] 05:07:47 INFO - STDOUT: :422: in start
[task 2018-10-02T05:07:47.792Z] 05:07:47 INFO - STDOUT: value = self.send_command("POST", "session", body=body)
[task 2018-10-02T05:07:47.792Z] 05:07:47 INFO - STDOUT: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[task 2018-10-02T05:07:47.792Z] 05:07:47 INFO - STDOUT: self = <Session (disconnected)>, method = 'POST', url = 'session'
[task 2018-10-02T05:07:47.793Z] 05:07:47 INFO - STDOUT: body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox...1.not-web-platform.test,www.not-web-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}}}
[task 2018-10-02T05:07:47.793Z] 05:07:47 INFO - STDOUT: def send_command(self, method, url, body=None):
[task 2018-10-02T05:07:47.794Z] 05:07:47 INFO - STDOUT: """
[task 2018-10-02T05:07:47.794Z] 05:07:47 INFO - STDOUT: Send a command to the remote end and validate its success.
[task 2018-10-02T05:07:47.794Z] 05:07:47 INFO - STDOUT:
[task 2018-10-02T05:07:47.795Z] 05:07:47 INFO - STDOUT: :param method: HTTP method to use in request.
[task 2018-10-02T05:07:47.795Z] 05:07:47 INFO - STDOUT: :param uri: "Command part" of the HTTP request URL,
[task 2018-10-02T05:07:47.796Z] 05:07:47 INFO - STDOUT: e.g. `window/rect`.
[task 2018-10-02T05:07:47.796Z] 05:07:47 INFO - STDOUT: :param body: Optional body of the HTTP request.
[task 2018-10-02T05:07:47.796Z] 05:07:47 INFO - STDOUT:
[task 2018-10-02T05:07:47.797Z] 05:07:47 INFO - STDOUT: :return: `None` if the HTTP response body was empty, otherwise
[task 2018-10-02T05:07:47.797Z] 05:07:47 INFO - STDOUT: the `value` field returned after parsing the response
[task 2018-10-02T05:07:47.797Z] 05:07:47 INFO - STDOUT: body as JSON.
[task 2018-10-02T05:07:47.798Z] 05:07:47 INFO - STDOUT:
[task 2018-10-02T05:07:47.798Z] 05:07:47 INFO - STDOUT: :raises error.WebDriverException: If the remote end returns
[task 2018-10-02T05:07:47.798Z] 05:07:47 INFO - STDOUT: an error.
[task 2018-10-02T05:07:47.799Z] 05:07:47 INFO - STDOUT: :raises ValueError: If the response body does not contain a
[task 2018-10-02T05:07:47.799Z] 05:07:47 INFO - STDOUT: `value` key.
[task 2018-10-02T05:07:47.799Z] 05:07:47 INFO - STDOUT: """
[task 2018-10-02T05:07:47.800Z] 05:07:47 INFO - STDOUT: response = self.transport.send(
[task 2018-10-02T05:07:47.800Z] 05:07:47 INFO - STDOUT: method, url, body,
[task 2018-10-02T05:07:47.800Z] 05:07:47 INFO - STDOUT: encoder=protocol.Encoder, decoder=protocol.Decoder,
[task 2018-10-02T05:07:47.801Z] 05:07:47 INFO - STDOUT: session=self)
[task 2018-10-02T05:07:47.801Z] 05:07:47 INFO - STDOUT:
[task 2018-10-02T05:07:47.801Z] 05:07:47 INFO - STDOUT: if response.status != 200:
[task 2018-10-02T05:07:47.802Z] 05:07:47 INFO - STDOUT: err = error.from_response(response)
[task 2018-10-02T05:07:47.802Z] 05:07:47 INFO - STDOUT:
[task 2018-10-02T05:07:47.802Z] 05:07:47 INFO - STDOUT: if isinstance(err, error.InvalidSessionIdException):
[task 2018-10-02T05:07:47.803Z] 05:07:47 INFO - STDOUT: # The driver could have already been deleted the session.
[task 2018-10-02T05:07:47.803Z] 05:07:47 INFO - STDOUT: self.session_id = None
[task 2018-10-02T05:07:47.803Z] 05:07:47 INFO - STDOUT:
[task 2018-10-02T05:07:47.803Z] 05:07:47 INFO - STDOUT: > raise err
[task 2018-10-02T05:07:47.804Z] 05:07:47 INFO - STDOUT: E UnknownErrorException: unknown error (500): connection refused
[task 2018-10-02T05:07:47.804Z] 05:07:47 INFO - STDOUT: body = {'capabilities': {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox...1.not-web-platform.test,www.not-web-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}}}
[task 2018-10-02T05:07:47.804Z] 05:07:47 INFO - STDOUT: err = <UnknownErrorException http_status=500>
[task 2018-10-02T05:07:47.805Z] 05:07:47 INFO - STDOUT: method = 'POST'
[task 2018-10-02T05:07:47.805Z] 05:07:47 INFO - STDOUT: response = <Response status=500 error=<UnknownErrorException http_status=500>>
[task 2018-10-02T05:07:47.805Z] 05:07:47 INFO - STDOUT: self = <Session (disconnected)>
[task 2018-10-02T05:07:47.806Z] 05:07:47 INFO - STDOUT: url = 'session'
[task 2018-10-02T05:07:47.806Z] 05:07:47 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
[task 2018-10-02T05:07:47.807Z] 05:07:47 INFO - STDOUT: :473: UnknownErrorException
[task 2018-10-02T05:07:47.807Z] 05:07:47 INFO - STDOUT: =============================== warnings summary ===============================
[task 2018-10-02T05:07:47.807Z] 05:07:47 INFO - STDOUT: <undetermined location>
[task 2018-10-02T05:07:47.808Z] 05:07:47 INFO - STDOUT: Module already imported so cannot be rewritten: mozlog
[task 2018-10-02T05:07:47.808Z] 05:07:47 INFO - STDOUT: -- Docs: http://doc.pytest.org/en/latest/warnings.html
[task 2018-10-02T05:07:47.809Z] 05:07:47 INFO - STDOUT: ================ 6 passed, 1 warnings, 1 error in 69.56 seconds ================
[task 2018-10-02T05:07:47.809Z] 05:07:47 INFO -
[task 2018-10-02T05:07:47.810Z] 05:07:47 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/get_title/get.py | test_no_browsing_context - setup error
[task 2018-10-02T05:07:47.810Z] 05:07:47 INFO - capabilities = {}
[task 2018-10-02T05:07:47.810Z] 05:07:47 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-02T05:07:47.810Z] 05:07:47 INFO - request = <SubRequest 'session' for <Function 'test_no_browsing_context'>>
[task 2018-10-02T05:07:47.810Z] 05:07:47 INFO -
[task 2018-10-02T05:07:47.811Z] 05:07:47 INFO - @pytest.fixture(scope="function")
[task 2018-10-02T05:07:47.811Z] 05:07:47 INFO - def session(capabilities, configuration, request):
[task 2018-10-02T05:07:47.811Z] 05:07:47 INFO - """Create and start a session for a test that does not itself test session creation.
[task 2018-10-02T05:07:47.811Z] 05:07:47 INFO -
[task 2018-10-02T05:07:47.811Z] 05:07:47 INFO - By default the session will stay open after each test, but we always try to start a
[task 2018-10-02T05:07:47.812Z] 05:07:47 INFO - new one and assume that if that fails there is already a valid session. This makes it
[task 2018-10-02T05:07:47.812Z] 05:07:47 INFO - possible to recover from some errors that might leave the session in a bad state, but
[task 2018-10-02T05:07:47.813Z] 05:07:47 INFO - does not demand that we start a new session per test."""
[task 2018-10-02T05:07:47.813Z] 05:07:47 INFO - global _current_session
[task 2018-10-02T05:07:47.813Z] 05:07:47 INFO -
[task 2018-10-02T05:07:47.813Z] 05:07:47 INFO - # Update configuration capabilities with custom ones from the
[task 2018-10-02T05:07:47.813Z] 05:07:47 INFO - # capabilities fixture, which can be set by tests
[task 2018-10-02T05:07:47.813Z] 05:07:47 INFO - caps = copy.deepcopy(configuration["capabilities"])
[task 2018-10-02T05:07:47.814Z] 05:07:47 INFO - caps.update(capabilities)
[task 2018-10-02T05:07:47.814Z] 05:07:47 INFO - caps = {"alwaysMatch": caps}
Updated•6 years ago
|
Summary: Intermittent /webdriver/tests/get_title/get.py | test_no_browsing_context - setup error → Intermittent tier 2 /webdriver/tests/get_title/get.py | test_no_browsing_context - setup error
Comment 2•6 years ago
|
||
Missing `sessionstore-windows-restored` notification, so it is blocked on bug 1382162.
Depends on: 1382162
Comment hidden (Intermittent Failures Robot) |
![]() |
||
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Comment 5•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
•