Closed Bug 1602823 Opened 6 years ago Closed 6 years ago

Intermittent /webdriver/tests/back/user_prompts.py | test_accept[capabilities0-alert] - 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)

Details

(Keywords: intermittent-failure)

Filed by: malexandru [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=280479674&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/XFc-hr4lRqCycVL15ANd1g/runs/0/artifacts/public/logs/live_backing.log


[task 2019-12-10T14:00:15.139Z] 14:00:15 INFO - STDOUT: =============================== warnings summary ===============================
[task 2019-12-10T14:00:15.140Z] 14:00:15 INFO - STDOUT: <undetermined location>
[task 2019-12-10T14:00:15.141Z] 14:00:15 INFO - STDOUT: Module already imported so cannot be rewritten: mozlog
[task 2019-12-10T14:00:15.141Z] 14:00:15 INFO - STDOUT: Module already imported so cannot be rewritten: tests.support.fixtures
[task 2019-12-10T14:00:15.142Z] 14:00:15 INFO - STDOUT: -- Docs: http://doc.pytest.org/en/latest/warnings.html
[task 2019-12-10T14:00:15.143Z] 14:00:15 INFO - STDOUT: =============== 17 passed, 2 warnings, 1 error in 280.91 seconds ===============
[task 2019-12-10T14:00:15.147Z] 14:00:15 INFO -
[task 2019-12-10T14:00:15.148Z] 14:00:15 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/back/user_prompts.py | test_accept[capabilities0-alert] - setup error
[task 2019-12-10T14:00:15.148Z] 14:00:15 INFO - capabilities = {'unhandledPromptBehavior': 'accept'}
[task 2019-12-10T14:00:15.148Z] 14:00:15 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox/firefox', 'pref...platform.test,www2.www.not-web-platform.test', 'network.process.enabled': False}}}, 'host': '127.0.0.1', 'port': 39539}
[task 2019-12-10T14:00:15.149Z] 14:00:15 INFO - request = <SubRequest 'session' for <Function 'test_accept[capabilities0-alert]'>>
[task 2019-12-10T14:00:15.149Z] 14:00:15 INFO -
[task 2019-12-10T14:00:15.149Z] 14:00:15 INFO - @pytest.fixture(scope="function")
[task 2019-12-10T14:00:15.149Z] 14:00:15 INFO - def session(capabilities, configuration, request):
[task 2019-12-10T14:00:15.150Z] 14:00:15 INFO - """Create and start a session for a test that does not itself test session creation.
[task 2019-12-10T14:00:15.150Z] 14:00:15 INFO -
[task 2019-12-10T14:00:15.151Z] 14:00:15 INFO - By default the session will stay open after each test, but we always try to start a
[task 2019-12-10T14:00:15.151Z] 14:00:15 INFO - new one and assume that if that fails there is already a valid session. This makes it
[task 2019-12-10T14:00:15.151Z] 14:00:15 INFO - possible to recover from some errors that might leave the session in a bad state, but
[task 2019-12-10T14:00:15.152Z] 14:00:15 INFO - does not demand that we start a new session per test."""
[task 2019-12-10T14:00:15.153Z] 14:00:15 INFO - global _current_session
[task 2019-12-10T14:00:15.153Z] 14:00:15 INFO -
[task 2019-12-10T14:00:15.153Z] 14:00:15 INFO - # Update configuration capabilities with custom ones from the
[task 2019-12-10T14:00:15.154Z] 14:00:15 INFO - # capabilities fixture, which can be set by tests
[task 2019-12-10T14:00:15.154Z] 14:00:15 INFO - caps = copy.deepcopy(configuration["capabilities"])
[task 2019-12-10T14:00:15.155Z] 14:00:15 INFO - caps.update(capabilities)
[task 2019-12-10T14:00:15.155Z] 14:00:15 INFO - caps = {"alwaysMatch": caps}
[task 2019-12-10T14:00:15.156Z] 14:00:15 INFO -
[task 2019-12-10T14:00:15.156Z] 14:00:15 INFO - # If there is a session with different capabilities active, end it now
[task 2019-12-10T14:00:15.156Z] 14:00:15 INFO - if _current_session is not None and (
[task 2019-12-10T14:00:15.156Z] 14:00:15 INFO - caps != _current_session.requested_capabilities):
[task 2019-12-10T14:00:15.156Z] 14:00:15 INFO - _current_session.end()
[task 2019-12-10T14:00:15.157Z] 14:00:15 INFO - _current_session = None
[task 2019-12-10T14:00:15.157Z] 14:00:15 INFO -
[task 2019-12-10T14:00:15.157Z] 14:00:15 INFO - if _current_session is None:
[task 2019-12-10T14:00:15.157Z] 14:00:15 INFO - _current_session = webdriver.Session(
[task 2019-12-10T14:00:15.157Z] 14:00:15 INFO - configuration["host"],
[task 2019-12-10T14:00:15.158Z] 14:00:15 INFO - configuration["port"],
[task 2019-12-10T14:00:15.158Z] 14:00:15 INFO - capabilities=caps)
[task 2019-12-10T14:00:15.158Z] 14:00:15 INFO - try:
[task 2019-12-10T14:00:15.158Z] 14:00:15 INFO - > _current_session.start()
[task 2019-12-10T14:00:15.158Z] 14:00:15 INFO -
[task 2019-12-10T14:00:15.159Z] 14:00:15 INFO - capabilities = {'unhandledPromptBehavior': 'accept'}
[task 2019-12-10T14:00:15.160Z] 14:00:15 INFO - caps = {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox/firefox', 'prefs...latform.test,www2.www.not-web-platform.test', 'network.process.enabled': False}}, 'unhandledPromptBehavior': 'accept'}}
[task 2019-12-10T14:00:15.160Z] 14:00:15 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/builds/worker/workspace/build/application/firefox/firefox', 'pref...platform.test,www2.www.not-web-platform.test', 'network.process.enabled': False}}}, 'host': '127.0.0.1', 'port': 39539}
[task 2019-12-10T14:00:15.161Z] 14:00:15 INFO - request = <SubRequest 'session' for <Function 'test_accept[capabilities0-alert]'>>
[task 2019-12-10T14:00:15.161Z] 14:00:15 INFO -
[task 2019-12-10T14:00:15.161Z] 14:00:15 INFO - tests/web-platform/tests/webdriver/tests/support/fixtures.py:150:

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.