Fix forking problem when running individual tests
commitf714b0c3fa669faae0da90e1147f2087605fe4f9
authorJoel Marcey <joelm@fb.com>
Fri, 1 Nov 2013 03:59:30 +0000 (31 20:59 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 1 Nov 2013 16:16:20 +0000 (1 09:16 -0700)
tree36691cd565dec58df18f4576104d8be0cc9345c2
parent797de2403a4eff1ee469b4b0ee3a49cffb078c1d
Fix forking problem when running individual tests

The script now preloads all of the tests for all of the specified frameworks (every test is retrieved with --all). Then we fork of threads, bucketing as necessary to keep things sane. This is instead of forking of a thread per framework and then more threads for the tests of each framework where we could get up to 1000+ instances of HHVM going (and that is bad).

Also fixed a bug on how we retrieve the actual tests.

Did a little more refactoring too.

Singled out two tests from zf2 that was causing some weird deadlocking. Don't run those. Figure out why and then take them out.

Reviewed By: @ptarjan

Differential Revision: D1037105
20 files changed:
hphp/test/frameworks/results/assetic.expect
hphp/test/frameworks/results/codeigniter.expect
hphp/test/frameworks/results/composer.expect
hphp/test/frameworks/results/doctrine2.expect
hphp/test/frameworks/results/drupal.expect
hphp/test/frameworks/results/idiorm.expect
hphp/test/frameworks/results/joomla.expect
hphp/test/frameworks/results/laravel.expect
hphp/test/frameworks/results/magento2.expect
hphp/test/frameworks/results/mediawiki.expect
hphp/test/frameworks/results/paris.expect
hphp/test/frameworks/results/pear.expect
hphp/test/frameworks/results/phpbb3.expect
hphp/test/frameworks/results/phpmyadmin.expect
hphp/test/frameworks/results/phpunit.expect
hphp/test/frameworks/results/symfony.expect
hphp/test/frameworks/results/twig.expect
hphp/test/frameworks/results/yii.expect
hphp/test/frameworks/results/zf2.expect
hphp/test/frameworks/run.php