WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
139996
Get rid of some PageGroup storage functions
https://bugs.webkit.org/show_bug.cgi?id=139996
Summary
Get rid of some PageGroup storage functions
Anders Carlsson
Reported
2014-12-29 13:17:23 PST
Get rid of some PageGroup storage functions
Attachments
Patch
(9.10 KB, patch)
2014-12-29 13:18 PST
,
Anders Carlsson
sam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2014-12-29 13:18:33 PST
Created
attachment 243809
[details]
Patch
Anders Carlsson
Comment 2
2014-12-29 13:26:15 PST
Committed
r177814
: <
http://trac.webkit.org/changeset/177814
>
Alexey Proskuryakov
Comment 3
2014-12-30 13:26:08 PST
This changed some test results:
https://build.webkit.org/results/Apple%20Mavericks%20Release%20WK1%20(Tests)/r177825%20(10978)/storage/domstorage/localstorage/storagetracker/storage-tracker-4-create-diff.txt
https://build.webkit.org/results/Apple%20Mavericks%20Release%20WK1%20(Tests)/r177825%20(10978)/storage/domstorage/localstorage/storagetracker/storage-tracker-6-create-diff.txt
The tests used to be flaky timeouts, but this doesn't seem expected.
Alexey Proskuryakov
Comment 4
2014-12-31 00:38:09 PST
Updated test expectations in
r177830
. Anders, do you know what these tests are flaky in the first place? Each DumpRenderTree instance has its own local storage on disk, so what is the source of flakiness? And why did this patch change the tests to fail instead of time out? There is nothing in ChangeLog that explains behavior change. Should this be rolled out instead?
Anders Carlsson
Comment 5
2015-01-02 09:42:02 PST
I'm taking a look at this now.
Anders Carlsson
Comment 6
2015-01-02 11:46:57 PST
OK, I've looked at the tests and they're pretty badly written. They expect to be run in order, and will randomly fail if they're not. I tried merging the tests into a single file, but due to the way the storage tracker SPI works, there's no way to make the tests not be flaky. Then I tried rewriting them into an API test, but for the same API "design" reasons, there's no easy way to write a non-flaky test. Given this, and given that this is a test for a legacy SPI that nobody is using anymore I think it's fine to just remove the tests and the associated DumpRenderTree code.
Alexey Proskuryakov
Comment 7
2015-01-02 13:54:37 PST
It's fine with me to remove the tests, however they do always run sequentially and in order (unless one forces a non-default order, which bots don't do). Is it still expected that they are flaky, given that?
Anders Carlsson
Comment 8
2015-01-04 10:07:27 PST
(In reply to
comment #7
)
> It's fine with me to remove the tests, however they do always run > sequentially and in order (unless one forces a non-default order, which bots > don't do). > > Is it still expected that they are flaky, given that?
If multiple tests were running at the same time and they were touching storage, then yes - they could be flaky.
Alexey Proskuryakov
Comment 9
2015-01-04 11:10:01 PST
> If multiple tests were running at the same time and they were touching storage, then yes - they could be flaky.
That would be horrible. What is the mechanism that shares state across DumpRenderTree/WebKitTestRunner instances? Can anything else be shared (e.g. the actual records)? Disk storage at least is supposed to be in unique directories for each process.
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