scrutinizer-ci/scrutinizer

Too many open files when called with code-coverage

Opened this issue · 10 comments

Is there some way to get around this?

phpdbg -qrr -d zend.enable_gc=0 bin/phpunit -c ./phpunit.xml.dist --coverage-clover=./coverage.clover src/
[PHP Warning:  include(/home/scrutinizer/build/vendor/phpunit/phpunit/src/Util/Filter.php): failed to open stream: Too many open files in /home/scrutinizer/build/vendor/composer/ClassLoader.php on line 412]
[PHP Stack trace:]
[PHP   1. {main}() /home/scrutinizer/build/vendor/phpunit/phpunit/phpunit:0]
[PHP   2. spl_autoload_call() /home/scrutinizer/build/vendor/phpunit/phpunit/src/Framework/ExceptionWrapper.php:81]
[PHP Fatal error:  Method PHPUnit_Framework_ExceptionWrapper::__toString() must not throw an exception in /home/scrutinizer/build/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php on line 0]
[PHP Stack trace:]
[PHP   1. {main}() /home/scrutinizer/build/vendor/phpunit/phpunit/phpunit:0]

Example ID b5cd7554-526e-4992-93d9-c0ac9679e912

Any news on this?

Do you have a recent inspection where this is happening?

@schmittjoh 5c5c7d5c-08ed-426b-b445-8a16bc92b3e6

in the current branches (develop/master) i had to disable code-coverage generation.

Thanks, I've created an internal issue to investigate this.

@schmittjoh any news on this?
250172a3-41e9-49dc-837e-0b2848223e04

I'm facing the same issue with phpdbg and phpunit. @schmittjoh did you find a solution yet? THX

Could you open a support ticket (bottom right on the website)? That would help in tracking this down quicker.

Could you open a support ticket (bottom right on the website)? That would help in tracking this down quicker.

nevermind - this was on a local run of phpdbg. I could fix it by increasing max number of open files.