Bug 156070

Summary: storage/indexeddb/modern/abort-requests-cancelled.html is a flaky timeout on Mac
Product: WebKit Reporter: Ryan Haddad <ryanhaddad>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, beidson
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Mac   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 154968    

Description Ryan Haddad 2016-03-31 10:32:18 PDT
storage/indexeddb/modern/abort-requests-cancelled.html is a flaky timeout on Mac

<https://build.webkit.org/builders/Apple%20Yosemite%20Release%20WK2%20(Tests)/builds/13325>
<https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=storage%2Findexeddb%2Fmodern%2Fabort-requests-cancelled.html>

--- /Volumes/Data/slave/yosemite-release-tests-wk2/build/layout-test-results/storage/indexeddb/modern/abort-requests-cancelled-expected.txt
+++ /Volumes/Data/slave/yosemite-release-tests-wk2/build/layout-test-results/storage/indexeddb/modern/abort-requests-cancelled-actual.txt
@@ -1,34 +1,2 @@
-This test makes sure that un-handled requests in a transaction receive onerror callbacks when the transaction is aborted.
+FAIL: Timed out waiting for notifyDone to be called
 
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
-
-indexedDB.deleteDatabase(dbname)
-indexedDB.open(dbname)
-Initial upgrade needed: Old version - 0 New version - 1
-Error handling: "objectStore.put({ bar: 'A' }, 1);" (error)
-Error handling: "objectStore.put({ bar: 'B' }, 2);" (error)
-Error handling: "objectStore.put({ bar: 'C' }, 3);" (error)
-Initial upgrade versionchange transaction aborted
-Second upgrade needed: Old version - 0 New version - 1
-Success handling: "objectStore.put({ bar: 'A' }, 1);"
-Success handling: "objectStore.put({ bar: 'B' }, 2);"
-Success handling: "objectStore.put({ bar: 'C' }, 3);"
-Second upgrade versionchange transaction completed
-Error handling: "objectStore.get(1);" (error)
-Error handling: "objectStore.get(2);" (error)
-Error handling: "objectStore.get(3);" (error)
-Error handling: "objectStore.put({ bar: 'D' }, 4);" (error)
-Error handling: "objectStore.put({ bar: 'E' }, 5);" (error)
-Error handling: "objectStore.put({ bar: 'F' }, 6);" (error)
-readwrite transaction aborted
-Error handling: "objectStore.get(1);" (error)
-Error handling: "objectStore.get(2);" (error)
-Error handling: "objectStore.get(3);" (error)
-readonly transaction aborted
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
Comment 1 Ryan Haddad 2016-03-31 10:33:45 PDT
Times out more frequently on WK1, but it seems to have timed out on WK1 and WK2, release and debug.
Comment 2 Alexey Proskuryakov 2016-04-05 09:46:47 PDT
A different failure on this test:

@@ -1,3 +1,4 @@
+FAIL: Timed out waiting for notifyDone to be called
 This test makes sure that un-handled requests in a transaction receive onerror callbacks when the transaction is aborted.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -27,8 +28,4 @@
 Error handling: "objectStore.get(1);" (error)
 Error handling: "objectStore.get(2);" (error)
 Error handling: "objectStore.get(3);" (error)
-readonly transaction aborted
-PASS successfullyParsed is true
 
-TEST COMPLETE
-
Comment 3 Brady Eidson 2016-06-03 11:06:43 PDT
This one has been in much, much better shape since originally reported.

Still sporadic occurrences.
Comment 4 Brady Eidson 2016-06-23 13:54:53 PDT
*** Bug 159060 has been marked as a duplicate of this bug. ***
Comment 5 Brady Eidson 2016-07-12 10:12:28 PDT
(In reply to comment #3)
> This one has been in much, much better shape since originally reported.
> 
> Still sporadic occurrences.

Ditto today.
Comment 6 Ryan Haddad 2016-07-18 13:18:37 PDT
Marked as flaky in <http://trac.webkit.org/projects/webkit/changeset/203369> to keep the bots green.
Comment 7 Ryan Haddad 2016-10-10 10:45:58 PDT
Still seeing these flaky timeouts with storage/indexeddb/modern/abort-requests-cancelled.html and storage/indexeddb/modern/abort-requests-cancelled-private.html

Marked as flaky on mac with http://trac.webkit.org/projects/webkit/changeset/207008