Newsgroups: php.internals,php.qa Path: news.php.net Xref: news.php.net php.internals:60612 php.qa:66582 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74223 invoked from network); 19 May 2012 21:33:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2012 21:33:59 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qc0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:41821] helo=mail-qc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/44-37303-6C118BF4 for ; Sat, 19 May 2012 17:33:59 -0400 Received: by qcmt36 with SMTP id t36so2883086qcm.29 for ; Sat, 19 May 2012 14:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=RYzoCC/ScfbaDxIf5rbA280EtM1pH24tkWN5RfLaVEE=; b=dEGGpcwE0EY947yHaQl3SJA3SJzCJlIoraSFz9uCqfKtAIChJhFdskvYCDatNDjG0h tqTCOc/2/AQveMvkmfh5yDYau+xd7FXudAODrYvjKqPGsOUvREBF0OxkKgTMPNnBehB2 JFZClzsiaKiZ01a4+kB5Sdpct6MYtKrfNc9ESaa9/oMTiJAL5CmlFIBPUdrdJHbi3L1U vWqg2EWu/mrGhVQs1fY6CpNhsJRZwQoj/M3cwKDNnDzO9w8fkYix/mSujoGgApo7Lwtl w3rcEsevbe+hzIGGvnUhnevZ01vt/l4teELxpATxp09vWCHX+mSFw2giVE5ZcmHrcNoS GMMQ== Received: by 10.229.107.12 with SMTP id z12mr7492994qco.18.1337463236169; Sat, 19 May 2012 14:33:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.4.32 with HTTP; Sat, 19 May 2012 14:33:35 -0700 (PDT) In-Reply-To: <4FB4E844.2070305@gmail.com> References: <4FB4E844.2070305@gmail.com> Date: Sat, 19 May 2012 18:33:35 -0300 Message-ID: To: zoe slattery Cc: internals@lists.php.net, PHP QA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-QA] Parallel run-tests From: felipensp@gmail.com (Felipe Pena) Hi Zoe, great work on this new run-tests! :D I was testing it and noticed a problem when running using the following com= mand: $ ~/dev/php5_4/sapi/cli/php run-tests.php -z 8 -p ~/dev/php5_4/sapi/cli/php ~/dev/php5_4/ It shows the PHP messages: [...] Fatal error: Call to undefined function gzencode() in /home/felipe/dev/phpruntests/src/testcase/sections/configurationsections/rt= GzipPostSection.php on line 23 [...] Notice: Undefined offset: 0 in /home/felipe/dev/phpruntests/src/testcase/rtTestDifference.php on line 91 Fatal error: Allowed memory size of 134217728 bytes exhausted at /home/felipe/dev/php5_4/Zend/zend_hash.c:330 (tried to allocate 81 bytes) in /home/felipe/dev/phpruntests/src/testcase/rtPhpTestFile.php on line 108 /home/felipe/dev/php5_4/Zend/zend_hash.c(551) : ht=3D0x7f96e6356a50 is inconsistent [...] Fatal error: Allowed memory size of 134217728 bytes exhausted at ext/standard/var_unserializer.re:290 (tried to allocate 32 bytes) in /home/felipe/dev/phpruntests/src/taskScheduler/rtTaskSchedulerFile.php on line 183 2012/5/17 zoe slattery : > Hi > > Over the past couple of weeks I have updated the parallel run-tests (fixe= d 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. =C2=A0Her= e is a > summary and a few questions: > > 1. In rebasing the code the the dev't stream I found a number of tests wi= th > 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 firs= t. > > 2. If there is agreement to use this code it would make sense to replace > =C2=A0the existing run-tests code with it, or rather, =C2=A0it 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 i= n > 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 wi= th > tests in and hand them out to processors till everything is done. Being a= ble > 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 a= nd > let the scheduler distribute the rest of the tests? Or maybe we should ha= ve > 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 =C2=A0and Linux. I re= ally > 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 th= e > 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 Ste= fan > 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 asp= ect > I'd be happy to get them started. > > Zoe > > -- > PHP Quality Assurance Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Regards, Felipe Pena