Open Bug 1858568 Opened 2 years ago Updated 15 hours ago

Intermittent testing/marionette/harness/marionette_harness/tests/unit/test_modal_dialogs.py | single tracking bug

Categories

(Testing :: Marionette Client and Harness, defect, P5)

defect

Tracking

(Not tracked)

REOPENED

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure, intermittent-testcase)

Attachments

(1 obsolete file)

Filed by: nbeleuzu [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=432181022&repo=mozilla-central
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/M7SUSLdGRMqcmSzEa6fzzw/runs/0/artifacts/public/logs/live_backing.log


[task 2023-10-11T23:12:57.467Z] 23:12:57     INFO -  Failed to gather test failure debug: Dismissed user prompt dialog: text
[task 2023-10-11T23:12:57.467Z] 23:12:57     INFO -  stacktrace:
[task 2023-10-11T23:12:57.467Z] 23:12:57     INFO -  	RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
[task 2023-10-11T23:12:57.467Z] 23:12:57     INFO -  	WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5
[task 2023-10-11T23:12:57.467Z] 23:12:57     INFO -  	UnexpectedAlertOpenError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:736:5
[task 2023-10-11T23:12:57.467Z] 23:12:57     INFO -  	GeckoDriver.prototype._handleUserPrompts@chrome://remote/content/marionette/driver.sys.mjs:2835:13
[task 2023-10-11T23:12:57.467Z] 23:12:57     INFO -  DEBUG: Adding blocker ContentParent: id=1f9019f2e00 for phase xpcom-will-shutdown
[task 2023-10-11T23:12:57.467Z] 23:12:57     INFO -  DEBUG: Adding blocker ContentParent: id=1f9019f2e00 for phase profile-before-change
[task 2023-10-11T23:12:57.467Z] 23:12:57     INFO -  DEBUG: Adding blocker ContentParent: id=1f9019f2e00 for phase quit-application-granted
[task 2023-10-11T23:12:57.471Z] 23:12:57    ERROR -  TEST-UNEXPECTED-ERROR | testing/marionette/harness/marionette_harness/tests/unit/test_modal_dialogs.py TestModalDialogs.test_dont_detect_content_and_tab_modal_type_in_another_tab_for_type_tab | marionette_driver.errors.NoSuchWindowException: Unable to locate window: 2201a217-dd29-4b85-b9cf-c02e5686602f
[task 2023-10-11T23:12:57.471Z] 23:12:57     INFO -  stacktrace:
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -  	RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -  	WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:189:5
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -  	NoSuchWindowError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:630:5
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -  	GeckoDriver.prototype.switchToWindow@chrome://remote/content/marionette/driver.sys.mjs:1253:11
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -  	openPromptSync@resource://gre/modules/Prompter.sys.mjs:1042:17
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -  	alert@resource://gre/modules/Prompter.sys.mjs:1334:17
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -  	alertBC@resource://gre/modules/Prompter.sys.mjs:86:7
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -  	@Z:\task_169706508177396\build\tests\marionette\tests\testing\marionette\harness\marionette_harness\tests\unit\test_modal_dialogs.py:65:35
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -  Traceback (most recent call last):
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -    File "Z:\task_169706508177396\build\venv\lib\site-packages\marionette_harness\marionette_test\testcases.py", line 197, in run
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -      testMethod()
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -    File "Z:\task_169706508177396\build\venv\lib\site-packages\marionette_harness\marionette_test\testcases.py", line 48, in wrapper
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -      return func(self, *args, **kwargs)
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -    File "Z:\task_169706508177396\build\tests\marionette\tests\testing\marionette\harness\marionette_harness\tests\unit\test_modal_dialogs.py", line 103, in test_dont_detect_content_and_tab_modal_type_in_another_tab_for_type
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -      self.marionette.switch_to_window(self.new_tab)
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -    File "Z:\task_169706508177396\build\venv\lib\site-packages\marionette_driver\marionette.py", line 1569, in switch_to_window
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -      self._send_message(
[task 2023-10-11T23:12:57.473Z] 23:12:57     INFO -    File "Z:\task_169706508177396\build\venv\lib\site-packages\marionette_driver\decorators.py", line 24, in _
[task 2023-10-11T23:12:57.477Z] 23:12:57     INFO -      return func(*args, **kwargs)
[task 2023-10-11T23:12:57.477Z] 23:12:57     INFO -    File "Z:\task_169706508177396\build\venv\lib\site-packages\marionette_driver\marionette.py", line 722, in _send_message
[task 2023-10-11T23:12:57.477Z] 23:12:57     INFO -      self._handle_error(err)
[task 2023-10-11T23:12:57.477Z] 23:12:57     INFO -    File "Z:\task_169706508177396\build\venv\lib\site-packages\marionette_driver\marionette.py", line 734, in _handle_error
[task 2023-10-11T23:12:57.477Z] 23:12:57     INFO -      raise errors.lookup(error)(message, stacktrace=stacktrace)
[task 2023-10-11T23:12:57.477Z] 23:12:57     INFO -  TEST-INFO took 6142ms
Summary: Intermittent [Tier-2] testing/marionette/harness/marionette_harness/tests/unit/test_modal_dialogs.py | single tracking bug → Intermittent testing/marionette/harness/marionette_harness/tests/unit/test_modal_dialogs.py | single tracking bug
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 2 years ago1 year ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Attachment #9383490 - Attachment is obsolete: true
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---

It looks like that the modal dialog in another tab gets created with a small delay and we have already switched to the tab in the test:

[task 2024-10-17T07:48:39.856Z] 07:48:39     INFO -  1729151319856	Marionette	DEBUG	15 -> [0,45,"WebDriver:SwitchToWindow",{"handle":"2f5af62b-77db-41eb-bdd1-ee6566da1ccb","focus":true}]
[task 2024-10-17T07:48:39.870Z] 07:48:39     INFO -  1729151319869	RemoteAgent	TRACE	Received DOM event TabSelect for [object XULElement]
[task 2024-10-17T07:48:39.885Z] 07:48:39     INFO -  1729151319885	Marionette	DEBUG	15 <- [1,45,null,{"value":null}]
[task 2024-10-17T07:48:39.964Z] 07:48:39     INFO -  1729151319964	Marionette	DEBUG	15 -> [0,46,"WebDriver:DismissAlert",{}]
[task 2024-10-17T07:48:39.966Z] 07:48:39     INFO -  1729151319965	Marionette	DEBUG	15 <- [1,46,{"error":"no such alert","message":"","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Er ... 4974871886\\build\\tests\\marionette\\tests\\testing\\marionette\\harness\\marionette_harness\\tests\\unit\\test_modal_dialogs.py:65:35\n"},null]
[task 2024-10-17T07:48:39.983Z] 07:48:39     INFO -  1729151319983	RemoteAgent	TRACE	Received observer notification common-dialog-loaded
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 1 year ago9 months ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: