Closed Bug 1492234 Opened 3 years ago Closed 2 years ago

Intermittent /webdriver/tests/set_window_rect/user_prompts.py | test_ignore[capabilities0-alert] - setup error

Categories

(Testing :: geckodriver, defect, P5)

Version 3
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: intermittent-failure)

Filed by: apavel [at] mozilla.com

https://treeherder.mozilla.org/logviewer.html#?job_id=199980606&repo=mozilla-inbound

https://queue.taskcluster.net/v1/task/FwZ_uagCTheHVfH2KROUgA/runs/0/artifacts/public/logs/live_backing.log

09:38:14     INFO - STDOUT: tests/web-platform/tests/tools/webdriver/webdriver/client.py
09:38:14     INFO - STDOUT: :473: InvalidSessionIdException
09:38:14     INFO - STDOUT: =============================== warnings summary ===============================
09:38:14     INFO - STDOUT: <undetermined location>
09:38:14     INFO - STDOUT:   Module already imported so cannot be rewritten: mozlog
09:38:14     INFO - STDOUT: -- Docs: http://doc.pytest.org/en/latest/warnings.html
09:38:14     INFO - STDOUT: =============== 16 passed, 1 warnings, 2 error in 25.88 seconds ================
09:38:14     INFO - 
09:38:14     INFO - TEST-PASS | /webdriver/tests/set_window_rect/user_prompts.py | test_accept[capabilities0-prompt-] 
09:38:14     INFO - TEST-PASS | /webdriver/tests/set_window_rect/user_prompts.py | test_accept_and_notify[capabilities0-alert-None] 
09:38:14     INFO - TEST-PASS | /webdriver/tests/set_window_rect/user_prompts.py | test_accept_and_notify[capabilities0-confirm-True] 
09:38:14     INFO - TEST-PASS | /webdriver/tests/set_window_rect/user_prompts.py | test_accept_and_notify[capabilities0-prompt-] 
09:38:14     INFO - TEST-PASS | /webdriver/tests/set_window_rect/user_prompts.py | test_dismiss[capabilities0-alert-None] 
09:38:14     INFO - TEST-PASS | /webdriver/tests/set_window_rect/user_prompts.py | test_dismiss[capabilities0-confirm-False] 
09:38:14     INFO - TEST-PASS | /webdriver/tests/set_window_rect/user_prompts.py | test_dismiss[capabilities0-prompt-None] 
09:38:14     INFO - TEST-PASS | /webdriver/tests/set_window_rect/user_prompts.py | test_dismiss_and_notify[capabilities0-alert-None] 
09:38:14     INFO - TEST-PASS | /webdriver/tests/set_window_rect/user_prompts.py | test_dismiss_and_notify[capabilities0-confirm-False] 
09:38:14     INFO - TEST-PASS | /webdriver/tests/set_window_rect/user_prompts.py | test_dismiss_and_notify[capabilities0-prompt-None] 
09:38:14     INFO - TEST-UNEXPECTED-ERROR | /webdriver/tests/set_window_rect/user_prompts.py | test_ignore[capabilities0-alert] - setup error
09:38:14     INFO - capabilities = {'unhandledPromptBehavior': 'ignore'}
09:38:14     INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/Users/cltbld/tasks/task_1537288072/build/application/Firefox Nigh...b-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444}
09:38:14     INFO - request = <SubRequest 'session' for <Function 'test_ignore[capabilities0-alert]'>>
09:38:14     INFO - 
09:38:14     INFO -     @pytest.fixture(scope="function")
09:38:14     INFO -     def session(capabilities, configuration, request):
09:38:14     INFO -         """Create and start a session for a test that does not itself test session creation.
09:38:14     INFO -     
09:38:14     INFO -         By default the session will stay open after each test, but we always try to start a
09:38:14     INFO -         new one and assume that if that fails there is already a valid session. This makes it
09:38:14     INFO -         possible to recover from some errors that might leave the session in a bad state, but
09:38:14     INFO -         does not demand that we start a new session per test."""
09:38:14     INFO -         global _current_session
09:38:14     INFO -     
09:38:14     INFO -         # Update configuration capabilities with custom ones from the
09:38:14     INFO -         # capabilities fixture, which can be set by tests
09:38:14     INFO -         caps = copy.deepcopy(configuration["capabilities"])
09:38:14     INFO -         caps.update(capabilities)
09:38:14     INFO -         caps = {"alwaysMatch": caps}
09:38:14     INFO -     
09:38:14     INFO -         # If there is a session with different capabilities active, end it now
09:38:14     INFO -         if _current_session is not None and (
09:38:14     INFO -                 caps != _current_session.requested_capabilities):
09:38:14     INFO -             _current_session.end()
09:38:14     INFO -             _current_session = None
09:38:14     INFO -     
09:38:14     INFO -         if _current_session is None:
09:38:14     INFO -             _current_session = webdriver.Session(
09:38:14     INFO -                 configuration["host"],
09:38:14     INFO -                 configuration["port"],
09:38:14     INFO -                 capabilities=caps)
09:38:14     INFO -         try:
09:38:14     INFO -             _current_session.start()
09:38:14     INFO -         except webdriver.error.SessionNotCreatedException:
09:38:14     INFO -             if not _current_session.session_id:
09:38:14     INFO -                 raise
09:38:14     INFO -     
09:38:14     INFO -         # Enforce a fixed default window size
09:38:14     INFO - >       _current_session.window.size = defaults.WINDOW_SIZE
09:38:14     INFO - 
09:38:14     INFO - capabilities = {'unhandledPromptBehavior': 'ignore'}
09:38:14     INFO - caps       = {'alwaysMatch': {'moz:firefoxOptions': {'binary': '/Users/cltbld/tasks/task_1537288072/build/application/Firefox Night...platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}, 'unhandledPromptBehavior': 'ignore'}}
09:38:14     INFO - configuration = {'capabilities': {'moz:firefoxOptions': {'binary': '/Users/cltbld/tasks/task_1537288072/build/application/Firefox Nigh...b-platform.test,www.web-platform.test,xn--n8j6ds53lwwkrqhv28a.web-platform.test'}}}, 'host': '127.0.0.1', 'port': 4444}
09:38:14     INFO - request    = <SubRequest 'session' for <Function 'test_ignore[capabilities0-alert]'>>
09:38:14     INFO - 
09:38:14     INFO - tests/web-platform/tests/webdriver/tests/conftest.py:156: 
09:38:14     INFO - _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
09:38:14     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:20: in inner
09:38:14     INFO -     return func(self, *args, **kwargs)
09:38:14     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:259: in size
09:38:14     INFO -     self.session.send_session_command("POST", "window/rect", body)
09:38:14     INFO - tests/web-platform/tests/tools/webdriver/webdriver/client.py:509: in send_session_command
09:38:14     INFO -     return self.send_command(method, url, body)
The command "WebDriver:SetWindowRect" caused Firefox to crash:

09:38:07     INFO - PID 2193 | 1537288687003	Marionette	TRACE	0 -> [0,2,"WebDriver:SetWindowRect",{"height":600,"width":800,"x":null,"y":null}]
09:38:07     INFO - PID 2193 | 1537288687215	webdriver::server	DEBUG	Deleting session
09:38:07     INFO - PID 2193 | ** Unknown exception behavior: -2147483647
09:38:07     INFO - PID 2193 | ** Unknown exception behavior: -2147483647
09:38:07     INFO - PID 2193 | 1537288687317	geckodriver::marionette	DEBUG	Browser process stopped: exit code: 1

Sadly we don't analyze crash reports yet. So it needs to wait for bug 1490906.
Depends on: 1490906
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.