Newsgroups: php.internals,php.qa Path: news.php.net Xref: news.php.net php.internals:60595 php.qa:66563 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40244 invoked from network); 17 May 2012 12:00:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 May 2012 12:00:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=aparachic@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=aparachic@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) X-PHP-List-Original-Sender: aparachic@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bk0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:34458] helo=mail-bk0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/90-36414-A48E4BF4 for ; Thu, 17 May 2012 08:00:11 -0400 Received: by bkcik5 with SMTP id ik5so1512545bkc.29 for ; Thu, 17 May 2012 05:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=WPqDckVCJbd2FzSsxaRzV4pzKO9D/pUC8nRs05kKmyQ=; b=hJ1sb6WuaREy8N38sDWk+ob2lHHgqrFLnBk5OXPUZPvcsBxIh71WAzvjo0wbvA3GUk /kmdy20eBdkU4zR+kVOXHt2Mm1VNyNSeIwUGsk8+oFbm8L/LgH5D0pnyW1QLnBaBVZm6 3Iu2DOCZroL4i6UsOjWvWz1AEHtHoiwKcBqnwEKssIB6LdM+cF4X611RYiRx7nd3CV1+ WR2eGlU44KVFS0tlNkaTYt8utNxThShznD/bWQX9lXCE9F75KR9wUPhpXpGWxF1suvZI lafMDwYqWq3z5cN6MFFY4ms1jYW6IKyVk5zbu60vhDwzWdI9GU8OrWKtalUO+DejBH1B kuoA== Received: by 10.205.139.81 with SMTP id iv17mr2522208bkc.118.1337256006796; Thu, 17 May 2012 05:00:06 -0700 (PDT) Received: from zoe-slatterys-MacBook-Pro.local (82-69-37-134.dsl.in-addr.zen.co.uk. [82.69.37.134]) by mx.google.com with ESMTPS id fw10sm11048445bkc.11.2012.05.17.05.00.05 (version=SSLv3 cipher=OTHER); Thu, 17 May 2012 05:00:05 -0700 (PDT) Message-ID: <4FB4E844.2070305@gmail.com> Date: Thu, 17 May 2012 13:00:04 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: internals@lists.php.net, PHP QA Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Parallel run-tests From: aparachic@gmail.com (zoe slattery) Hi Over the past couple of weeks I have updated the parallel run-tests (fixed a couple of minor bugs in the PHP code and the build.xml), it's now almost at the point where I could go ahead and implement the last pieces. Here is a summary and a few questions: 1. In rebasing the code the the dev't stream I found a number of tests with non-standard sections. My code checks test case structure and objects to anything non-standard, the current run-tests.php mainly ignores this kind of thing. I fixed up about 15 of these tests (see #62022) already - I'll fix the rest if there are no objections - I will open another bug report first. 2. If there is agreement to use this code it would make sense to replace the existing run-tests code with it, or rather, it would make no sense to try and maintain both versions. The new code is OO PHP, it's in http://git.php.net/repository/phpruntests.git, is there any problem with it staying there long term and maybe copying a run-tests.phar into the PHP source directory? I have no idea what the right answer is, suggestions welcome. 3. I ran a couple of small tests on my dual core Mac yesterday. For a standard set of tests, the parallel code ran in 207 seconds, sequential in 293 seconds and the standard run-tests.php took 298 seconds. This is an improvement but I suspect we could still do better by looking at the scheduling algorithm. At the moment it's very simple, we just assemble a list of directories with tests in and hand them out to processors till everything is done. Being able to handle tests that must be run in sequence (mysql, mysqli) will mean making some changes to this. So, perhaps we give an explicit list to p1 and let the scheduler distribute the rest of the tests? Or maybe we should have a 'process map' for all tests for extensions that are build by default? Again, suggestions welcome. 4. REDIRECTTEST still needs to be implemented, I understand how it works and this isn't (afaict) a major issue. 5. Testing. I'm able to do basic testing on Mac OSX and Linux. I really need access to an 8 way Linux system, or someone who has access and would be interested in looking at performance? Any volunteers? This is probably the most interesting part of the project :-) 6. Windows. I'm not in a position to do anything much with Windows except some very basic checks to make sure that the sequential version runs. The parallel code won't work because we used pcntl(), however I know that Stefan and George were keen to design the code so that a Windows solution could be implemented if anyone thought of one. If anyone wants to pick up this aspect I'd be happy to get them started. Zoe