Closed Bug 1493054 Opened 6 years ago Closed 6 years ago

Intermittent /webdriver/tests/element_send_keys/user_prompts.py | test_accept[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)

References

Details

(Keywords: intermittent-failure)

Filed by: apavel [at] mozilla.com https://treeherder.mozilla.org/logviewer.html#?job_id=200604529&repo=mozilla-inbound https://queue.taskcluster.net/v1/task/QdRmebCTRzeoaXiIOZBxCg/runs/0/artifacts/public/logs/live_backing.log 17:05:47 INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py 17:05:47 INFO - STDOUT: :473: UnknownErrorException 17:05:47 INFO - STDOUT: __________ ERROR at setup of test_accept[capabilities0-confirm-True] ___________ 17:05:47 INFO - STDOUT: capabilities = {'unhandledPromptBehavior': 'accept'} 17:05:47 INFO - STDOUT: configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/Users/cltbld/tasks/task_1537488087/build/application/Firefox Nigh...b-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444} 17:05:47 INFO - STDOUT: request = <SubRequest 'session' for <Function 'test_accept[capabilities0-confirm-True]'>> 17:05:47 INFO - STDOUT: @pytest.fixture(scope="function") 17:05:47 INFO - STDOUT: def session(capabilities, configuration, request): 17:05:47 INFO - STDOUT: """Create and start a session for a test that does not itself test session creation. 17:05:47 INFO - STDOUT: 17:05:47 INFO - STDOUT: By default the session will stay open after each test, but we always try to start a 17:05:47 INFO - STDOUT: new one and assume that if that fails there is already a valid session. This makes it 17:05:47 INFO - STDOUT: possible to recover from some errors that might leave the session in a bad state, but 17:05:47 INFO - STDOUT: does not demand that we start a new session per test.""" 17:05:47 INFO - STDOUT: global _current_session 17:05:47 INFO - STDOUT: 17:05:47 INFO - STDOUT: # Update configuration capabilities with custom ones from the 17:05:47 INFO - STDOUT: # capabilities fixture, which can be set by tests 17:05:47 INFO - STDOUT: caps = copy.deepcopy(configuration["capabilities"]) 17:05:47 INFO - STDOUT: caps.update(capabilities) 17:05:47 INFO - STDOUT: caps = {"alwaysMatch": caps} 17:05:47 INFO - STDOUT: 17:05:47 INFO - STDOUT: # If there is a session with different capabilities active, end it now 17:05:47 INFO - STDOUT: if _current_session is not None and ( 17:05:47 INFO - STDOUT: caps != _current_session.requested_capabilities): 17:05:47 INFO - STDOUT: _current_session.end() 17:05:47 INFO - STDOUT: _current_session = None 17:05:47 INFO - STDOUT: 17:05:47 INFO - STDOUT: if _current_session is None: 17:05:47 INFO - STDOUT: _current_session = webdriver.Session( 17:05:47 INFO - STDOUT: configuration["host"], 17:05:47 INFO - STDOUT: configuration["port"], 17:05:47 INFO - STDOUT: capabilities=caps) 17:05:47 INFO - STDOUT: try: 17:05:47 INFO - 17:05:47 INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/element_send_keys/user_prompts.py | test_accept[capabilities0-alert-None] - setup error 17:05:47 INFO - capabilities = {'unhandledPromptBehavior': 'accept'} 17:05:47 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/Users/cltbld/tasks/task_1537488087/build/application/Firefox Nigh...b-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444} 17:05:47 INFO - request = <SubRequest 'session' for <Function 'test_accept[capabilities0-alert-None]'>> 17:05:47 INFO - 17:05:47 INFO - @pytest.fixture(scope="function") 17:05:47 INFO - def session(capabilities, configuration, request): 17:05:47 INFO - """Create and start a session for a test that does not itself test session creation. 17:05:47 INFO - 17:05:47 INFO - By default the session will stay open after each test, but we always try to start a 17:05:47 INFO - new one and assume that if that fails there is already a valid session. This makes it 17:05:47 INFO - possible to recover from some errors that might leave the session in a bad state, but 17:05:47 INFO - does not demand that we start a new session per test.""" 17:05:47 INFO - global _current_session 17:05:47 INFO - 17:05:47 INFO - # Update configuration capabilities with custom ones from the 17:05:47 INFO - # capabilities fixture, which can be set by tests 17:05:47 INFO - caps = copy.deepcopy(configuration["capabilities"]) 17:05:47 INFO - caps.update(capabilities) 17:05:47 INFO - caps = {"alwaysMatch": caps} 17:05:47 INFO - 17:05:47 INFO - # If there is a session with different capabilities active, end it now 17:05:47 INFO - if _current_session is not None and ( 17:05:47 INFO - caps != _current_session.requested_capabilities): 17:05:47 INFO - _current_session.end() 17:05:47 INFO - _current_session = None 17:05:47 INFO - 17:05:47 INFO - if _current_session is None: 17:05:47 INFO - _current_session = webdriver.Session( 17:05:47 INFO - configuration["host"], 17:05:47 INFO - configuration["port"], 17:05:47 INFO - capabilities=caps) 17:05:47 INFO - try: 17:05:47 INFO - _current_session.start() 17:05:47 INFO - except webdriver.error.SessionNotCreatedException: 17:05:47 INFO - if not _current_session.session_id: 17:05:47 INFO - raise 17:05:47 INFO - 17:05:47 INFO - # Enforce a fixed default window size 17:05:47 INFO - > _current_session.window.size = defaults.WINDOW_SIZE 17:05:47 INFO - 17:05:47 INFO - capabilities = {'unhandledPromptBehavior': 'accept'} 17:05:47 INFO - caps = {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/Users/cltbld/tasks/task_1537488087/build/application/Firefox Night...platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}, 'unhandledPromptBehavior': 'accept'}} 17:05:47 INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/Users/cltbld/tasks/task_1537488087/build/application/Firefox Nigh...b-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444} 17:05:47 INFO - request = <SubRequest 'session' for <Function 'test_accept[capabilities0-alert-None]'>> 17:05:47 INFO - 17:05:47 INFO - tests/web-platform/tests/webdriver/tests/conftest.py:156:
Crash of Firefox when trying to resize the window: > 17:05:23 INFO - PID 745 | 1537488323986 Marionette TRACE 0 -> [0,2,"WebDriver:SetWindowRect",{"height":600,"width":800,"x":null,"y":null}] > 17:05:24 INFO - PID 745 | 1537488324229 webdriver::server DEBUG Deleting session > 17:05:24 INFO - PID 745 | [GFX1-]: Receive IPC close with reason=AbnormalShutdown There is no crash reporting for wdspec jobs yet. So it depends on bug 1490906.
Depends on: 1490906
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.