Bug: Intermittent browser/components/sidebar/tests/marionette/test_initialize_vertical_tabs.py | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2024-11-08 22:08:39+00:00
Resolved: 2024-12-02 12:10:34+00:00

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

---
```
[task 2024-11-08T21:50:48.031Z] 21:50:48     INFO - TEST-START | browser/components/sidebar/tests/marionette/test_initialize_vertical_tabs.py TestInitializeVerticalTabs.test_vertical_widgets_in_area
[task 2024-11-08T21:50:48.032Z] 21:50:48     INFO -  1731102648031	Marionette	DEBUG	Accepted connection 2 from 127.0.0.1:58736
[task 2024-11-08T21:50:48.033Z] 21:50:48     INFO -  1731102648031	Marionette	DEBUG	Closed connection 1
[task 2024-11-08T21:50:48.034Z] 21:50:48     INFO -  1731102648032	Marionette	DEBUG	2 -> [0,1,"WebDriver:NewSession",{"strictFileInteractability":true}]
[task 2024-11-08T21:50:48.034Z] 21:50:48     INFO -  1731102648033	Marionette	DEBUG	Waiting for initial application window
[task 2024-11-08T21:50:48.035Z] 21:50:48     INFO -  1731102648034	RemoteAgent	TRACE	[9] ProgressListener Start: expectNavigation=false resolveWhenStarted=false unloadTimeout=5000 waitForExplicitStart=false
[task 2024-11-08T21:50:48.036Z] 21:50:48     INFO -  1731102648034	RemoteAgent	TRACE	[9] ProgressListener Setting unload timer (5000ms)
[task 2024-11-08T21:50:48.037Z] 21:50:48     INFO -  1731102648034	RemoteAgent	TRACE	[9] Wait for initial navigation: isInitial=false, isLoadingDocument=false
[task 2024-11-08T21:50:48.038Z] 21:50:48     INFO -  1731102648034	RemoteAgent	TRACE	[9] Document already finished loading: about:blank
[task 2024-11-08T21:50:48.039Z] 21:50:48     INFO -  1731102648034	RemoteAgent	TRACE	[9] ProgressListener Stop: has error=false url=about:blank
[task 2024-11-08T21:50:48.039Z] 21:50:48     INFO -  1731102648036	Marionette	DEBUG	2 <- [1,1,null,{"sessionId":"4ccc0211-ecd7-42d1-8ff8-3c25ad8a9214","capabilities":{"acceptInsecureCerts":false,"browserName":"firefox","browserVersion":"133.0","platformName":"linux","unhandledPromptBehavior":"dismiss and notify","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0","moz:buildID":"20241108183846","moz:headless":false,"moz:platformVersion":"4.4.0-1014-aws","moz:processID":19289,"moz:profile":"/tmp/tmpl1h8kx_c.mozrunner","moz:shutdownTimeout":60000,"pageLoadStrategy":"normal","timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"setWindowRect":true,"strictFileInteractability":true,"moz:accessibilityChecks":false,"moz:webdriverClick":true,"moz:windowless":false,"proxy":{}}}]
[task 2024-11-08T21:50:48.040Z] 21:50:48     INFO -  1731102648040	Marionette	DEBUG	2 -> [0,2,"WebDriver:SetTimeouts",{"script":30000}]
[task 2024-11-08T21:50:48.041Z] 21:50:48     INFO -  1731102648040	Marionette	DEBUG	2 <- [1,2,null,{"value":null}]
[task 2024-11-08T21:50:48.041Z] 21:50:48     INFO -  1731102648041	Marionette	DEBUG	2 -> [0,3,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2024-11-08T21:50:48.042Z] 21:50:48     INFO -  1731102648041	Marionette	DEBUG	2 <- [1,3,null,{"value":null}]
[task 2024-11-08T21:50:48.043Z] 21:50:48     INFO -  1731102648042	Marionette	DEBUG	2 -> [0,4,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2024-11-08T21:50:48.043Z] 21:50:48     INFO -  1731102648042	Marionette	DEBUG	2 <- [1,4,null,{"value":null}]
[task 2024-11-08T21:50:48.044Z] 21:50:48     INFO -  1731102648043	Marionette	DEBUG	2 -> [0,5,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-11-08T21:50:48.044Z] 21:50:48     INFO -  1731102648043	Marionette	DEBUG	2 <- [1,5,null,{"value":null}]
[task 2024-11-08T21:50:48.045Z] 21:50:48     INFO -  1731102648044	Marionette	DEBUG	2 -> [0,6,"Marionette:GetContext",{}]
[task 2024-11-08T21:50:48.045Z] 21:50:48     INFO -  1731102648044	Marionette	DEBUG	2 <- [1,6,null,{"value":"chrome"}]
[task 2024-11-08T21:50:48.046Z] 21:50:48     INFO -  1731102648045	Marionette	DEBUG	2 -> [0,7,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-11-08T21:50:48.046Z] 21:50:48     INFO -  1731102648045	Marionette	DEBUG	2 <- [1,7,null,{"value":null}]
[task 2024-11-08T21:50:48.047Z] 21:50:48     INFO -  1731102648047	Marionette	DEBUG	2 -> [0,8,"WebDriver:ExecuteScript",{"script":"const { Preferences } = ChromeUtils.importESModule(\n                  \"resource://gre/modules/Preferences.sys.mjs\"\n           ... guments[2];\n\n                prefs = new Preferences({defaultBranch: defaultBranch});\n                prefs.set(pref, value);","args":["sidebar.revamp",true,false],"newSandbox":true,"sandbox":"default","line":944,"filename":"../../venv/lib/python3.8/site-packages/marionette_driver/marionette.py"}]
[task 2024-11-08T21:50:48.051Z] 21:50:48     INFO -  1731102648051	RemoteAgent	TRACE	WebDriverProcessData actor created for PID 19289
[task 2024-11-08T21:50:48.053Z] 21:50:48     INFO -  1731102648052	Marionette	TRACE	[1] MarionetteCommands actor created for window id 2
[task 2024-11-08T21:50:48.289Z] 21:50:48     INFO -  1731102648288	Marionette	DEBUG	2 <- [1,8,null,{"value":null}]
[task 2024-11-08T21:50:48.293Z] 21:50:48     INFO -  1731102648293	Marionette	DEBUG	2 -> [0,9,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-11-08T21:50:48.297Z] 21:50:48     INFO -  1731102648293	Marionette	DEBUG	2 <- [1,9,null,{"value":null}]
[task 2024-11-08T21:50:48.300Z] 21:50:48     INFO -  1731102648294	Marionette	DEBUG	2 -> [0,10,"Marionette:GetContext",{}]
[task 2024-11-08T21:50:48.300Z] 21:50:48     INFO -  1731102648294	Marionette	DEBUG	2 <- [1,10,null,{"value":"chrome"}]
[task 2024-11-08T21:50:48.300Z] 21:50:48     INFO -  1731102648295	Marionette	DEBUG	2 -> [0,11,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-11-08T21:50:48.300Z] 21:50:48     INFO -  1731102648295	Marionette	DEBUG	2 <- [1,11,null,{"value":null}]
[task 2024-11-08T21:50:48.300Z] 21:50:48     INFO -  1731102648297	Marionette	DEBUG	2 -> [0,12,"WebDriver:ExecuteScript",{"script":"const { Preferences } = ChromeUtils.importESModule(\n                  \"resource://gre/modules/Preferences.sys.mjs\"\n           ... guments[2];\n\n                prefs = new Preferences({defaultBranch: defaultBranch});\n                prefs.set(pref, value);","args":["sidebar.verticalTabs",true,false],"newSandbox":true,"sandbox":"default","line":944,"filename":"../../venv/lib/python3.8/site-packages/marionette_driver/marionette.py"}]
[task 2024-11-08T21:50:48.533Z] 21:50:48     INFO -  1731102648533	Marionette	DEBUG	2 <- [1,12,null,{"value":null}]
[task 2024-11-08T21:50:48.537Z] 21:50:48     INFO -  1731102648536	Marionette	DEBUG	2 -> [0,13,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-11-08T21:50:48.537Z] 21:50:48     INFO -  1731102648536	Marionette	DEBUG	2 <- [1,13,null,{"value":null}]
[task 2024-11-08T21:50:48.538Z] 21:50:48     INFO -  1731102648537	Marionette	DEBUG	2 -> [0,14,"Marionette:GetContext",{}]
[task 2024-11-08T21:50:48.538Z] 21:50:48     INFO -  1731102648537	Marionette	DEBUG	2 <- [1,14,null,{"value":"chrome"}]
[task 2024-11-08T21:50:48.539Z] 21:50:48     INFO -  1731102648537	Marionette	DEBUG	2 -> [0,15,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-11-08T21:50:48.540Z] 21:50:48     INFO -  1731102648538	Marionette	DEBUG	2 <- [1,15,null,{"value":null}]
[task 2024-11-08T21:50:48.540Z] 21:50:48     INFO -  1731102648538	Marionette	DEBUG	2 -> [0,16,"WebDriver:ExecuteScript",{"script":"const { Preferences } = ChromeUtils.importESModule(\n                 \"resource://gre/modules/Preferences.sys.mjs\"\n               );\n               Preferences.reset(arguments[0]);","args":["browser.uiCustomization.state"],"newSandbox":true,"sandbox":"default","line":878,"filename":"../../venv/lib/python3.8/site-packages/marionette_driver/marionette.py"}]
[task 2024-11-08T21:50:48.541Z] 21:50:48     INFO -  1731102648540	Marionette	DEBUG	2 <- [1,16,null,{"value":null}]
[task 2024-11-08T21:50:48.542Z] 21:50:48     INFO -  1731102648541	Marionette	DEBUG	2 -> [0,17,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-11-08T21:50:48.542Z] 21:50:48     INFO -  1731102648541	Marionette	DEBUG	2 <- [1,17,null,{"value":null}]
[task 2024-11-08T21:50:48.542Z] 21:50:48     INFO -  1731102648542	Marionette	DEBUG	2 -> [0,18,"Marionette:GetContext",{}]
[task 2024-11-08T21:50:48.542Z] 21:50:48     INFO -  1731102648542	Marionette	DEBUG	2 <- [1,18,null,{"value":"chrome"}]
[task 2024-11-08T21:50:48.543Z] 21:50:48     INFO -  1731102648542	Marionette	DEBUG	2 -> [0,19,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-11-08T21:50:48.543Z] 21:50:48     INFO -  1731102648543	Marionette	DEBUG	2 <- [1,19,null,{"value":null}]
[task 2024-11-08T21:50:48.544Z] 21:50:48     INFO -  1731102648543	Marionette	DEBUG	2 -> [0,20,"WebDriver:ExecuteScript",{"script":"const { Preferences } = ChromeUtils.importESModule(\n                 \"resource://gre/modules/Preferences.sys.mjs\"\n               );\n               Preferences.reset(arguments[0]);","args":["browser.uiCustomization.horizontalTabstrip"],"newSandbox":true,"sandbox":"default","line":878,"filename":"../../venv/lib/python3.8/site-packages/marionette_driver/marionette.py"}]
[task 2024-11-08T21:50:48.546Z] 21:50:48     INFO -  1731102648545	Marionette	DEBUG	2 <- [1,20,null,{"value":null}]
[task 2024-11-08T21:50:48.546Z] 21:50:48     INFO -  1731102648546	Marionette	DEBUG	2 -> [0,21,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-11-08T21:50:48.547Z] 21:50:48     INFO -  1731102648546	Marionette	DEBUG	2 <- [1,21,null,{"value":null}]
[task 2024-11-08T21:50:48.548Z] 21:50:48     INFO -  1731102648546	Marionette	DEBUG	2 -> [0,22,"Marionette:GetContext",{}]
[task 2024-11-08T21:50:48.548Z] 21:50:48     INFO -  1731102648547	Marionette	DEBUG	2 <- [1,22,null,{"value":"chrome"}]
[task 2024-11-08T21:50:48.548Z] 21:50:48     INFO -  1731102648547	Marionette	DEBUG	2 -> [0,23,"Marionette:AcceptConnections",{"value":false}]
[task 2024-11-08T21:50:48.548Z] 21:50:48     INFO -  1731102648547	Marionette	INFO	Stopped listening on port 2828
[task 2024-11-08T21:50:48.548Z] 21:50:48     INFO -  1731102648547	Marionette	DEBUG	2 <- [1,23,null,{"value":null}]
[task 2024-11-08T21:50:48.548Z] 21:50:48     INFO -  1731102648548	Marionette	DEBUG	2 -> [0,24,"Marionette:Quit",{"flags":["eRestart"]}]
[task 2024-11-08T21:50:48.598Z] 21:50:48     INFO - TEST-UNEXPECTED-ERROR | browser/components/sidebar/tests/marionette/test_initialize_vertical_tabs.py TestInitializeVerticalTabs.test_vertical_widgets_in_area | marionette_driver.errors.InvalidSessionIdException: Please start a session
[task 2024-11-08T21:50:48.598Z] 21:50:48     INFO - Traceback (most recent call last):
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_harness/marionette_test/testcases.py", line 198, in run
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -     testMethod()
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sidebar/tests/marionette/test_initialize_vertical_tabs.py", line 101, in test_vertical_widgets_in_area
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -     self.restart_with_prefs(
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sidebar/tests/marionette/test_initialize_vertical_tabs.py", line 36, in restart_with_prefs
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -     self.marionette.restart(clean=False, in_app=True)
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/decorators.py", line 24, in _
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -     return func(*args, **kwargs)
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/marionette.py", line 1256, in restart
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -     self._send_message(
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/decorators.py", line 24, in _
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -     return func(*args, **kwargs)
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/marionette.py", line 766, in _send_message
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO -     raise errors.InvalidSessionIdException("Please start a session")
[task 2024-11-08T21:50:48.599Z] 21:50:48     INFO - TEST-INFO took 564ms
[task 2024-11-08T21:50:48.601Z] 21:50:48    ERROR - test_end for browser/components/sidebar/tests/marionette/test_initialize_vertical_tabs.py TestInitializeVerticalTabs.test_vertical_widgets_in_area logged while not in progress. Logged with data: {"message": "ConnectionRefusedError: [Errno 111] Connection refused", "expected": "PASS", "stack": "Traceback (most recent call last):\n  File \"/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_harness/marionette_test/testcases.py\", line 231, in run\n    self.tearDown()\n  File \"/builds/worker/workspace/build/tests/marionette/tests/browser/components/sidebar/tests/marionette/test_initialize_vertical_tabs.py\", line 26, in tearDown\n    super().tearDown()\n  File \"/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_harness/marionette_test/testcases.py\", line 406, in tearDown\n    self.marionette.start_session()\n  File \"/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/decorators.py\", line 24, in _\n    return func(*args, **kwargs)\n  File \"/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/marionette.py\", line 1371, in start_session\n    self.protocol, _ = self.client.connect()\n  File \"/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/transport.py\", line 296, in connect\n    self._socket_context = SocketContext(\n  File \"/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/transport.py\", line 101, in __init__\n    self._sock.connect((host, port))\n", "extra": {"class_name": "test_initialize_vertical_tabs.TestInitializeVerticalTabs", "method_name": "test_vertical_widgets_in_area"}, "test": "browser/components/sidebar/tests/marionette/test_initialize_vertical_tabs.py TestInitializeVerticalTabs.test_vertical_widgets_in_area", "status": "ERROR"}
[task 2024-11-08T21:50:48.602Z] 21:50:48     INFO -  Exiting due to channel error.
[task 2024-11-08T21:50:48.602Z] 21:50:48     INFO -  Exiting due to channel error.
[task 2024-11-08T21:50:48.602Z] 21:50:48     INFO -  Exiting due to channel error.
[task 2024-11-08T21:50:48.602Z] 21:50:48     INFO -  Exiting due to channel error.
[task 2024-11-08T21:50:48.602Z] 21:50:48     INFO -  Exiting due to channel error.
[task 2024-11-08T21:50:48.602Z] 21:50:48     INFO - TEST-START | browser/components/tests/marionette/test_no_errors_clean_profile.py TestNoErrorsNewProfile.test_no_errors
[task 2024-11-08T21:50:48.605Z] 21:50:48     INFO - TEST-UNEXPECTED-ERROR | browser/components/tests/marionette/test_no_errors_clean_profile.py TestNoErrorsNewProfile.test_no_errors | ConnectionRefusedError: [Errno 111] Connection refused
[task 2024-11-08T21:50:48.605Z] 21:50:48     INFO - Traceback (most recent call last):
[task 2024-11-08T21:50:48.605Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_harness/marionette_test/testcases.py", line 179, in run
[task 2024-11-08T21:50:48.605Z] 21:50:48     INFO -     self.setUp()
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/tests/marionette/test_no_errors_clean_profile.py", line 67, in setUp
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -     super(MarionetteTestCase, self).setUp()
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_harness/marionette_test/testcases.py", line 304, in setUp
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -     self.marionette.start_session()
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/decorators.py", line 24, in _
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -     return func(*args, **kwargs)
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/marionette.py", line 1371, in start_session
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -     self.protocol, _ = self.client.connect()
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/transport.py", line 296, in connect
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -     self._socket_context = SocketContext(
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/transport.py", line 101, in __init__
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO -     self._sock.connect((host, port))
[task 2024-11-08T21:50:48.606Z] 21:50:48     INFO - TEST-INFO took 3ms
[task 2024-11-08T21:50:48.608Z] 21:50:48     INFO - TEST-START | dom/cache/test/marionette/test_cacheapi_encryption_PBM.py CacheAPIEncryptionPBM.test_encrypted_request_response_ondisk
```