Intermittent toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py | single tracking bug
Categories
(Toolkit :: Data Sanitization, defect, P5)
Tracking
()
People
(Reporter: intermittent-bug-filer, Assigned: saschanaz)
References
Details
(Keywords: intermittent-failure, Whiteboard: [retriggered][stockwell unknown])
Attachments
(4 files, 2 obsolete files)
Filed by: nfay [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=404122257&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/c-vfiYutREeaF7YHTZ9kFg/runs/0/artifacts/public/logs/live_backing.log
[task 2023-01-31T21:03:05.966Z] 21:03:05 INFO - DEBUG: Adding blocker JSON store: writing data for 'shieldpreferenceexperiments' for phase IOUtils: waiting for profileBeforeChange IO to complete
[task 2023-01-31T21:03:07.930Z] 21:03:07 INFO - 1675198987931 Marionette DEBUG 2 -> [0,3,"Marionette:GetContext",{}]
[task 2023-01-31T21:03:07.930Z] 21:03:07 INFO - 1675198987931 Marionette DEBUG 2 <- [1,3,null,{"value":"content"}]
[task 2023-01-31T21:03:07.932Z] 21:03:07 INFO - 1675198987932 Marionette DEBUG 2 -> [0,4,"Marionette:SetContext",{"value":"chrome"}]
[task 2023-01-31T21:03:07.933Z] 21:03:07 INFO - 1675198987932 Marionette DEBUG 2 <- [1,4,null,{"value":null}]
[task 2023-01-31T21:03:07.933Z] 21:03:07 INFO - 1675198987933 Marionette DEBUG 2 -> [0,5,"WebDriver:TakeScreenshot",{"id":null,"full":true,"hash":false,"scroll":true}]
[task 2023-01-31T21:03:07.936Z] 21:03:07 INFO - 1675198987936 RemoteAgent TRACE WebDriverProcessData actor created for PID 8292
[task 2023-01-31T21:03:07.937Z] 21:03:07 INFO - 1675198987937 Marionette TRACE [1] MarionetteCommands actor created for window id 2
[task 2023-01-31T21:03:07.972Z] 21:03:07 INFO - 1675198987972 Marionette DEBUG 2 <- [1,5,null,{"value":"iVBORw0KGgoAAAANSUhEUgAABQAAAAP/CAYAAACf8GEBAAAgAElEQVR4XuzdC5hlZXkn+q/6fuMOcrFFVBCdQURUwIDG63kYfY7iiRpNSKIYY5TEW4yXeZ4xmMk5i ... YAQIECBAgQIAAAQIECBAgQIAAgYKAA7Cwko4ECBAgQIAAAQIECBAgQIAAAQIETgEH4AknRoAAAQIECBAgQIAAAQIECBAgQKAgMGKaFzw+qPXIAAAAAElFTkSuQmCC"}]
[task 2023-01-31T21:03:07.973Z] 21:03:07 INFO - 1675198987973 Marionette DEBUG 2 -> [0,6,"Marionette:SetContext",{"value":"content"}]
[task 2023-01-31T21:03:07.974Z] 21:03:07 INFO - 1675198987973 Marionette DEBUG 2 <- [1,6,null,{"value":null}]
[task 2023-01-31T21:03:07.974Z] 21:03:07 INFO - 1675198987974 Marionette DEBUG 2 -> [0,7,"Marionette:GetContext",{}]
[task 2023-01-31T21:03:07.974Z] 21:03:07 INFO - 1675198987974 Marionette DEBUG 2 <- [1,7,null,{"value":"content"}]
[task 2023-01-31T21:03:07.975Z] 21:03:07 INFO - 1675198987975 Marionette DEBUG 2 -> [0,8,"Marionette:SetContext",{"value":"content"}]
[task 2023-01-31T21:03:07.975Z] 21:03:07 INFO - 1675198987975 Marionette DEBUG 2 <- [1,8,null,{"value":null}]
[task 2023-01-31T21:03:07.976Z] 21:03:07 INFO - 1675198987976 Marionette DEBUG 2 -> [0,9,"WebDriver:GetPageSource",{}]
[task 2023-01-31T21:03:07.979Z] 21:03:07 INFO - 1675198987979 RemoteAgent TRACE WebDriverProcessData actor created for PID 7408
[task 2023-01-31T21:03:07.980Z] 21:03:07 INFO - 1675198987980 Marionette TRACE [3] MarionetteCommands actor created for window id 2147483649
[task 2023-01-31T21:03:07.982Z] 21:03:07 INFO - 1675198987981 Marionette DEBUG 2 <- [1,9,null,{"value":"<html><head></head><body></body></html>"}]
[task 2023-01-31T21:03:07.982Z] 21:03:07 INFO - 1675198987982 Marionette DEBUG 2 -> [0,10,"Marionette:SetContext",{"value":"content"}]
[task 2023-01-31T21:03:07.982Z] 21:03:07 INFO - 1675198987982 Marionette DEBUG 2 <- [1,10,null,{"value":null}]
[task 2023-01-31T21:03:07.988Z] 21:03:07 ERROR - TEST-UNEXPECTED-ERROR | toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py MovedOriginDirectoryCleanupTestCase.test_ensure_cleanup_at_crashed_restart | marionette_driver.errors.TimeoutException: Timed out after 5.1 seconds with message: to-be-removed subdirectory must disappear
[task 2023-01-31T21:03:07.988Z] 21:03:07 INFO - Traceback (most recent call last):
[task 2023-01-31T21:03:07.988Z] 21:03:07 INFO - File "Z:\task_167519286477438\build\venv\lib\site-packages\marionette_harness\marionette_test\testcases.py", line 198, in run
[task 2023-01-31T21:03:07.988Z] 21:03:07 INFO - testMethod()
[task 2023-01-31T21:03:07.989Z] 21:03:07 INFO - File "Z:\task_167519286477438\build\tests\marionette\tests\toolkit\components\cleardata\tests\marionette\test_moved_origin_directory_cleanup.py", line 57, in test_ensure_cleanup_at_crashed_restart
[task 2023-01-31T21:03:07.989Z] 21:03:07 INFO - Wait(self.marionette).until(
[task 2023-01-31T21:03:07.989Z] 21:03:07 INFO - File "Z:\task_167519286477438\build\venv\lib\site-packages\marionette_driver\wait.py", line 153, in until
[task 2023-01-31T21:03:07.990Z] 21:03:07 INFO - raise errors.TimeoutException(
[task 2023-01-31T21:03:07.990Z] 21:03:07 INFO - TEST-INFO took 25375ms
[task 2023-01-31T21:03:07.990Z] 21:03:07 INFO - 1675198987988 Marionette DEBUG 2 -> [0,11,"WebDriver:DeleteSession",{}]
[task 2023-01-31T21:03:07.990Z] 21:03:07 INFO - 1675198987989 Marionette TRACE [1] MarionetteCommands actor destroyed for window id 2
[task 2023-01-31T21:03:07.990Z] 21:03:07 INFO - 1675198987989 Marionette TRACE [3] MarionetteCommands actor destroyed for window id 2147483649
[task 2023-01-31T21:03:07.991Z] 21:03:07 INFO - 1675198987991 Marionette DEBUG 2 <- [1,11,null,{"value":null}]
[task 2023-01-31T21:03:07.991Z] 21:03:07 INFO - 1675198987991 Marionette DEBUG Closed connection 2
[task 2023-01-31T21:03:08.948Z] 21:03:08 INFO - TEST-START | toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py MovedOriginDirectoryCleanupTestCase.test_ensure_cleanup_by_quit
Comment 1•3 years ago
|
||
First occurrence in this range: range of retriggers and backfills
Any chance this could be caused by Bug 1809526?
Kagami, can you take a look please?
Thank you.
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 3•3 years ago
•
|
||
Not "caused" but is just failing to see the cause. Maybe it just needs more time? (But why?)
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Updated•2 years ago
|
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 35•2 years ago
|
||
Restarting may take longer than the default 5 seconds, so try giving more time for this case.
Comment 36•2 years ago
|
||
Comment 37•2 years ago
|
||
| bugherder | ||
Comment 38•2 years ago
|
||
This is still happening., here is a recent failure log
Could we give a bit more timeout? It's failing with under 1 sec timeout (I can make a patch to adjust the timeout, if you want)
Updated•2 years ago
|
| Assignee | ||
Comment 39•2 years ago
|
||
Is the frequency decreased, though? If not I don't think giving longer timeout would do anything, maybe the cleanup is just not happening at all? 🤔
Comment 40•2 years ago
|
||
| uplift | ||
Comment 41•2 years ago
|
||
| bugherder uplift | ||
| Assignee | ||
Comment 42•2 years ago
|
||
The graph doesn't seem like it did the work, hmm.
Updated•2 years ago
|
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Updated•2 years ago
|
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 68•2 years ago
|
||
Update
There have been 31 total failures within the last 7 days:
- 1 failure on Linux 18.04 x64 WebRender opt
- 8 failures on Windows 11 x86 22H2 WebRender opt/ debug
- 3 failures on Windows 11 x86 22H2 WebRender Shippable opt
- 3 failures on Windows 11 x64 22H2 CCov WebRender opt
- 14 failures on Windows 11 x64 22H2 WebRender opt/ debug
- 2 failures on Windows 11 x64 22H2 WebRender Shippable opt
Recent log: https://treeherder.mozilla.org/logviewer?job_id=450643396&repo=autoland&lineNumber=87117
Kagami, can you take a look at this please?
Thank you.
| Assignee | ||
Comment 69•2 years ago
|
||
| Assignee | ||
Comment 70•2 years ago
|
||
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
Comment 71•2 years ago
|
||
Comment 72•2 years ago
|
||
| bugherder | ||
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 75•2 years ago
•
|
||
Now I think this is not just a failure to actually trigger startup cleanup but the startup cleanup is failing to remove the directory or somehow skipping storage cleanup. 🤔
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 77•2 years ago
|
||
| Assignee | ||
Updated•2 years ago
|
| Comment hidden (Intermittent Failures Robot) |
Comment 79•2 years ago
|
||
Comment 80•2 years ago
|
||
| bugherder | ||
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 82•1 year ago
|
||
[task 2024-04-12T21:30:32.092Z] 21:30:32 INFO - console.log: Sanitizer: "Running sanitization for:" ["cache", "cookies", "offlineApps", "history", "formdata", "downloads", "sessions"]
[task 2024-04-12T21:30:32.161Z] 21:30:32 INFO - console.log: Sanitizer: "Sanitizing 0 principals"
[task 2024-04-12T21:30:32.173Z] 21:30:32 INFO - console.log: Sanitizer: "Sanitizing 0 principals"
[task 2024-04-12T21:30:32.288Z] 21:30:32 INFO - console.error: "C:\\Users\\task_171295605263694\\AppData\\Local\\Temp\\tmpetfmj1io.mozrunner" "" 0 ".purge.bg_rm" ""
[task 2024-04-12T21:30:32.293Z] 21:30:32 INFO - console.warn: "Skipping Glean as no metrics id is passed"
[task 2024-04-12T21:30:32.617Z] 21:30:32 INFO - console.log: Sanitizer: "All sanitizations are complete"
Sanitizing zero principals???? 🤔
| Assignee | ||
Comment 83•1 year ago
|
||
In success case:
0:11.12 TEST_START: toolkit/components/cleardata/tests/marionette/test_moved_origin_directory_cleanup.py MovedOriginDirectoryCleanupTestCase.test_ensure_cleanup_at_crashed_restart
0:11.31 INFO Application command: D:/gecko/obj-x86_64-pc-windows-msvc\dist\bin\firefox.exe -no-remote -marionette --wait-for-browser -profile C:\Users\sasch\AppData\Local\Temp\tmpmb4bhqzd.mozrunner
*** You are running in headless mode.
1713177594819 Marionette INFO Marionette enabled
1713177595384 Marionette INFO Listening on port 2828
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
*** You are running in background task mode. ***
*** You are running in headless mode.
console.log: Sanitizer: "Pending sanitizations:" []
console.error: "C:\\Users\\sasch\\AppData\\Local\\Temp\\tmpmb4bhqzd.mozrunner" "" 0 ".purge.bg_rm" ""
console.warn: "Skipping Glean as no metrics id is passed"
console.error: ({})
0:21.71 INFO Application command: D:/gecko/obj-x86_64-pc-windows-msvc\dist\bin\firefox.exe -no-remote -marionette --wait-for-browser -profile C:\Users\sasch\AppData\Local\Temp\tmpmb4bhqzd.mozrunner
*** You are running in headless mode.
1713177604607 Marionette INFO Marionette enabled
1713177605154 Marionette INFO Listening on port 2828
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
*** You are running in background task mode. ***
*** You are running in headless mode.
console.log: Sanitizer: "Pending sanitizations:" [{id:"shutdown", itemsToClear:["cache", "cookies", "offlineApps", "history", "formdata", "downloads", "sessions"], options:{}}, {id:"newtab-container", itemsToClear:[], options:{}}]
console.log: Sanitizer: "Running sanitization for:" ["cache", "cookies", "offlineApps", "history", "formdata", "downloads", "sessions"]
console.error: "C:\\Users\\sasch\\AppData\\Local\\Temp\\tmpmb4bhqzd.mozrunner" "" 0 ".purge.bg_rm" ""
console.warn: "Skipping Glean as no metrics id is passed"
console.log: Sanitizer: "Sanitizing 1 principals"
console.log: Sanitizer: "Checking principal: https://example.local/"
console.log: Sanitizer: "Cookie not allowed."
console.log: Sanitizer: "Sanitizing principal: https://example.local/"
console.log: Sanitizer: "Sanitizing 1 principals"
console.log: Sanitizer: "Checking principal: https://example.local/"
console.log: Sanitizer: "Cookie not allowed."
console.log: Sanitizer: "Sanitizing principal: https://example.local/"
console.log: Sanitizer: "All sanitizations are complete"
console.error: ({})
0:31.62 TEST_END: PASS
| Assignee | ||
Comment 84•1 year ago
|
||
Probably the work item is to check where the principal is created and make sure it's stored before triggering crash.
| Assignee | ||
Comment 85•1 year ago
|
||
Hi Valentin, do you know well about Services.cookies?
My test uses it to store a principal but sometimes it seems it doesn't end up being in the storage quick enough; any idea how to make sure it goes to the storage? 👀
Perhaps I should use Services.qms.initializePersistentOrigin instead, though.
You can use an observer notification to await for the cookie to be persisted to disk. We do that here
Hope this helps.
| Assignee | ||
Comment 87•1 year ago
|
||
Comment 88•1 year ago
|
||
Updated•1 year ago
|
Comment 89•1 year ago
|
||
| bugherder | ||
| Assignee | ||
Updated•1 year ago
|
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 91•1 year ago
|
||
autoland failure is reduced from ~20 to 3 where only one is after landing the fix; it had weird file permission failure that looks random. Looks quite good that maybe worth uplifting to reduce beta failures?
| Assignee | ||
Comment 92•1 year ago
|
||
Comment on attachment 9396657 [details]
Bug 1814281 - Wait until cookie-saved-on-disk r=valentin
Beta/Release Uplift Approval Request
- User impact if declined: No impact, only the intermittent failure robot (and who watches it) will be angry with the test failures.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Test only change.
- String changes made/needed:
- Is Android affected?: No
Updated•1 year ago
|
Comment 93•1 year ago
|
||
Comment on attachment 9396657 [details]
Bug 1814281 - Wait until cookie-saved-on-disk r=valentin
Approved for 126.0b5
Comment 94•1 year ago
|
||
| uplift | ||
Updated•1 year ago
|
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Description
•