# running tests in parallel?

- Thread: https://externals.io/message/60428
- Original archive: https://news-web.php.net/php.internals/60428
- Started by zoe slattery on 2012-05-03T10:54:38+00:00
- Messages: 10
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #60428 — zoe slattery — 2012-05-03T10:54:38+00:00

URL: https://externals.io/message/60428#60428

Hi

Some years ago (in 2009) Stefan Priebsch, myself and a GSOC student 
worked on a version of run-tests.php which would run tests in parallel - 
I wrote about it here: 
http://zoomsplatter.blogspot.co.uk/2009/07/on-no-not-more-tests.html.

The code was complete apart from finding some way to handle REDIRECT and 
does run faster on multi core systems but for various reasons we all ran 
out of time to work on it.  I recently checked out the code and it 
still  works, there are a few little things to be fixed, and of course 
REDIRECT still needs to be implemented. I have some free time now and 
would be happy to do this, however, I've been fairly out of touch with 
PHP since 2009, so before I get on and make this work:

(a) Would it still be helpful if the tests could be run faster?
(b) Has anyone come up with a better solution in the years since I 
looked at this?

Thanks,
Zoe

---

## #60429 — Derick Rethans — 2012-05-03T11:12:57+00:00

URL: https://externals.io/message/60428#60429 · In reply to: #60428

> (a) Would it still be helpful if the tests could be run faster?

Yes.

> (b) Has anyone come up with a better solution in the years since I looked at
> this?

I haven't seen anything!

cheers,
Derick

-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug

---

## #60430 — Peter Lind — 2012-05-03T11:18:26+00:00

URL: https://externals.io/message/60428#60430 · In reply to: #60429

> 
>
> > […]
>
> Yes.

Running the tests on my netbook takes a very long time - yet is
presumably still a good thing to do. Having them run in parallel would
be a very nice feature :)

Regards
Peter

-- 
<hype>
WWW: plphp.dk / plind.dk
LinkedIn: plind
BeWelcome/Couchsurfing: Fake51
Twitter: kafe15
</hype

---

## #60431 — jpauli — 2012-05-03T11:26:25+00:00

URL: https://externals.io/message/60428#60431 · In reply to: #60428

> Hi
>
> Some years ago (in 2009) Stefan Priebsch, myself and a GSOC student worked
> on a version of run-tests.php which would run tests in parallel - I wrote
> about it here:
> http://zoomsplatter.blogspot.co.uk/2009/07/on-no-not-more-tests.html.
>
> The code was complete apart from finding some way to handle REDIRECT and
> does run faster on multi core systems but for various reasons we all ran out
> of time to work on it.  I recently checked out the code and it still  works,
> there are a few little things to be fixed, and of course REDIRECT still
> needs to be implemented. I have some free time now and would be happy to do
> this, however, I've been fairly out of touch with PHP since 2009, so before
> I get on and make this work:
>
> (a) Would it still be helpful if the tests could be run faster?
> (b) Has anyone come up with a better solution in the years since I looked at
> this?
>
> Thanks,
> Zoe

Haha, I was thinking about that while heavily testing PHP5.4, as well
as writing suppression files for Valgrind reports.
Ferenc told me you worked on parallel tests running, happy to see you
can now probably complete the work :) :)

Julien

---

## #60432 — Xinchen Hui — 2012-05-03T11:34:06+00:00

URL: https://externals.io/message/60428#60432 · In reply to: #60428

Sent from my iPhone

在 2012-5-3，18:55，zoe slattery <aparachic@gmail.com> 写道：

> Hi
>
> Some years ago (in 2009) Stefan Priebsch, myself and a GSOC student worked on a version of run-tests.php which would run tests in parallel - I wrote about it here: http://zoomsplatter.blogspot.co.uk/2009/07/on-no-not-more-tests.html.
>
> The code was complete apart from finding some way to handle REDIRECT and does run faster on multi core systems but for various reasons we all ran out of time to work on it.  I recently checked out the code and it still  works, there are a few little things to be fixed, and of course REDIRECT still needs to be implemented. I have some free time now and would be happy to do this, however, I've been fairly out of touch with PHP since 2009, so before I get on and make this work:
>
> (a) Would it still be helpful if the tests could be run faster?
> (b) Has anyone come up with a better solution in the years since I looked at this?
>
great work!

I used to type make test -j.  But it turns out doesnt work:(

Thanks
> Thanks,
> Zoe

---

## #60433 — Olivier Doucet — 2012-05-03T11:42:33+00:00

URL: https://externals.io/message/60428#60433 · In reply to: #60428

Hi,

2012/5/3 zoe slattery <aparachic@gmail.com>:
> Hi
>
> Some years ago (in 2009) Stefan Priebsch, myself and a GSOC student worked
> on a version of run-tests.php which would run tests in parallel - I wrote
> about it here:
> http://zoomsplatter.blogspot.co.uk/2009/07/on-no-not-more-tests.html.

I'm very glad you have free time to finish this :) I looked at source
code recently, but was unable to see what was missing to get it
running. I think I emailed you about this a year ago, then I moved to
QA report project ;)

Having tests running in parallel will be a huge improvement. Also
having different output (like XML) will help for loading user
feedbacks in http://qa.php.net/reports/

If you need any help on this, feel free to ask.

Olivier

---

## #60435 — Reeze — 2012-05-03T11:57:50+00:00

URL: https://externals.io/message/60428#60435 · In reply to: #60433

look forward your futhur work！
make test takes really long time，
with valgrind is almost unacceptable。
--  
Reeze
Sent from my iphone




> Hi,
>  
> 2012/5/3 zoe slattery <aparachic@gmail.com>:
> > […]
>  
>  
> I'm very glad you have free time to finish this :) I looked at source
> code recently, but was unable to see what was missing to get it
> running. I think I emailed you about this a year ago, then I moved to
> QA report project ;)
>  
> Having tests running in parallel will be a huge improvement. Also
> having different output (like XML) will help for loading user
> feedbacks in http://qa.php.net/reports/
>  
> If you need any help on this, feel free to ask.
>  
> Olivier

---

## #60436 — Christopher Jones — 2012-05-03T17:00:54+00:00

URL: https://externals.io/message/60428#60436 · In reply to: #60428

> Hi
>
> Some years ago (in 2009) Stefan Priebsch, myself and a GSOC student worked on a version of run-tests.php which would run tests in parallel - I wrote about it here: http://zoomsplatter.blogspot.co.uk/2009/07/on-no-not-more-tests.html.
>
> The code was complete apart from finding some way to handle REDIRECT and does run faster on multi core systems but for various reasons we all ran out of time to work on it. I recently checked out the code and it still works, there are a few little things
> to be fixed, and of course REDIRECT still needs to be implemented. I have some free time now and would be happy to do this, however, I've been fairly out of touch with PHP since 2009, so before I get on and make this work:
>
> (a) Would it still be helpful if the tests could be run faster?

Absolutely.

> (b) Has anyone come up with a better solution in the years since I looked at this?

Practically no, though we did try to encourage some efforts from new contributors.
Also Nuno was looking at a quick hack for gcov.php.net; I'm not sure if he got
anywhere with this.

Chris

-- 
christopher.jones@oracle.com
http://twitter.com/#!/ghrd

---

## #60442 — Nuno Lopes — 2012-05-04T01:25:31+00:00

URL: https://externals.io/message/60428#60442 · In reply to: #60428

It's very important! Take a look at http://gcov.php.net
A single build takes almost 2 days with most extensions enabled plus 
valgrind testing.

So, yes, parallel testing would be highly appreciated (but do not forget my 
initial requirements, such as e.g. mysql and mysqli tests cannot run at the 
same time).

Nuno

-----Original Message----- 
From: zoe slattery
Sent: Thursday, May 03, 2012 11:54 AM
Subject: [PHP-QA] running tests in parallel?

Hi

Some years ago (in 2009) Stefan Priebsch, myself and a GSOC student
worked on a version of run-tests.php which would run tests in parallel -
I wrote about it here:
http://zoomsplatter.blogspot.co.uk/2009/07/on-no-not-more-tests.html.

The code was complete apart from finding some way to handle REDIRECT and
does run faster on multi core systems but for various reasons we all ran
out of time to work on it.  I recently checked out the code and it
still  works, there are a few little things to be fixed, and of course
REDIRECT still needs to be implemented. I have some free time now and
would be happy to do this, however, I've been fairly out of touch with
PHP since 2009, so before I get on and make this work:

(a) Would it still be helpful if the tests could be run faster?
(b) Has anyone come up with a better solution in the years since I
looked at this?

Thanks,
Zoe

---

## #60489 — zoe slattery — 2012-05-06T10:15:37+00:00

URL: https://externals.io/message/60428#60489 · In reply to: #60442

Hi

Thanks for the replies to this thread - I'll get on with it then :-)

Zoe
> It's very important! Take a look at http://gcov.php.net
> A single build takes almost 2 days with most extensions enabled plus 
> valgrind testing.
>
> So, yes, parallel testing would be highly appreciated (but do not 
> forget my initial requirements, such as e.g. mysql and mysqli tests 
> cannot run at the same time).
>
> Nuno
>
> -----Original Message----- From: zoe slattery
> Sent: Thursday, May 03, 2012 11:54 AM
> Subject: [PHP-QA] running tests in parallel?
>
> Hi
>
> Some years ago (in 2009) Stefan Priebsch, myself and a GSOC student
> worked on a version of run-tests.php which would run tests in parallel -
> I wrote about it here:
> http://zoomsplatter.blogspot.co.uk/2009/07/on-no-not-more-tests.html.
>
> The code was complete apart from finding some way to handle REDIRECT and
> does run faster on multi core systems but for various reasons we all ran
> out of time to work on it.  I recently checked out the code and it
> still  works, there are a few little things to be fixed, and of course
> REDIRECT still needs to be implemented. I have some free time now and
> would be happy to do this, however, I've been fairly out of touch with
> PHP since 2009, so before I get on and make this work:
>
> (a) Would it still be helpful if the tests could be run faster?
> (b) Has anyone come up with a better solution in the years since I
> looked at this?
>
> Thanks,
> Zoe
