WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
192796
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
Details
Formatted Diff
Diff
Patch
(13.73 KB, patch)
2018-12-18 11:17 PST
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch for landing
(13.69 KB, patch)
2018-12-18 15:19 PST
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Patch
(10.11 KB, patch)
2019-01-22 15:12 PST
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
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
Details
Patch
(10.30 KB, patch)
2019-01-22 17:32 PST
,
Sihui Liu
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Sihui Liu
Comment 1
2018-12-17 20:37:53 PST
Created
attachment 357526
[details]
Patch
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
Created
attachment 357586
[details]
Patch
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
<
rdar://problem/46824999
>
Truitt Savell
Comment 11
2018-12-19 09:21:46 PST
It appears that after
https://trac.webkit.org/changeset/239358/webkit
we are seeing a large number of imported/w3c/web-platform-tests/IndexedDB/ tests crashing on debug wk2 bots with asserts. Sample log:
https://build.webkit.org/results/Apple%20Mojave%20Debug%20WK2%20(Tests)/r239376%20(954)/imported/w3c/web-platform-tests/IndexedDB/close-in-upgradeneeded-crash-log.txt
results from Mojave Debug Wk2:
https://build.webkit.org/results/Apple%20Mojave%20Debug%20WK2%20(Tests)/r239376%20(954)/results.html
Truitt Savell
Comment 12
2018-12-19 10:43:52 PST
also looks like this caused two perf test failures:
https://build.webkit.org/builders/Apple%20Sierra%20Release%20WK2%20%28Perf%29/builds/2381
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
rolled out in
https://trac.webkit.org/changeset/239380/webkit
Sihui Liu
Comment 15
2019-01-22 15:12:49 PST
Created
attachment 359785
[details]
Patch
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
Created
attachment 359821
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug