Re: Concurrency support for run-tests

From: Date: Wed, 09 Jul 2014 18:49:25 +0000
Subject: Re: Concurrency support for run-tests
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-75346@lists.php.net to get a copy of this message
On Mon, Jul 7, 2014 at 6:53 AM, Michael Wallner <mike@php.net> wrote:
I also have a patch for run-tests sitting around for quite some time, which adds concurrent test execution support. I already fixed a lot of non re-entrant tests in the past, but there might still be quite some of them.
HHVM uses PHP's test suite and runs them in parallel. We upstreamed a number of fixes for tests to make these behave properly (many tests used common, generic filenames like "test.txt" which would clobber over each other when run concurrently). Would love to see PHP eat up a few more cores too.
The other problem regarding running tests in parallel are DB extensions. Many DB tests use the same tables. Or extensions that create sockets on the same port (e.g., ftp). Having thought a bit about the subject, the heuristic I came up with was to 1) do not run tests from the same extension in parallel, and 2) do not run tests from certain extensions in parallel (e.g., mysql and pdo_mysql). BTW, I made this patch in 2007 for run-tests.php that was a naive parallelization of the system: http://gcov.php.net/~nlopess/multi_threaded_run_tests.txt Nuno

Thread (20 messages)

« previous php.internals (#75346) next »