Closed Bug 1748405 Opened 4 years ago Closed 4 years ago

Intermittent devtools/client/storage/test/browser_storage_cache_overflow.js | Table should initially display 50 items - Got 47, expected 50

Categories

(DevTools :: Storage Inspector, defect, P5)

defect

Tracking

(firefox-esr91 unaffected, firefox95 unaffected, firefox96 unaffected, firefox97 fixed)

RESOLVED FIXED
97 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox95 --- unaffected
firefox96 --- unaffected
firefox97 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: jdescottes)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(2 files)

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


[task 2022-01-04T07:54:27.574Z] 07:54:27     INFO - TEST-START | devtools/client/storage/test/browser_storage_cache_overflow.js
[task 2022-01-04T07:54:29.388Z] 07:54:29     INFO - TEST-INFO | started process screenshot
[task 2022-01-04T07:54:29.444Z] 07:54:29     INFO - TEST-INFO | screenshot: exit 0
[task 2022-01-04T07:54:29.445Z] 07:54:29     INFO - Buffered messages logged at 07:54:27
[task 2022-01-04T07:54:29.445Z] 07:54:29     INFO - Entering test bound 
[task 2022-01-04T07:54:29.446Z] 07:54:29     INFO - Adding a new tab with URL: https://example.com/browser/devtools/client/storage/test/storage-cache-overflow.html
[task 2022-01-04T07:54:29.446Z] 07:54:29     INFO - Tab added and finished loading
[task 2022-01-04T07:54:29.446Z] 07:54:29     INFO - Found a window: complete
[task 2022-01-04T07:54:29.447Z] 07:54:29     INFO - Opening the storage inspector
[task 2022-01-04T07:54:29.447Z] 07:54:29     INFO - Opening the toolbox
[task 2022-01-04T07:54:29.447Z] 07:54:29     INFO - Buffered messages logged at 07:54:28
[task 2022-01-04T07:54:29.448Z] 07:54:29     INFO - Console message: [JavaScript Error: "Content Security Policy: The pages settings blocked the loading of a resource at inline (default-src)." {file: "chrome" line: 511}]
[task 2022-01-04T07:54:29.448Z] 07:54:29     INFO - Console message: [JavaScript Error: "Content Security Policy: The pages settings blocked the loading of a resource at inline (default-src)." {file: "chrome" line: 511}]
[task 2022-01-04T07:54:29.449Z] 07:54:29     INFO - Console message: [JavaScript Error: "Content Security Policy: The pages settings blocked the loading of a resource at inline (default-src)." {file: "chrome" line: 62}]
[task 2022-01-04T07:54:29.449Z] 07:54:29     INFO - Making sure that the toolbox's frame is focused
[task 2022-01-04T07:54:29.449Z] 07:54:29     INFO - Selecting "Cache,https://example.com,lorem".
[task 2022-01-04T07:54:29.450Z] 07:54:29     INFO - Buffered messages finished
[task 2022-01-04T07:54:29.451Z] 07:54:29     INFO - TEST-UNEXPECTED-FAIL | devtools/client/storage/test/browser_storage_cache_overflow.js | Table should initially display 50 items - Got 47, expected 50
[task 2022-01-04T07:54:29.451Z] 07:54:29     INFO - Stack trace:
[task 2022-01-04T07:54:29.451Z] 07:54:29     INFO - chrome://mochikit/content/browser-test.js:test_is:1403
[task 2022-01-04T07:54:29.451Z] 07:54:29     INFO - chrome://mochitests/content/browser/devtools/client/storage/test/head.js:checkCellLength:1071
[task 2022-01-04T07:54:29.451Z] 07:54:29     INFO - chrome://mochitests/content/browser/devtools/client/storage/test/browser_storage_cache_overflow.js:null:19
[task 2022-01-04T07:54:29.451Z] 07:54:29     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1130
[task 2022-01-04T07:54:29.451Z] 07:54:29     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1170
[task 2022-01-04T07:54:29.451Z] 07:54:29     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:978
[task 2022-01-04T07:54:29.451Z] 07:54:29     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1041
[task 2022-01-04T07:54:29.714Z] 07:54:29     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-01-04T07:54:29.715Z] 07:54:29     INFO - TEST-UNEXPECTED-FAIL | devtools/client/storage/test/browser_storage_cache_overflow.js | Table should initially display 100 items - Got 97, expected 100
[task 2022-01-04T07:54:29.715Z] 07:54:29     INFO - Stack trace:
[task 2022-01-04T07:54:29.715Z] 07:54:29     INFO - chrome://mochikit/content/browser-test.js:test_is:1403
[task 2022-01-04T07:54:29.715Z] 07:54:29     INFO - chrome://mochitests/content/browser/devtools/client/storage/test/head.js:checkCellLength:1071
[task 2022-01-04T07:54:29.715Z] 07:54:29     INFO - chrome://mochitests/content/browser/devtools/client/storage/test/browser_storage_cache_overflow.js:null:22
[task 2022-01-04T07:54:29.715Z] 07:54:29     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1130
[task 2022-01-04T07:54:29.715Z] 07:54:29     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1170
[task 2022-01-04T07:54:29.715Z] 07:54:29     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:978
[task 2022-01-04T07:54:29.715Z] 07:54:29     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1041
[task 2022-01-04T07:54:29.716Z] 07:54:29     INFO - Close Toolbox
[task 2022-01-04T07:54:29.832Z] 07:54:29     INFO - Leaving test bound 
[task 2022-01-04T07:54:30.075Z] 07:54:30     INFO - GECKO(836) | JavaScript error: , line 0: NotFoundError: No such JSWindowActor 'DevToolsFrame'
[task 2022-01-04T07:54:30.079Z] 07:54:30     INFO - Console message: [JavaScript Error: "NotFoundError: No such JSWindowActor 'DevToolsFrame'"]
[task 2022-01-04T07:54:30.083Z] 07:54:30     INFO - Removing tab.
[task 2022-01-04T07:54:30.083Z] 07:54:30     INFO - Waiting for event: 'TabClose' on [object XULElement].
[task 2022-01-04T07:54:30.089Z] 07:54:30     INFO - Got event: 'TabClose' on [object XULElement].
[task 2022-01-04T07:54:30.094Z] 07:54:30     INFO - Tab removed and finished closing
[task 2022-01-04T07:54:30.226Z] 07:54:30     INFO - TEST-PASS | devtools/client/storage/test/browser_storage_cache_overflow.js | The main process DevToolsServer has no pending connection when the test ends - 
[task 2022-01-04T07:54:30.239Z] 07:54:30     INFO - GECKO(836) | MEMORY STAT | vsize 2112383MB | vsizeMaxContiguous 64968056MB | residentFast 261MB | heapAllocated 97MB
[task 2022-01-04T07:54:30.239Z] 07:54:30     INFO - TEST-OK | devtools/client/storage/test/browser_storage_cache_overflow.js | took 2664ms
[task 2022-01-04T07:54:30.253Z] 07:54:30     INFO - checking window state
[task 2022-01-04T07:54:30.263Z] 07:54:30     INFO - TEST-START | devtools/client/storage/test/browser_storage_cookies_add.js

Has Regression Range: --- → yes

Nothing obvious comes to mind, I used the exact same approach as for the other storage overflow tests. Maybe cache storage is slightly more async and we check for the number of cells too quickly. Or maybe we start the test too early.

Will wait for some try results.

The screenshot for the log in comment 0 doesn't show any cells yet, fwiw.

(In reply to Sebastian Hengst [:aryx] (needinfo me if it's about an intermittent or backout) from comment #3)

The screenshot for the log in comment 0 doesn't show any cells yet, fwiw.

Thanks! I noticed that, but the test still reports that some cells were found, so I don't know if this is a red herring or not.

Flags: needinfo?(jdescottes)
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Attachment #9257509 - Attachment description: Bug 1748405 - [devtools] Wait for cell count in browser_storage_cache_overflow → Bug 1748405 - [devtools] Wait for caches and cell count in browser_storage_cache_overflow

Hopefully my last set of patches should fix the issue. The setup of the test was not correctly waiting for all caches to be populated. This seems to be an issue in all the cache storage tests, but was probably only problematic for my new test because I am creating a lot of cache entries instead of just one.

Waiting for try results, but windows jobs are taking a long time to be scheduled.

Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c1d0880212c0 [devtools] Wait for caches and cell count in browser_storage_cache_overflow r=Honza https://hg.mozilla.org/integration/autoland/rev/a48d96908035 [devtools] Update all storage cache tests to properly wait for setup and clear steps r=Honza
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: