WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 157141
inspector/indexeddb/requestDatabaseNames.html is flaky on Mac
https://bugs.webkit.org/show_bug.cgi?id=157141
Summary
inspector/indexeddb/requestDatabaseNames.html is flaky on Mac
Ryan Haddad
Reported
2016-04-28 10:20:15 PDT
Flakiness dashboard: <
https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=inspector%2Findexeddb%2FrequestDatabaseNames.html
> Most recent failure: <
https://build.webkit.org/builders/Apple%20Yosemite%20Debug%20WK2%20(Tests)/builds/11744
> --- /Volumes/Data/slave/yosemite-debug-tests-wk2/build/layout-test-results/inspector/indexeddb/requestDatabaseNames-expected.txt +++ /Volumes/Data/slave/yosemite-debug-tests-wk2/build/layout-test-results/inspector/indexeddb/requestDatabaseNames-actual.txt @@ -3,17 +3,17 @@ CONSOLE MESSAGE: line 10: Created Database 'ቍ' CONSOLE MESSAGE: line 10: Created Database '𐍆' -PASS: No IndexedDB databases should exist initially +FAIL: No IndexedDB databases should exist initially Created Database 'Database1' -PASS: A single IndexedDB database should exist -["Database1"] +FAIL: A single IndexedDB database should exist +["Database1","Page 20Cache 20Test"] Created Database 'Database2' -PASS: Two IndexedDB databases should exist -["Database1","Database2"] +FAIL: Two IndexedDB databases should exist +["Database1","Database2","Page 20Cache 20Test"] Created Database 'ቍ' -PASS: Two IndexedDB databases should exist -["Database1","Database2","ቍ"] +FAIL: Two IndexedDB databases should exist +["Database1","Database2","Page 20Cache 20Test","ቍ"] Created Database '𐍆' -PASS: Four IndexedDB databases should exist -["Database1","Database2","ቍ","𐍆"] +FAIL: Four IndexedDB databases should exist +["Database1","Database2","Page 20Cache 20Test","ቍ","𐍆"]
Attachments
Patch
(6.55 KB, patch)
2016-04-28 15:03 PDT
,
Brady Eidson
achristensen
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brady Eidson
Comment 1
2016-04-28 11:20:52 PDT
INTERESTING. Test test appears to be conflicting with other tests running at the same time using either the same DatabaseProcess or same database directory. If multiple WKTR are using the same DatabaseProcess, they shouldn't - That's bad. If multiple WKTRs are pointing their DatabaseProcesses at the same database directory, they shouldn't - That's bad. I wonder if this is the source of many of the other WK2 flakes?
Brady Eidson
Comment 2
2016-04-28 11:22:52 PDT
I'm going to make a change to this test to try to prove or disprove this.
Brady Eidson
Comment 3
2016-04-28 11:25:08 PDT
Also, just to clarify, DRTs should *also* not share the same databases directory. I don't know if they are, but they shouldn't.
Brady Eidson
Comment 4
2016-04-28 12:22:57 PDT
Added one tiny additional bit of logging to help support this theory in
http://trac.webkit.org/changeset/200202
In a little bit I'm going to turn on debug build logging to see if this is really happening.
Brady Eidson
Comment 5
2016-04-28 13:00:46 PDT
I did a "run-webkit-tests storage/indexeddb" which runs 3 WKTRs I also did a "run-webkit-tests -1 storage/indexeddb" which runs 3 DRTs I then monitored the filesystem using fs_usage. In either the WK1 or WK2 case, each unique DRT or WKTR did, in fact, have an independent directory for its databases. So that theory seems scratched... But the results here clearly show tests stomping on each other in some way.
Brady Eidson
Comment 6
2016-04-28 14:05:31 PDT
Aha. It's a page cache test (of course), and causes problems in the same process down the line. I can reliably reproduce like so: run-webkit-tests -1 fast/history/page-cache-indexed-opened-db.html inspector/indexeddb --child-processes=1
Brady Eidson
Comment 7
2016-04-28 14:41:22 PDT
This is actually a simple bug in the "get all database names" code that chokes on database names with spaces in them.
Brady Eidson
Comment 8
2016-04-28 15:03:56 PDT
Created
attachment 277652
[details]
Patch
Brady Eidson
Comment 9
2016-04-28 15:10:44 PDT
http://trac.webkit.org/changeset/200212
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