Bug 75145 - Run tests in serial on SnowLeopard to avoid CFURLCache crashes
Summary: Run tests in serial on SnowLeopard to avoid CFURLCache crashes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Seidel (no email)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-22 15:49 PST by Simon Fraser (smfr)
Modified: 2012-02-02 19:03 PST (History)
8 users (show)

See Also:


Attachments
Patch (2.64 KB, patch)
2012-02-02 15:17 PST, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff
Patch for landing (2.85 KB, patch)
2012-02-02 15:26 PST, Eric Seidel (no email)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2011-12-22 15:49:46 PST
CFURLCache seems to have issues when lots of processes are hitting the same cache. We should run the tests in serial on SnowLeopard to avoid this. See bug 75131
Comment 1 Eric Seidel (no email) 2011-12-22 16:07:48 PST
Sad times.  I assume there is a radar about the crash?  Or I guess one isn't needed since SL is history now...

Do you know if only some of the tests crash?  Can we run just those in serial?
Comment 2 Simon Fraser (smfr) 2011-12-22 16:10:27 PST
I was crashing just running fast/

There is a radar.
Comment 3 Eric Seidel (no email) 2012-02-02 12:49:27 PST
mac.py:
http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/mac.py

Should override default_child_processes:
http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/port/base.py#L166

to be 1 on SnowLeopard if it detects that this bug is present (or I guess always if the bug is always present).

Alternatively, Mac.__init__ could use set_default("child_processes", 1) like it does for batch_size.  I'm not really sure which is cleaner.
Comment 4 Dirk Pranke 2012-02-02 13:10:40 PST
overridding default_child_processes would be the recommended way to do it.
Comment 5 Eric Seidel (no email) 2012-02-02 15:17:56 PST
Created attachment 125196 [details]
Patch
Comment 6 Eric Seidel (no email) 2012-02-02 15:26:08 PST
Created attachment 125198 [details]
Patch for landing
Comment 7 WebKit Review Bot 2012-02-02 19:03:33 PST
Comment on attachment 125198 [details]
Patch for landing

Clearing flags on attachment: 125198

Committed r106616: <http://trac.webkit.org/changeset/106616>
Comment 8 WebKit Review Bot 2012-02-02 19:03:40 PST
All reviewed patches have been landed.  Closing bug.