Docker Compose PHPUnit no longer working in 2018.1 (nor 2018.1.1)

 I am using Docker Compose for running my PHPUnit tests during development and it worked in 2017.3.6:

Testing started at 8:43 ...
docker-compose://[C:\Users\jdani\workspaces\maestro\docker-compose.yml]:web2/php /opt/.phpstorm_helpers/phpunit.php --bootstrap /code/UnitTests/bootstrap2.php --configuration /code/phpunit.xml --filter "/::testConstructor( .*)?$/" Sku_Services_SubPartnerSkuTest /code/UnitTests/Maestro/includes/services/Sku/tests/Sku/Services/SubPartnerSkuTest.php
PHPUnit 4.8.36 by Sebastian Bergmann and contributors.

 

Time: 2.81 seconds, Memory: 19.50MB

OK (1 test, 1 assertion)

Process finished with exit code 0

 

But not in 2018.1 (or 2018.1.1):

Testing started at 8:37 ...
docker-compose://[C:\Users\jdani\workspaces\maestro\docker-compose.yml]:web2/php /opt/.phpstorm_helpers/phpunit.php --bootstrap /code/UnitTests/bootstrap2.php --configuration /code/phpunit.xml --filter "/(::testConstructor)( .*)?$/" Sku_Services_SubPartnerSkuTest /code/UnitTests/Maestro/includes/services/Sku/tests/Sku/Services/SubPartnerSkuTest.php
Recreating maestro_db_1 ...
Recreating maestro_web2_1 ...
Recreating maestro_web2_1 ... Attaching to maestro_web2_1
[2344] Failed to execute script docker-compose
Traceback (most recent call last):
File "docker-compose", line 6, in <module>
File "compose\cli\main.py", line 71, in main
File "compose\cli\main.py", line 127, in perform_command
File "compose\cli\main.py", line 1065, in up
File "compose\cli\log_printer.py", line 87, in run
File "compose\cli\log_printer.py", line 245, in consume_queue
File "compose\cli\log_printer.py", line 160, in tail_container_logs
File "compose\utils.py", line 61, in split_buffer
File "compose\utils.py", line 37, in stream_as_text
File "site-packages\docker\utils\socket.py", line 73, in frames_iter
File "site-packages\docker\utils\socket.py", line 60, in next_frame_size
File "site-packages\docker\utils\socket.py", line 45, in read_exactly
File "site-packages\docker\utils\socket.py", line 32, in read
OSError: [Errno 9] Bad file descriptor

Process finished with exit code -1

Details:

PS C:\Users\jdani\workspaces\maestro> docker-compose -v
docker-compose version 1.20.1, build 5d8c71b2

File version: 2

 

Any ideas?

 

 

Please sign in to leave a comment.