WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
172030
REGRESSION (
r216711
): API test WKWebView.ClearAppCache is failing
https://bugs.webkit.org/show_bug.cgi?id=172030
Summary
REGRESSION (r216711): API test WKWebView.ClearAppCache is failing
Ryan Haddad
Reported
2017-05-12 09:25:51 PDT
API test WKWebView.ClearAppCache is failing FAIL WKWebView.ClearAppCache /Volumes/Data/slave/sierra-release/build/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:175 Value of: originalWebsiteDataRecordCount - 1 Actual: 1 Expected: websiteDataRecords.count Which is: 0
https://build.webkit.org/builders/Apple%20El%20Capitan%20Release%20WK2%20%28Tests%29/builds/1452
Attachments
Patch for suppression/exploration
(4.75 KB, patch)
2017-05-12 12:19 PDT
,
Brady Eidson
commit-queue
: commit-queue-
Details
Formatted Diff
Diff
Patch for suppression/exploration
(4.75 KB, patch)
2017-05-12 12:41 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Get more info from the bots
(1.80 KB, patch)
2017-05-12 14:20 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Patch to fix
(3.85 KB, patch)
2017-05-12 16:51 PDT
,
Brady Eidson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Ryan Haddad
Comment 1
2017-05-12 09:27:17 PDT
It looks like this may have started with
https://trac.webkit.org/changeset/216711/webkit
Brady Eidson
Comment 2
2017-05-12 10:56:03 PDT
(In reply to Ryan Haddad from
comment #1
)
> It looks like this may have started with >
https://trac.webkit.org/changeset/216711/webkit
If 216711 caused this, then I think this test was utterly broken in the first place.
Brady Eidson
Comment 3
2017-05-12 10:56:24 PDT
(In reply to Ryan Haddad from
comment #1
)
> It looks like this may have started with >
https://trac.webkit.org/changeset/216711/webkit
You say *MAY* have started with this... how sure are you?
Ryan Haddad
Comment 4
2017-05-12 10:58:59 PDT
(In reply to Brady Eidson from
comment #3
)
> (In reply to Ryan Haddad from
comment #1
) > > It looks like this may have started with > >
https://trac.webkit.org/changeset/216711/webkit
> > You say *MAY* have started with this... how sure are you?
I said may because I did not reproduce it locally, but regression range is between
https://trac.webkit.org/changeset/216709
and
https://trac.webkit.org/changeset/216712
. None of the other commits look related.
Brady Eidson
Comment 5
2017-05-12 11:43:26 PDT
Cannot reproduce this locally no matter what I try. Looking at changes to the test to make it more resilient.
Brady Eidson
Comment 6
2017-05-12 12:19:30 PDT
Created
attachment 309927
[details]
Patch for suppression/exploration
WebKit Commit Bot
Comment 7
2017-05-12 12:20:30 PDT
Comment on
attachment 309927
[details]
Patch for suppression/exploration Rejecting
attachment 309927
[details]
from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 309927, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Nobody - Test gardening, in effect found in /Volumes/Data/EWS/WebKit/Tools/ChangeLog does not appear to be a valid reviewer according to contributors.json. /Volumes/Data/EWS/WebKit/Tools/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive). Full output:
http://webkit-queues.webkit.org/results/3727676
Brady Eidson
Comment 8
2017-05-12 12:41:05 PDT
Created
attachment 309928
[details]
Patch for suppression/exploration
WebKit Commit Bot
Comment 9
2017-05-12 13:09:28 PDT
Comment on
attachment 309928
[details]
Patch for suppression/exploration Clearing flags on attachment: 309928 Committed
r216777
: <
http://trac.webkit.org/changeset/216777
>
WebKit Commit Bot
Comment 10
2017-05-12 13:09:30 PDT
All reviewed patches have been landed. Closing bug.
Brady Eidson
Comment 11
2017-05-12 14:10:04 PDT
New failure on bots: /Volumes/Data/slave/elcapitan-release/build/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:170 Value of: 1ul Actual: 1 Expected: websiteDataRecords.count Which is: 2 /Volumes/Data/slave/elcapitan-release/build/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:186 Value of: originalWebsiteDataRecordCount - 1 Actual: 1 Expected: websiteDataRecords.count Which is: 0
Brady Eidson
Comment 12
2017-05-12 14:17:55 PDT
(In reply to Brady Eidson from
comment #11
)
> New failure on bots: > > /Volumes/Data/slave/elcapitan-release/build/Tools/TestWebKitAPI/Tests/ > WebKit2Cocoa/LocalStorageClear.mm:170 > Value of: 1ul > Actual: 1 > Expected: websiteDataRecords.count > Which is: 2
Since we wiped the entire data store directory *and* installed only a single record of app cache ness, we expect exactly *one* record here. Getting 2 is entirely unexpected.
> /Volumes/Data/slave/elcapitan-release/build/Tools/TestWebKitAPI/Tests/ > WebKit2Cocoa/LocalStorageClear.mm:186 > Value of: originalWebsiteDataRecordCount - 1 > Actual: 1 > Expected: websiteDataRecords.count > Which is: 0
This is actually right - At the end of the test, there should absolutely be 0 results left for getting all data of all types.
Brady Eidson
Comment 13
2017-05-12 14:20:58 PDT
Created
attachment 309945
[details]
Get more info from the bots
WebKit Commit Bot
Comment 14
2017-05-12 15:13:59 PDT
The commit-queue encountered the following flaky tests while processing
attachment 309945
[details]
: The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 15
2017-05-12 15:14:26 PDT
The commit-queue encountered the following flaky tests while processing
attachment 309945
[details]
: http/tests/misc/acid3.html
bug 165734
(authors:
abecsi@webkit.org
,
arv@chromium.org
,
cdumez@apple.com
,
rniwa@webkit.org
, and
tonyg@chromium.org
) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 16
2017-05-12 15:51:12 PDT
Comment on
attachment 309945
[details]
Get more info from the bots Clearing flags on attachment: 309945 Committed
r216800
: <
http://trac.webkit.org/changeset/216800
>
WebKit Commit Bot
Comment 17
2017-05-12 15:51:13 PDT
All reviewed patches have been landed. Closing bug.
Brady Eidson
Comment 18
2017-05-12 16:15:37 PDT
Reopening since the landed patch will not fix this, but rather hopefully just tell us what's broken.
Brady Eidson
Comment 19
2017-05-12 16:40:07 PDT
Finally got the unexpected results: /Volumes/Data/slave/sierra-release/build/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:172 Value of: [record.displayName UTF8String] Actual: "Local documents on your computer" Expected: "127.0.0.1" /Volumes/Data/slave/sierra-release/build/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:174 Value of: [type UTF8String] Actual: "WKWebsiteDataTypeIndexedDBDatabases" Expected: [WKWebsiteDataTypeOfflineWebApplicationCache UTF8String] Which is: "WKWebsiteDataTypeOfflineWebApplicationCache" So, bizarrely, there are IndexedDB remnants around. No clue why, and why nobody can reproduce locally instead of on the bots.
Brady Eidson
Comment 20
2017-05-12 16:41:06 PDT
Also quite bizarre that deleting the IDB directory at the start doesn't resolve this.
Brady Eidson
Comment 21
2017-05-12 16:42:57 PDT
I see, app cache doesn't go into that directory. Okay, fine. Let's resolve this once and for all.
Brady Eidson
Comment 22
2017-05-12 16:51:11 PDT
Created
attachment 309969
[details]
Patch to fix
Build Bot
Comment 23
2017-05-12 16:52:59 PDT
Attachment 309969
[details]
did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WebKit2Cocoa/LocalStorageClear.mm:139: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 1 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 24
2017-05-12 17:31:50 PDT
Comment on
attachment 309969
[details]
Patch to fix Clearing flags on attachment: 309969 Committed
r216805
: <
http://trac.webkit.org/changeset/216805
>
WebKit Commit Bot
Comment 25
2017-05-12 17:31:52 PDT
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