Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47016 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68497 invoked from network); 22 Feb 2010 08:20:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2010 08:20:32 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.78.26 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.26 ey-out-2122.google.com Received: from [74.125.78.26] ([74.125.78.26:61734] helo=ey-out-2122.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1F/2D-00376-F4E328B4 for ; Mon, 22 Feb 2010 03:20:32 -0500 Received: by ey-out-2122.google.com with SMTP id 9so576285eyd.39 for ; Mon, 22 Feb 2010 00:20:28 -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=QaQVpACWJpZw89q+FLqLOBcFUUwlo8T+ltIrY7kmAnY=; b=OyOuAuLlAuN7nQeE4GJ39n2WE+ZuBCy13UXFSr8izVPwGni2v6Z4pLnhiuBNTmWUFh 9ugXt2S3xTpizkB7cCtodEqGDXnuK2COuPLG230NU5zLenaRcxungPDlAN7zfFemRodn 5aAtCzDvZ+Y5b7mMGFKjyLHma4BfmTDKQ7bHE= 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=IDNuq4L5zXn5+DTvAlM4steTD3kUOVzpXdyY+nm9euoCBlS5tMzQShCcPl6sXaW4RI u11IJZY3ROIXvqPHs57OM1iY5bpkct9Q5JhTkhMVw6m+hZv6o7p8deanQ3RTE5ZO0HWK y1rSwtUPjfIQVm1WLDE4eqa5P4FFXw5owNkIU= MIME-Version: 1.0 Received: by 10.216.85.132 with SMTP id u4mr4721649wee.191.1266826827319; Mon, 22 Feb 2010 00:20:27 -0800 (PST) In-Reply-To: References: Date: Mon, 22 Feb 2010 09:20:27 +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) 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