RESOLVED FIXED192796
Clean up IndexedDB files between tests
https://bugs.webkit.org/show_bug.cgi?id=192796
Summary Clean up IndexedDB files between tests
Sihui Liu
Reported 2018-12-17 20:31:25 PST
We should clear IDB files between tests to give each test a clean state.
Attachments
Patch (11.15 KB, patch)
2018-12-17 20:37 PST, Sihui Liu
no flags
Patch (13.73 KB, patch)
2018-12-18 11:17 PST, Sihui Liu
no flags
Patch for landing (13.69 KB, patch)
2018-12-18 15:19 PST, Sihui Liu
no flags
Patch (10.11 KB, patch)
2019-01-22 15:12 PST, Sihui Liu
no flags
Archive of layout-test-results from ews114 for mac-highsierra (2.21 MB, application/zip)
2019-01-22 17:30 PST, EWS Watchlist
no flags
Patch (10.30 KB, patch)
2019-01-22 17:32 PST, Sihui Liu
no flags
Sihui Liu
Comment 1 2018-12-17 20:37:53 PST
Alex Christensen
Comment 2 2018-12-18 09:21:41 PST
Comment on attachment 357526 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=357526&action=review > Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.cpp:520 > +void WKWebsiteDataStoreRemoveAllIndexedDatabasesSync(WKWebsiteDataStoreRef dataStoreRef, void* context, WKWebsiteDataStoreRemoveAllIndexedDatabasesCallback callback) Why does this have "Sync" in its name?
Geoffrey Garen
Comment 3 2018-12-18 09:54:50 PST
Comment on attachment 357526 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=357526&action=review >> Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.cpp:520 >> +void WKWebsiteDataStoreRemoveAllIndexedDatabasesSync(WKWebsiteDataStoreRef dataStoreRef, void* context, WKWebsiteDataStoreRemoveAllIndexedDatabasesCallback callback) > > Why does this have "Sync" in its name? Since this function uses a callback, it is not synchronous. So, let's call this "WKWebsiteDataStoreRemoveAllIndexedDatabases".
Sihui Liu
Comment 4 2018-12-18 09:57:16 PST
(In reply to Geoffrey Garen from comment #3) > Comment on attachment 357526 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=357526&action=review > > >> Source/WebKit/UIProcess/API/C/WKWebsiteDataStoreRef.cpp:520 > >> +void WKWebsiteDataStoreRemoveAllIndexedDatabasesSync(WKWebsiteDataStoreRef dataStoreRef, void* context, WKWebsiteDataStoreRemoveAllIndexedDatabasesCallback callback) > > > > Why does this have "Sync" in its name? > > Since this function uses a callback, it is not synchronous. So, let's call > this "WKWebsiteDataStoreRemoveAllIndexedDatabases". Yes, I guess because it's used with runUntil so I used sync.. Will change to WKWebsiteDataStoreRemoveAllIndexedDatabases
Sihui Liu
Comment 5 2018-12-18 11:17:44 PST
Geoffrey Garen
Comment 6 2018-12-18 12:54:10 PST
Comment on attachment 357586 [details] Patch r=me
Sihui Liu
Comment 7 2018-12-18 15:19:08 PST
Created attachment 357620 [details] Patch for landing
WebKit Commit Bot
Comment 8 2018-12-18 15:56:32 PST
Comment on attachment 357620 [details] Patch for landing Clearing flags on attachment: 357620 Committed r239358: <https://trac.webkit.org/changeset/239358>
WebKit Commit Bot
Comment 9 2018-12-18 15:56:34 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 10 2018-12-18 15:57:24 PST
Truitt Savell
Comment 11 2018-12-19 09:21:46 PST
Truitt Savell
Comment 12 2018-12-19 10:43:52 PST
Truitt Savell
Comment 13 2018-12-19 10:57:14 PST
Reverted r239358 for reason: Revision caused imported/w3c/web-platform-tests/IndexedDB/ to crash on Debug bots Committed r239380: <https://trac.webkit.org/changeset/239380>
Truitt Savell
Comment 14 2018-12-19 11:02:24 PST
Sihui Liu
Comment 15 2019-01-22 15:12:49 PST
Geoffrey Garen
Comment 16 2019-01-22 15:32:01 PST
Comment on attachment 359785 [details] Patch r=me
EWS Watchlist
Comment 17 2019-01-22 17:30:02 PST
Comment on attachment 359785 [details] Patch Attachment 359785 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/10847394 New failing tests: imported/w3c/web-platform-tests/IndexedDB/idbfactory-open-request-error.html
EWS Watchlist
Comment 18 2019-01-22 17:30:04 PST
Created attachment 359820 [details] Archive of layout-test-results from ews114 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-highsierra Platform: Mac OS X 10.13.6
Sihui Liu
Comment 19 2019-01-22 17:32:41 PST
Geoffrey Garen
Comment 20 2019-01-22 21:03:34 PST
Comment on attachment 359821 [details] Patch r=me
WebKit Commit Bot
Comment 21 2019-01-23 13:39:24 PST
Comment on attachment 359821 [details] Patch Clearing flags on attachment: 359821 Committed r240358: <https://trac.webkit.org/changeset/240358>
WebKit Commit Bot
Comment 22 2019-01-23 13:39:26 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.