Bug 208206

Summary: Tests should each use a unique ResourceLoadStatistics file path for its database store
Product: WebKit Reporter: Kate Cheney <katherine_cheney>
Component: WebKit Misc.Assignee: Kate Cheney <katherine_cheney>
Status: RESOLVED FIXED    
Severity: Normal CC: beidson, commit-queue, Lawrence.j, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Kate Cheney 2020-02-25 09:40:29 PST
This is causing issues with tests trying to delete file paths for databases which are still in use
Comment 1 Kate Cheney 2020-02-25 09:41:42 PST
<rdar://problem/59690272>
Comment 2 Kate Cheney 2020-02-25 11:10:22 PST
Created attachment 391672 [details]
Patch
Comment 3 Alexey Proskuryakov 2020-02-25 14:55:34 PST
Comment on attachment 391672 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=391672&action=review

> Source/WebKit/ChangeLog:13
> +        WebKitTestRunner. This was causing crashes and concurrency issues in tests 
> +        when multiple database stores at the same path are accessed
> +        simultaneously.

I'll leave it to someone who knows this code to review the patch, but this is exciting!

> Source/WebKit/NetworkProcess/Classifier/WebResourceLoadStatisticsStore.cpp:180
> -        // FIXME(193297): This should be revised after the UIProcess version goes away.
> -        m_statisticsStore->didCreateNetworkProcess();
> -    });
> +            // FIXME(193297): This should be revised after the UIProcess version goes away.

Bug 193297 is marked as fixed, it would be helpful to update this comment with what needs to be done. Not required for this patch, but you touched the line.
Comment 4 Alexey Proskuryakov 2020-02-25 14:55:42 PST
(also, API tests failed)
Comment 5 Kate Cheney 2020-02-25 17:54:12 PST
Created attachment 391708 [details]
Patch
Comment 6 Kate Cheney 2020-02-25 17:54:33 PST
(In reply to Alexey Proskuryakov from comment #4)
> (also, API tests failed)

This patch should fix it.
Comment 7 Kate Cheney 2020-02-25 17:55:35 PST
(In reply to Alexey Proskuryakov from comment #3)
> Comment on attachment 391672 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=391672&action=review
> 
> > Source/WebKit/ChangeLog:13
> > +        WebKitTestRunner. This was causing crashes and concurrency issues in tests 
> > +        when multiple database stores at the same path are accessed
> > +        simultaneously.
> 
> I'll leave it to someone who knows this code to review the patch, but this
> is exciting!

I know! I think this will solve many of the DB flaky test issues.
Comment 8 WebKit Commit Bot 2020-02-26 14:44:08 PST
Comment on attachment 391708 [details]
Patch

Clearing flags on attachment: 391708

Committed r257519: <https://trac.webkit.org/changeset/257519>
Comment 9 WebKit Commit Bot 2020-02-26 14:44:10 PST
All reviewed patches have been landed.  Closing bug.
Comment 10 Radar WebKit Bug Importer 2020-02-26 14:45:18 PST
<rdar://problem/59822319>
Comment 11 Kate Cheney 2020-04-16 08:45:36 PDT
*** Bug 207938 has been marked as a duplicate of this bug. ***