Bug 139996

Summary: Get rid of some PageGroup storage functions
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch sam: review+

Description Anders Carlsson 2014-12-29 13:17:23 PST
Get rid of some PageGroup storage functions
Comment 1 Anders Carlsson 2014-12-29 13:18:33 PST
Created attachment 243809 [details]
Patch
Comment 2 Anders Carlsson 2014-12-29 13:26:15 PST
Committed r177814: <http://trac.webkit.org/changeset/177814>
Comment 4 Alexey Proskuryakov 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?
Comment 5 Anders Carlsson 2015-01-02 09:42:02 PST
I'm taking a look at this now.
Comment 6 Anders Carlsson 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.
Comment 7 Alexey Proskuryakov 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?
Comment 8 Anders Carlsson 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.
Comment 9 Alexey Proskuryakov 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.