Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47017 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69641 invoked from network); 22 Feb 2010 08:21:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2010 08:21:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.78.25 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 74.125.78.25 ey-out-2122.google.com Received: from [74.125.78.25] ([74.125.78.25:2744] helo=ey-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A1/7D-00376-1AE328B4 for ; Mon, 22 Feb 2010 03:21:53 -0500 Received: by ey-out-2122.google.com with SMTP id 9so576495eyd.39 for ; Mon, 22 Feb 2010 00:21:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=UvFwPwQBKQNHmhbbmzkn7fK/IF1HB6VSTAuzlYSma10=; b=w7tVST6KbJQhlgkm7Wye83r4VmwXioX5jOttSea1rq/e2fQ7l//NSJRO4qg/irTicD mTnYP1Bjy45vHOSENT2/TINe0xcjelLfebW+i2sPvExbXM71HD8i41fEwTs0wvwfmxL4 p6g7RbJh02YzkQhNxH0sBXlH52uiahv3S6mX0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=U1ASfvKRgdMc85r8arL2ZKNU9eRgcOy6KSQDy8tcc5EkdDT1zdp5sG1CDo2m2obM/U 3u8XCJ6pYF6Ab8AvVIcJ75OeI3QQEqXI8mWTkxD708+k9LBbjLEMTZc+hHNJOczeYSN8 sImJYJHQ1CXPKU58BIUdT2HkVs4TA5+9Q+ad4= MIME-Version: 1.0 Received: by 10.216.162.202 with SMTP id y52mr2070476wek.76.1266826910584; Mon, 22 Feb 2010 00:21:50 -0800 (PST) In-Reply-To: References: Date: Mon, 22 Feb 2010 09:21:50 +0100 Message-ID: To: Raphael Geissert Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] multi-jobs run-tests.php From: pierre.php@gmail.com (Pierre Joye) forgot to add the link to the repo: http://svn.php.net/viewvc/php/phpruntests/ On Mon, Feb 22, 2010 at 9:20 AM, Pierre Joye wrote: > hi, > > There is an on-going work on run-test (which began as part of last > year GSoC). I would begin there instead of working on the current > run-test.php. Parallel testing is part of the new features as well, in > a portable way (like not only where pcntl is available). > > Thanks for your work, > > Cheers, > -- > Pierre > > On Mon, Feb 22, 2010 at 2:11 AM, Raphael Geissert wrote: >> Hi, >> >> I've spent the last hours working on making run-tests.php be able to run >> tests in parallel. The main reason being the time it takes to run the whole >> testsuite even on multicore CPUs. >> >> Attached is the first set of changes needed. It uses pcntl's fork and >> sysvmsg to send some of the results back to the parent process. >> >> Main functionalities still work, but the summary doesn't include failed >> tests. >> >> I plan to move away from sysvmsg because with the current implementation >> killing the parent process can leave message queues open (nothing that can't >> be fixed by adding a proper exit handler) and sysvmsg is not enabled by >> default. Probably to something php://memory-based. >> >> To support all the features under multi-jobs mode I think the proper fix is >> to cleanup the code so that run_test() stores the state information via an >> interface. This would make the code cleaner and would let multi-jobs mode >> just change the state-storing interface. >> >> How should I handle this? just by committing the changes? first sending them >> here (to internals)? by contacting somebody else? >> >> Cheers, >> -- >> Raphael Geissert >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org > -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org