Closed Bug 2076677 Opened 2 months ago Closed 1 month ago

Perma for some test platforms dom/cache/test/marionette/test_caches_delete_cleanup_after_shutdown.py CachesDeleteCleanupAtShutdownTestCase.test_ensure_cache_cleanup_after_unclean_restart when Gecko 159 merges to beta on 2026-10-08

Categories

(Core :: Storage: Cache API, defect)

defect

Tracking

()

VERIFIED FIXED
159 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 --- unaffected
firefox157 --- unaffected
firefox158 --- unaffected
firefox159 + verified

People

(Reporter: amarc, Assigned: jari, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 external file)

Central-as-beta-simulation

How to run these simulations

Failure log

  • Failure snippet:
[task 2026-09-30T09:57:52.538+00:00] 09:57:52     INFO -  Storage initialized = True, temporary storage initialized = True
[task 2026-09-30T09:57:52.538+00:00] 09:57:52     INFO -  morgueDir path =  C:\Users\task_179076108767945\AppData\Local\Temp\tmp387g3mhe.mozrunner/storage/default/http+++127.0.0.1+49834/cache/morgue
[task 2026-09-30T09:57:52.539+00:00] 09:57:52     INFO -  Usage = 423048 and number of orphaned bodies = 0
[task 2026-09-30T09:57:53.532+00:00] 09:57:53     INFO -  1790762273533	Marionette	DEBUG	1 -> [0,536,"WebDriver:ExecuteAsyncScript",{"script":"const [resolve] = arguments;\n                window.wrappedJSObject.getStorageEstimate()\n                    .then(resolve)\n                    .catch(()=>resolve(-1));","args":[],"newSandbox":false,"sandbox":"default","scriptTimeout":null,"line":50,"filename":"C:\\Users\\task_179076108767945\\build\\tests\\marionette\\tests\\dom\\cache\\test\\marionette\\test_caches_delete_cleanup_after_shutdown.py"}]
[task 2026-09-30T09:57:53.535+00:00] 09:57:53     INFO -  1790762273535	Marionette	DEBUG	1 <- [1,536,null,{"value":423048}]
[task 2026-09-30T09:57:53.536+00:00] 09:57:53     INFO -  1790762273536	Marionette	DEBUG	1 -> [0,537,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:53.536+00:00] 09:57:53     INFO -  1790762273536	Marionette	DEBUG	1 <- [1,537,null,{"value":"content"}]
[task 2026-09-30T09:57:53.536+00:00] 09:57:53     INFO -  1790762273536	Marionette	DEBUG	1 -> [0,538,"Marionette:SetContext",{"value":"chrome"}]
[task 2026-09-30T09:57:53.536+00:00] 09:57:53     INFO -  1790762273536	Marionette	DEBUG	1 <- [1,538,null,{"value":null}]
[task 2026-09-30T09:57:53.537+00:00] 09:57:53     INFO -  1790762273537	Marionette	DEBUG	1 -> [0,539,"WebDriver:ExecuteAsyncScript",{"script":"const [resolve] = arguments;\n                    const req = Services.qms.storageInitialized();\n                    req.callback = () => {\n                        resolve(req.resultCode == Cr.NS_OK && req.result)\n                    };","args":[],"newSandbox":false,"sandbox":"default","scriptTimeout":null,"line":139,"filename":"C:\\Users\\task_179076108767945\\build\\tests\\marionette\\tests\\dom\\cache\\test\\marionette\\test_caches_delete_cleanup_after_shutdown.py"}]
[task 2026-09-30T09:57:53.539+00:00] 09:57:53     INFO -  1790762273539	Marionette	DEBUG	1 <- [1,539,null,{"value":true}]
[task 2026-09-30T09:57:53.539+00:00] 09:57:53     INFO -  1790762273539	Marionette	DEBUG	1 -> [0,540,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:53.539+00:00] 09:57:53     INFO -  1790762273540	Marionette	DEBUG	1 <- [1,540,null,{"value":null}]
[task 2026-09-30T09:57:53.540+00:00] 09:57:53     INFO -  1790762273540	Marionette	DEBUG	1 -> [0,541,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:53.540+00:00] 09:57:53     INFO -  1790762273540	Marionette	DEBUG	1 <- [1,541,null,{"value":"content"}]
[task 2026-09-30T09:57:53.540+00:00] 09:57:53     INFO -  1790762273540	Marionette	DEBUG	1 -> [0,542,"Marionette:SetContext",{"value":"chrome"}]
[task 2026-09-30T09:57:53.540+00:00] 09:57:53     INFO -  1790762273540	Marionette	DEBUG	1 <- [1,542,null,{"value":null}]
[task 2026-09-30T09:57:53.541+00:00] 09:57:53     INFO -  1790762273541	Marionette	DEBUG	1 -> [0,543,"WebDriver:ExecuteAsyncScript",{"script":"const [resolve] = arguments;\n                    const req = Services.qms.temporaryStorageInitialized();\n                    req.callback = () => {\n                        resolve(req.resultCode == Cr.NS_OK && req.result)\n                    };","args":[],"newSandbox":false,"sandbox":"default","scriptTimeout":null,"line":139,"filename":"C:\\Users\\task_179076108767945\\build\\tests\\marionette\\tests\\dom\\cache\\test\\marionette\\test_caches_delete_cleanup_after_shutdown.py"}]
[task 2026-09-30T09:57:53.542+00:00] 09:57:53     INFO -  1790762273543	Marionette	DEBUG	1 <- [1,543,null,{"value":true}]
[task 2026-09-30T09:57:53.543+00:00] 09:57:53     INFO -  1790762273543	Marionette	DEBUG	1 -> [0,544,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:53.543+00:00] 09:57:53     INFO -  1790762273543	Marionette	DEBUG	1 <- [1,544,null,{"value":null}]
[task 2026-09-30T09:57:53.543+00:00] 09:57:53     INFO -  Storage initialized = True, temporary storage initialized = True
[task 2026-09-30T09:57:53.543+00:00] 09:57:53     INFO -  morgueDir path =  C:\Users\task_179076108767945\AppData\Local\Temp\tmp387g3mhe.mozrunner/storage/default/http+++127.0.0.1+49834/cache/morgue
[task 2026-09-30T09:57:53.543+00:00] 09:57:53     INFO -  Usage = 423048 and number of orphaned bodies = 0
[task 2026-09-30T09:57:54.540+00:00] 09:57:54     INFO -  1790762274541	Marionette	DEBUG	1 -> [0,545,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:54.541+00:00] 09:57:54     INFO -  1790762274541	Marionette	DEBUG	1 <- [1,545,null,{"value":"content"}]
[task 2026-09-30T09:57:54.542+00:00] 09:57:54     INFO -  1790762274542	Marionette	DEBUG	1 -> [0,546,"Marionette:SetContext",{"value":"chrome"}]
[task 2026-09-30T09:57:54.542+00:00] 09:57:54     INFO -  1790762274542	Marionette	DEBUG	1 <- [1,546,null,{"value":null}]
[task 2026-09-30T09:57:54.542+00:00] 09:57:54     INFO -  1790762274542	Marionette	DEBUG	1 -> [0,547,"WebDriver:TakeScreenshot",{"id":null,"full":true,"hash":false,"scroll":true}]
[task 2026-09-30T09:57:54.563+00:00] 09:57:54     INFO -  1790762274568	Marionette	DEBUG	1 <- [1,547,null,{"value":"iVBORw0KGgoAAAANSUhEUgAABQAAAAPQCAYAAABpCtbiAAAgAElEQVR4XuzdB5wdVd3/8d+mbja990IqEEpCCb2DgkgX+FsQfEBUHhQfeETBAlhARVH/+gdFkSYoR ... AxgQgAAAAAIwJQAAAAAAYE4AAAAAAMCYAAQAAAGBMAAIAAADAmAAEAAAAgDEBCAAAAABjAhAAAAAAxgQgAAAAAIwJQAAAAAAYC+iUooRhkAzYAAAAAElFTkSuQmCC"}]
[task 2026-09-30T09:57:54.569+00:00] 09:57:54     INFO -  1790762274569	Marionette	DEBUG	1 -> [0,548,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:54.569+00:00] 09:57:54     INFO -  1790762274569	Marionette	DEBUG	1 <- [1,548,null,{"value":null}]
[task 2026-09-30T09:57:54.570+00:00] 09:57:54     INFO -  1790762274570	Marionette	DEBUG	1 -> [0,549,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:54.570+00:00] 09:57:54     INFO -  1790762274570	Marionette	DEBUG	1 <- [1,549,null,{"value":"content"}]
[task 2026-09-30T09:57:54.570+00:00] 09:57:54     INFO -  1790762274570	Marionette	DEBUG	1 -> [0,550,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:54.570+00:00] 09:57:54     INFO -  1790762274570	Marionette	DEBUG	1 <- [1,550,null,{"value":null}]
[task 2026-09-30T09:57:54.570+00:00] 09:57:54     INFO -  1790762274570	Marionette	DEBUG	1 -> [0,551,"WebDriver:GetPageSource",{}]
[task 2026-09-30T09:57:54.571+00:00] 09:57:54     INFO -  1790762274572	Marionette	DEBUG	1 <- [1,551,null,{"value":"<html><head>\n        <script>\n            async function getStorageEstimate() {\n                let r = await navigator.stora ...   await caches.delete(id)\n                return \"success\";\n            }\n        </script>\n    </head>\n<body>\n</body></html>"}]
[task 2026-09-30T09:57:54.572+00:00] 09:57:54     INFO -  1790762274572	Marionette	DEBUG	1 -> [0,552,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:54.572+00:00] 09:57:54     INFO -  1790762274572	Marionette	DEBUG	1 <- [1,552,null,{"value":null}]
[task 2026-09-30T09:57:54.580+00:00] 09:57:54    ERROR -  TEST-UNEXPECTED-ERROR | dom/cache/test/marionette/test_caches_delete_cleanup_after_shutdown.py CachesDeleteCleanupAtShutdownTestCase.test_ensure_cache_cleanup_after_unclean_restart | marionette_driver.errors.TimeoutException: Timed out after 60.5 seconds with message: Cache directory is not cleaned up properly
[task 2026-09-30T09:57:54.580+00:00] 09:57:54     INFO -  Traceback (most recent call last):
[task 2026-09-30T09:57:54.580+00:00] 09:57:54     INFO -    File "C:\Users\task_179076108767945\build\venv\lib\site-packages\marionette_harness\marionette_test\testcases.py", line 192, in run
[task 2026-09-30T09:57:54.580+00:00] 09:57:54     INFO -      testMethod()
[task 2026-09-30T09:57:54.580+00:00] 09:57:54     INFO -    File "C:\Users\task_179076108767945\build\tests\marionette\tests\dom\cache\test\marionette\test_caches_delete_cleanup_after_shutdown.py", line 224, in test_ensure_cache_cleanup_after_unclean_restart
[task 2026-09-30T09:57:54.581+00:00] 09:57:54     INFO -      if not self.create_and_cleanup_cache(ensureCleanCallback, False):
[task 2026-09-30T09:57:54.581+00:00] 09:57:54     INFO -    File "C:\Users\task_179076108767945\build\tests\marionette\tests\dom\cache\test\marionette\test_caches_delete_cleanup_after_shutdown.py", line 166, in create_and_cleanup_cache
[task 2026-09-30T09:57:54.581+00:00] 09:57:54     INFO -      return ensureCleanCallback()
[task 2026-09-30T09:57:54.581+00:00] 09:57:54     INFO -    File "C:\Users\task_179076108767945\build\tests\marionette\tests\dom\cache\test\marionette\test_caches_delete_cleanup_after_shutdown.py", line 213, in ensureCleanCallback
[task 2026-09-30T09:57:54.581+00:00] 09:57:54     INFO -      Wait(self.marionette, interval=1, timeout=60).until(
[task 2026-09-30T09:57:54.581+00:00] 09:57:54     INFO -    File "C:\Users\task_179076108767945\build\venv\lib\site-packages\marionette_driver\wait.py", line 159, in until
[task 2026-09-30T09:57:54.581+00:00] 09:57:54     INFO -      raise errors.TimeoutException(
[task 2026-09-30T09:57:54.581+00:00] 09:57:54     INFO -  TEST-INFO took 67833ms
[task 2026-09-30T09:57:54.581+00:00] 09:57:54     INFO -  1790762274580	Marionette	DEBUG	1 -> [0,553,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:54.581+00:00] 09:57:54     INFO -  1790762274580	Marionette	DEBUG	1 <- [1,553,null,{"value":"content"}]
[task 2026-09-30T09:57:54.584+00:00] 09:57:54     INFO -  1790762274584	Marionette	DEBUG	1 -> [0,554,"WebDriver:DeleteSession",{}]
[task 2026-09-30T09:57:54.586+00:00] 09:57:54     INFO -  1790762274586	Marionette	TRACE	[1] MarionetteCommands actor destroyed for window id 2
[task 2026-09-30T09:57:54.586+00:00] 09:57:54     INFO -  1790762274586	Marionette	TRACE	[3] MarionetteCommands actor destroyed for window id 15032385537
[task 2026-09-30T09:57:54.587+00:00] 09:57:54     INFO -  1790762274588	Marionette	DEBUG	1 <- [1,554,null,{"value":null}]
[task 2026-09-30T09:57:54.666+00:00] 09:57:54     INFO -  Application command: C:\Users\task_179076108767945\build\application\firefox\firefox.exe -marionette --wait-for-browser -profile C:\Users\task_179076108767945\AppData\Local\Temp\tmpzed9d_ma.mozrunner
[task 2026-09-30T09:57:55.076+00:00] 09:57:55     INFO -  1790762275089	Marionette	INFO	Marionette enabled
[task 2026-09-30T09:57:55.092+00:00] 09:57:55     INFO -  1790762275091	Marionette	TRACE	Received observer notification final-ui-startup
[task 2026-09-30T09:57:55.092+00:00] 09:57:55     INFO -  1790762275092	Marionette	DEBUG	Initializing Marionette
[task 2026-09-30T09:57:55.218+00:00] 09:57:55     INFO -  [Parent 2640, WindowsVsyncThread] WARNING: DwmComposition dynamically disabled, falling back to software timers: file \builds\worker\checkouts\gecko\gfx\thebes\gfxWindowsPlatform.cpp:1524
[task 2026-09-30T09:57:55.224+00:00] 09:57:55     INFO -  1790762275224	Marionette	INFO	Listening on port 2828
[task 2026-09-30T09:57:55.226+00:00] 09:57:55     INFO -  1790762275226	Marionette	DEBUG	Marionette is listening
[task 2026-09-30T09:57:55.238+00:00] 09:57:55     INFO -  1790762275244	Marionette	DEBUG	Accepted connection 0 from 127.0.0.1:55078
[task 2026-09-30T09:57:55.255+00:00] 09:57:55     INFO -  [GPU 9780, Renderer] WARNING: Failed to bind API to GL!: file checkouts\gecko\gfx\gl\GLContextProviderEGL.cpp:651
[task 2026-09-30T09:57:55.255+00:00] 09:57:55     INFO -  [GPU 9780, Renderer] WARNING: Failed to create GLContext from PBuffer: file checkouts\gecko\gfx\gl\GLContextProviderEGL.cpp:1207
[task 2026-09-30T09:57:55.255+00:00] 09:57:55     INFO -  Initializing context 1 surface 1 on display 1e5e535ba00
[task 2026-09-30T09:57:55.255+00:00] 09:57:55     INFO -  GL_VENDOR: Google Inc. (Microsoft)
[task 2026-09-30T09:57:55.255+00:00] 09:57:55     INFO -  mVendor: Unknown
[task 2026-09-30T09:57:55.255+00:00] 09:57:55     INFO -  GL_RENDERER: ANGLE (Microsoft, Microsoft Basic Render Driver (0x0000008C) Direct3D11 vs_5_0 ps_5_0, D3D11-10.0.26100.9278)
[task 2026-09-30T09:57:55.255+00:00] 09:57:55     INFO -  mRenderer: Microsoft Basic Render Driver
[task 2026-09-30T09:57:55.256+00:00] 09:57:55     INFO -  mIsMesa: 0
[task 2026-09-30T09:57:55.256+00:00] 09:57:55     INFO -  [GPU 9780, Renderer] WARNING: framebuffer_multisample marked as unsupported: file checkouts\gecko\gfx\gl\GLContextFeatures.cpp:661
[task 2026-09-30T09:57:55.264+00:00] 09:57:55     INFO -  1790762275265	Marionette	DEBUG	Closed connection 0
[task 2026-09-30T09:57:55.280+00:00] 09:57:55     INFO -  1790762275286	Marionette	DEBUG	Accepted connection 1 from 127.0.0.1:55081
[task 2026-09-30T09:57:55.375+00:00] 09:57:55     INFO -  [WARN  rkv::backend::impl_safe::environment] `load_ratio()` is irrelevant for this storage backend.
[task 2026-09-30T09:57:55.380+00:00] 09:57:55     INFO -  1790762275390	Marionette	DEBUG	Closed connection 1
[task 2026-09-30T09:57:55.390+00:00] 09:57:55     INFO -  1790762275390	Marionette	DEBUG	Accepted connection 2 from 127.0.0.1:55082
[task 2026-09-30T09:57:55.422+00:00] 09:57:55     INFO -  1790762275433	Marionette	DEBUG	2 -> [0,1,"WebDriver:NewSession",{"strictFileInteractability":true}]
[task 2026-09-30T09:57:55.438+00:00] 09:57:55     INFO -  1790762275441	Marionette	DEBUG	Waiting for initial application window
[task 2026-09-30T09:57:55.911+00:00] 09:57:55     INFO -  [Parent 2640, Main Thread] WARNING: '!anonymousDivElement', file checkouts\gecko\dom\html\TextControlState.cpp:1626
[task 2026-09-30T09:57:55.911+00:00] 09:57:55     INFO -  [Parent 2640, Main Thread] WARNING: NS_ENSURE_SUCCESS_VOID(PrepareEditor()) failed with result 0x80004005 (NS_ERROR_FAILURE): file checkouts\gecko\dom\html\TextControlState.cpp:1863
[task 2026-09-30T09:57:56.275+00:00] 09:57:56     INFO -  [Parent 2640, Main Thread] WARNING: Ignoring duplicate observer: ui.new-webcompat-reporter.screenshots.enabled: file checkouts\gecko\modules\libpref\Preferences.cpp:3532
[task 2026-09-30T09:57:56.275+00:00] 09:57:56     INFO -  [Parent 2640, Main Thread] WARNING: Ignoring duplicate observer: ui.new-webcompat-reporter.show-send-more-info-link: file checkouts\gecko\modules\libpref\Preferences.cpp:3532
[task 2026-09-30T09:57:56.639+00:00] 09:57:56     INFO -  [ERROR shell_windows::limited_access_features] Error generating feature token: NS_ERROR_FAILURE
[task 2026-09-30T09:57:56.766+00:00] 09:57:56     INFO -  [Child 7164, Main Thread] WARNING: 'NS_FAILED(rv)', file checkouts\gecko\modules\libjar\nsJARChannel.cpp:388
[task 2026-09-30T09:57:56.781+00:00] 09:57:56     INFO -  [Parent 2640, Main Thread] WARNING: Failed to retarget HTML data delivery to the parser thread.: file checkouts\gecko\parser\html\nsHtml5StreamParser.cpp:1227
[task 2026-09-30T09:57:56.810+00:00] 09:57:56     INFO -  [Parent 2640, Main Thread] WARNING: NS_ENSURE_TRUE(mNameHashtable.Get(aName, &index)) failed: file checkouts\gecko\storage\mozStorageRow.cpp:89
[task 2026-09-30T09:57:57.118+00:00] 09:57:57     INFO -  1790762277125	Marionette	TRACE	Received observer notification browser-idle-startup-tasks-finished
[task 2026-09-30T09:57:57.302+00:00] 09:57:57     INFO -  1790762277302	RemoteAgent	TRACE	[10] ProgressListener Start: expectNavigation=false resolveWhenStarted=false unloadTimeout=40000 waitForExplicitStart=false
[task 2026-09-30T09:57:57.302+00:00] 09:57:57     INFO -  1790762277303	RemoteAgent	TRACE	[10] ProgressListener Setting unload timer (40000ms)
[task 2026-09-30T09:57:57.303+00:00] 09:57:57     INFO -  1790762277303	RemoteAgent	TRACE	[10] Wait for initial navigation: isUncommittedInitial=false, isLoadingDocument=false
[task 2026-09-30T09:57:57.303+00:00] 09:57:57     INFO -  1790762277303	RemoteAgent	TRACE	[10] Document already finished loading: about:blank
[task 2026-09-30T09:57:57.303+00:00] 09:57:57     INFO -  1790762277303	RemoteAgent	TRACE	[10] ProgressListener Stop: has error=false url=about:blank
[task 2026-09-30T09:57:57.318+00:00] 09:57:57     INFO -  1790762277319	Marionette	DEBUG	2 <- [1,1,null,{"sessionId":"38b828ce-a1ac-4465-a0a8-cae080d6c1ff","capabilities":{"acceptInsecureCerts":false,"browserName":"firefox","browserVersion":"159.0","platformName":"windows","setWindowRect":true,"unhandledPromptBehavior":"dismiss and notify","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:159.0) Gecko/20100101 Firefox/159.0","moz:buildID":"20260930084021","moz:headless":false,"moz:platformVersion":"10.0","moz:processID":2640,"moz:profile":"C:\\Users\\task_179076108767945\\AppData\\Local\\Temp\\tmpzed9d_ma.mozrunner","moz:shutdownTimeout":60000,"pageLoadStrategy":"normal","timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"strictFileInteractability":true,"moz:accessibilityChecks":false,"moz:webdriverClick":true,"moz:windowless":false,"proxy":{}}}]
[task 2026-09-30T09:57:57.327+00:00] 09:57:57     INFO -  [Parent 2640, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80040111 (NS_ERROR_NOT_AVAILABLE): file \builds\worker\checkouts\gecko\caps\BasePrincipal.cpp:1557
[task 2026-09-30T09:57:57.328+00:00] 09:57:57     INFO -  1790762277327	Marionette	DEBUG	2 -> [0,2,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:57.328+00:00] 09:57:57     INFO -  1790762277327	Marionette	DEBUG	2 <- [1,2,null,{"value":null}]
[task 2026-09-30T09:57:57.328+00:00] 09:57:57     INFO -  1790762277328	Marionette	DEBUG	2 -> [0,3,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:57.328+00:00] 09:57:57     INFO -  1790762277329	Marionette	DEBUG	2 <- [1,3,null,{"value":"content"}]
[task 2026-09-30T09:57:57.329+00:00] 09:57:57     INFO -  1790762277329	Marionette	DEBUG	2 -> [0,4,"Marionette:SetContext",{"value":"chrome"}]
[task 2026-09-30T09:57:57.329+00:00] 09:57:57     INFO -  1790762277330	Marionette	DEBUG	2 <- [1,4,null,{"value":null}]
[task 2026-09-30T09:57:57.331+00:00] 09:57:57     INFO -  1790762277331	Marionette	DEBUG	2 -> [0,5,"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":["dom.quotaManager.testing",false,false],"newSandbox":true,"sandbox":"default","line":948,"filename":"C:\\Users\\task_179076108767945\\build\\venv\\lib\\site-packages\\marionette_driver\\marionette.py"}]
[task 2026-09-30T09:57:57.337+00:00] 09:57:57     INFO -  1790762277337	RemoteAgent	TRACE	WebDriverProcessData actor created for PID 2640
[task 2026-09-30T09:57:57.338+00:00] 09:57:57     INFO -  1790762277338	Marionette	TRACE	[1] MarionetteCommands actor created for window id 2
[task 2026-09-30T09:57:57.344+00:00] 09:57:57     INFO -  1790762277344	Marionette	DEBUG	2 <- [1,5,null,{"value":null}]
[task 2026-09-30T09:57:57.345+00:00] 09:57:57     INFO -  1790762277345	Marionette	DEBUG	2 -> [0,6,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:57.345+00:00] 09:57:57     INFO -  1790762277345	Marionette	DEBUG	2 <- [1,6,null,{"value":null}]
[task 2026-09-30T09:57:57.346+00:00] 09:57:57     INFO -  1790762277346	Marionette	DEBUG	2 -> [0,7,"WebDriver:DeleteSession",{}]
[task 2026-09-30T09:57:57.347+00:00] 09:57:57     INFO -  1790762277347	Marionette	TRACE	[1] MarionetteCommands actor destroyed for window id 2
[task 2026-09-30T09:57:57.349+00:00] 09:57:57     INFO -  1790762277349	Marionette	DEBUG	2 <- [1,7,null,{"value":null}]
[task 2026-09-30T09:57:57.350+00:00] 09:57:57     INFO -  1790762277350	Marionette	DEBUG	Closed connection 2
[task 2026-09-30T09:57:57.353+00:00] 09:57:57     INFO -  TEST-START | dom/fs/test/marionette/test_OPFS_encryption_PBM.py OPFSEncryptionPBM.test_ensure_encrypted_OPFS_metadata_ondisk_in_PBM
[task 2026-09-30T09:57:57.355+00:00] 09:57:57     INFO -  1790762277355	Marionette	DEBUG	Accepted connection 3 from 127.0.0.1:55083
[task 2026-09-30T09:57:57.357+00:00] 09:57:57     INFO -  1790762277357	Marionette	DEBUG	3 -> [0,1,"WebDriver:NewSession",{"strictFileInteractability":true}]
[task 2026-09-30T09:57:57.358+00:00] 09:57:57     INFO -  1790762277358	Marionette	DEBUG	Waiting for initial application window
[task 2026-09-30T09:57:57.359+00:00] 09:57:57     INFO -  1790762277359	RemoteAgent	TRACE	[10] ProgressListener Start: expectNavigation=false resolveWhenStarted=false unloadTimeout=40000 waitForExplicitStart=false
[task 2026-09-30T09:57:57.359+00:00] 09:57:57     INFO -  1790762277359	RemoteAgent	TRACE	[10] ProgressListener Setting unload timer (40000ms)
[task 2026-09-30T09:57:57.359+00:00] 09:57:57     INFO -  1790762277359	RemoteAgent	TRACE	[10] Wait for initial navigation: isUncommittedInitial=false, isLoadingDocument=false
[task 2026-09-30T09:57:57.359+00:00] 09:57:57     INFO -  1790762277359	RemoteAgent	TRACE	[10] Document already finished loading: about:blank
[task 2026-09-30T09:57:57.359+00:00] 09:57:57     INFO -  1790762277359	RemoteAgent	TRACE	[10] ProgressListener Stop: has error=false url=about:blank
[task 2026-09-30T09:57:57.361+00:00] 09:57:57     INFO -  1790762277361	Marionette	DEBUG	3 <- [1,1,null,{"sessionId":"938141f0-3d9f-4a23-b486-66bfbba26690","capabilities":{"acceptInsecureCerts":false,"browserName":"firefox","browserVersion":"159.0","platformName":"windows","setWindowRect":true,"unhandledPromptBehavior":"dismiss and notify","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:159.0) Gecko/20100101 Firefox/159.0","moz:buildID":"20260930084021","moz:headless":false,"moz:platformVersion":"10.0","moz:processID":2640,"moz:profile":"C:\\Users\\task_179076108767945\\AppData\\Local\\Temp\\tmpzed9d_ma.mozrunner","moz:shutdownTimeout":60000,"pageLoadStrategy":"normal","timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"strictFileInteractability":true,"moz:accessibilityChecks":false,"moz:webdriverClick":true,"moz:windowless":false,"proxy":{}}}]
[task 2026-09-30T09:57:57.364+00:00] 09:57:57     INFO -  1790762277364	Marionette	DEBUG	3 -> [0,2,"WebDriver:SetTimeouts",{"script":30000}]
[task 2026-09-30T09:57:57.364+00:00] 09:57:57     INFO -  1790762277365	Marionette	DEBUG	3 <- [1,2,null,{"value":null}]
[task 2026-09-30T09:57:57.365+00:00] 09:57:57     INFO -  1790762277366	Marionette	DEBUG	3 -> [0,3,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2026-09-30T09:57:57.366+00:00] 09:57:57     INFO -  1790762277366	Marionette	DEBUG	3 <- [1,3,null,{"value":null}]
[task 2026-09-30T09:57:57.367+00:00] 09:57:57     INFO -  1790762277367	Marionette	DEBUG	3 -> [0,4,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2026-09-30T09:57:57.367+00:00] 09:57:57     INFO -  1790762277367	Marionette	DEBUG	3 <- [1,4,null,{"value":null}]
[task 2026-09-30T09:57:57.368+00:00] 09:57:57     INFO -  1790762277368	Marionette	DEBUG	3 -> [0,5,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:57.368+00:00] 09:57:57     INFO -  1790762277368	Marionette	DEBUG	3 <- [1,5,null,{"value":"content"}]
[task 2026-09-30T09:57:57.369+00:00] 09:57:57     INFO -  1790762277369	Marionette	DEBUG	3 -> [0,6,"Marionette:SetContext",{"value":"chrome"}]
[task 2026-09-30T09:57:57.370+00:00] 09:57:57     INFO -  1790762277370	Marionette	DEBUG	3 <- [1,6,null,{"value":null}]
[task 2026-09-30T09:57:57.370+00:00] 09:57:57     INFO -  1790762277372	Marionette	DEBUG	3 -> [0,7,"WebDriver:ExecuteScript",{"script":"const { Preferences } = ChromeUtils.importESModule(\n                  \"resource://gre/modules/Preferences.sys.mjs\"\n           ...  Preferences({defaultBranch: defaultBranch});\n                return prefs.get(pref, null, Components.interfaces[valueType]);","args":["security.storage.encryption.sqlite.enabled",false,"unspecified"],"newSandbox":true,"sandbox":"default","line":909,"filename":"C:\\Users\\task_179076108767945\\build\\venv\\lib\\site-packages\\marionette_driver\\marionette.py"}]
[task 2026-09-30T09:57:57.373+00:00] 09:57:57     INFO -  1790762277373	RemoteAgent	TRACE	WebDriverProcessData actor created for PID 2640
[task 2026-09-30T09:57:57.373+00:00] 09:57:57     INFO -  1790762277373	Marionette	TRACE	[1] MarionetteCommands actor created for window id 2
[task 2026-09-30T09:57:57.374+00:00] 09:57:57     INFO -  1790762277376	Marionette	DEBUG	3 <- [1,7,null,{"value":false}]
[task 2026-09-30T09:57:57.377+00:00] 09:57:57     INFO -  1790762277377	Marionette	DEBUG	3 -> [0,8,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:57.377+00:00] 09:57:57     INFO -  1790762277377	Marionette	DEBUG	3 <- [1,8,null,{"value":null}]
[task 2026-09-30T09:57:57.387+00:00] 09:57:57     INFO -  1790762277379	Marionette	DEBUG	3 -> [0,9,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:57.387+00:00] 09:57:57     INFO -  1790762277379	Marionette	DEBUG	3 <- [1,9,null,{"value":"content"}]
[task 2026-09-30T09:57:57.387+00:00] 09:57:57     INFO -  1790762277379	Marionette	DEBUG	3 -> [0,10,"Marionette:SetContext",{"value":"chrome"}]
[task 2026-09-30T09:57:57.387+00:00] 09:57:57     INFO -  1790762277380	Marionette	DEBUG	3 <- [1,10,null,{"value":null}]
[task 2026-09-30T09:57:57.395+00:00] 09:57:57     INFO -  1790762277383	Marionette	DEBUG	3 -> [0,11,"WebDriver:ExecuteScript",{"script":"const { Preferences } = ChromeUtils.importESModule(\n                  \"resource://gre/modules/Preferences.sys.mjs\"\n           ...  Preferences({defaultBranch: defaultBranch});\n                return prefs.get(pref, null, Components.interfaces[valueType]);","args":["dom.fs.privateBrowsing.enabled",false,"unspecified"],"newSandbox":true,"sandbox":"default","line":909,"filename":"C:\\Users\\task_179076108767945\\build\\venv\\lib\\site-packages\\marionette_driver\\marionette.py"}]
[task 2026-09-30T09:57:57.395+00:00] 09:57:57     INFO -  1790762277386	Marionette	DEBUG	3 <- [1,11,null,{"value":false}]
[task 2026-09-30T09:57:57.395+00:00] 09:57:57     INFO -  1790762277387	Marionette	DEBUG	3 -> [0,12,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:57.395+00:00] 09:57:57     INFO -  1790762277387	Marionette	DEBUG	3 <- [1,12,null,{"value":null}]
[task 2026-09-30T09:57:57.395+00:00] 09:57:57     INFO -  1790762277388	Marionette	DEBUG	3 -> [0,13,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:57.395+00:00] 09:57:57     INFO -  1790762277388	Marionette	DEBUG	3 <- [1,13,null,{"value":"content"}]
[task 2026-09-30T09:57:57.395+00:00] 09:57:57     INFO -  1790762277388	Marionette	DEBUG	3 -> [0,14,"Marionette:SetContext",{"value":"chrome"}]
[task 2026-09-30T09:57:57.396+00:00] 09:57:57     INFO -  1790762277389	Marionette	DEBUG	3 <- [1,14,null,{"value":null}]
[task 2026-09-30T09:57:57.396+00:00] 09:57:57     INFO -  1790762277389	Marionette	DEBUG	3 -> [0,15,"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":["dom.fs.privateBrowsing.enabled",true,false],"newSandbox":true,"sandbox":"default","line":948,"filename":"C:\\Users\\task_179076108767945\\build\\venv\\lib\\site-packages\\marionette_driver\\marionette.py"}]
[task 2026-09-30T09:57:57.396+00:00] 09:57:57     INFO -  1790762277394	Marionette	DEBUG	3 <- [1,15,null,{"value":null}]
[task 2026-09-30T09:57:57.396+00:00] 09:57:57     INFO -  1790762277395	Marionette	DEBUG	3 -> [0,16,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:57.396+00:00] 09:57:57     INFO -  1790762277395	Marionette	DEBUG	3 <- [1,16,null,{"value":null}]
[task 2026-09-30T09:57:57.396+00:00] 09:57:57     INFO -  1790762277395	Marionette	DEBUG	3 -> [0,17,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:57.396+00:00] 09:57:57     INFO -  1790762277395	Marionette	DEBUG	3 <- [1,17,null,{"value":"content"}]
[task 2026-09-30T09:57:57.396+00:00] 09:57:57     INFO -  1790762277396	Marionette	DEBUG	3 -> [0,18,"Marionette:SetContext",{"value":"chrome"}]
[task 2026-09-30T09:57:57.396+00:00] 09:57:57     INFO -  1790762277396	Marionette	DEBUG	3 <- [1,18,null,{"value":null}]
[task 2026-09-30T09:57:57.396+00:00] 09:57:57     INFO -  1790762277397	Marionette	DEBUG	3 -> [0,19,"WebDriver:ExecuteScript",{"script":"const { Preferences } = ChromeUtils.importESModule(\n                  \"resource://gre/modules/Preferences.sys.mjs\"\n           ...  Preferences({defaultBranch: defaultBranch});\n                return prefs.get(pref, null, Components.interfaces[valueType]);","args":["dom.quotaManager.testing",false,"unspecified"],"newSandbox":true,"sandbox":"default","line":909,"filename":"C:\\Users\\task_179076108767945\\build\\venv\\lib\\site-packages\\marionette_driver\\marionette.py"}]
[task 2026-09-30T09:57:57.399+00:00] 09:57:57     INFO -  1790762277399	Marionette	DEBUG	3 <- [1,19,null,{"value":false}]
[task 2026-09-30T09:57:57.400+00:00] 09:57:57     INFO -  1790762277400	Marionette	DEBUG	3 -> [0,20,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:57.400+00:00] 09:57:57     INFO -  1790762277400	Marionette	DEBUG	3 <- [1,20,null,{"value":null}]
[task 2026-09-30T09:57:57.400+00:00] 09:57:57     INFO -  1790762277401	Marionette	DEBUG	3 -> [0,21,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:57.400+00:00] 09:57:57     INFO -  1790762277401	Marionette	DEBUG	3 <- [1,21,null,{"value":"content"}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277401	Marionette	DEBUG	3 -> [0,22,"Marionette:SetContext",{"value":"chrome"}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277401	Marionette	DEBUG	3 <- [1,22,null,{"value":null}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277402	Marionette	DEBUG	3 -> [0,23,"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":["dom.quotaManager.testing",true,false],"newSandbox":true,"sandbox":"default","line":948,"filename":"C:\\Users\\task_179076108767945\\build\\venv\\lib\\site-packages\\marionette_driver\\marionette.py"}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277405	Marionette	DEBUG	3 <- [1,23,null,{"value":null}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277406	Marionette	DEBUG	3 -> [0,24,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277406	Marionette	DEBUG	3 <- [1,24,null,{"value":null}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277406	Marionette	DEBUG	3 -> [0,25,"Marionette:GetContext",{}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277407	Marionette	DEBUG	3 <- [1,25,null,{"value":"content"}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277407	Marionette	DEBUG	3 -> [0,26,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277408	Marionette	DEBUG	3 <- [1,26,null,{"value":null}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277408	Marionette	DEBUG	3 -> [0,27,"WebDriver:GetWindowHandle",{}]
[task 2026-09-30T09:57:57.406+00:00] 09:57:57     INFO -  1790762277408	Marionette	DEBUG	3 <- [1,27,null,{"value":"9dcc29b7-a68a-4a3a-bff5-e08ed921f64b"}]
[task 2026-09-30T09:57:57.409+00:00] 09:57:57     INFO -  1790762277409	Marionette	DEBUG	3 -> [0,28,"Marionette:SetContext",{"value":"content"}]
[task 2026-09-30T09:57:57.409+00:00] 09:57:57     INFO -  1790762277409	Marionette	DEBUG	3 <- [1,28,null,{"value":null}]
[task 2026-09-30T09:57:57.409+00:00] 09:57:57     INFO -  1790762277409	Marionette	DEBUG	3 -> [0,29,"WebDriver:NewWindow",{"type":"window","focus":false,"private":true}]
[task 2026-09-30T09:57:57.420+00:00] 09:57:57     INFO -  [Parent 2640, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file \builds\worker\checkouts\gecko\caps\BasePrincipal.cpp:1535
[task 2026-09-30T09:57:57.677+00:00] 09:57:57     INFO -  [Parent 2640, Main Thread] WARNING: '!anonymousDivElement', file checkouts\gecko\dom\html\TextControlState.cpp:1626
Flags: needinfo?(hsingh)
Flags: needinfo?(hsingh) → needinfo?(jjalkanen)
Summary: Perma dom/cache/test/marionette/test_caches_delete_cleanup_after_shutdown.py CachesDeleteCleanupAtShutdownTestCase.test_ensure_cache_cleanup_after_unclean_restart | marionette_driver.errors.TimeoutException when Gecko 159 merges to beta on 2026-10-08 → Perma for some test platforms dom/cache/test/marionette/test_caches_delete_cleanup_after_shutdown.py CachesDeleteCleanupAtShutdownTestCase.test_ensure_cache_cleanup_after_unclean_restart when Gecko 159 merges to beta on 2026-10-08

Hackbot: couldn't reproduce this automatically (Marionette-only test, needs a beta-config build). It needs manual attention.

Context: this is the same failure as bug 2007259, with the identical Usage = 423048, orphaned bodies = 0. It came back after the test was re-enabled there on 2026-09-28. The prefs.js flush from that bug doesn't seem to be enough.

Unverified theory (from reading code only):

  • After the unclean restart, the orphan cleanup in SetupAction (dom/cache/Manager.cpp) deletes the rows and body files but doesn't vacuum.
  • db::IncrementalVacuum only runs in Connection::Close(), so caches.sqlite (and its WAL) keeps the freed pages and the reported usage stays high until the context closes and the connection is GC'd. That timing varies by platform.
  • If that's right, calling db::IncrementalVacuum after the commit in the unclean-shutdown branch of SetupAction should fix it.
  • To confirm: check whether caches.sqlite plus caches.sqlite-wal add up to about 423 KB on a failing run.

If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.

The failure is not channel-specific, and the prefs fix of https://bugzilla.mozilla.org/show_bug.cgi?id=2007259 addressed a different problem. The beta simulation exposes a race that also exists on Nightly. I reproduced the exact same behavior locally on a Nightly-channel debug build: the test only passed because the stale reading cleared after about 22 seconds of polling, well inside the 60 second timeout. In the 12 failing CI jobs it simply never cleared in time. The identical stale value of 423048 also appears in the original December 2025 log on bug 2007259, so this has been the real failure mode all along.

What the stale number is. In both the clean and unclean variants the 640 body files are cleaned up correctly. Every poll prints zero orphaned bodies, and the 3.4 MB of body data is gone from the usage. What remains is roughly 325 KB of freed SQLite pages in caches.sqlite. The Cache API uses incremental auto-vacuum but only runs the vacuum in Connection::Close. After a clean restart the shutdown closes the connection and vacuums, so usage lands at 98304. After the SIGKILL the bloated file survives, and the orphan cleanup in SetupAction on the next open does not vacuum either.

Why it eventually clears, and why it is racy. The test calls openCache() to trigger origin initialization and then discards the returned Cache object. The chain is:

  1. The content-side Cache object gets cycle-collected at some arbitrary later time.
  2. CacheParent::ActorDestroy releases the cache id, and Manager::MaybeAllowContextToClose lets the Context close.
  3. Connection::Close runs the incremental vacuum and the checkpoint, and the quota VFS truncation drops the tracked usage.

So the usage check is waiting on garbage collection timing in the content process, which is not bounded.

The freed database pages are only vacuumed when the Cache connection closes,
which requires the Cache object returned by openCache to be collected first.

Assignee: nobody → jjalkanen
Status: NEW → ASSIGNED
Pushed by jjalkanen@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6514031a0add https://hg.mozilla.org/integration/autoland/rev/308aaf0963ae Force GC/CC while waiting for cleanup in test_caches_delete_cleanup_after_shutdown.py. r=dom-storage-reviewers,dom-worker-reviewers,edenchuang
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 159 Branch

Verified fixed in today's beta simulation.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: