prestissimo icon indicating copy to clipboard operation
prestissimo copied to clipboard

Composer install not downloading in parallel

Open stephan-cream opened this issue 4 years ago • 7 comments

System information:

  • PHP 7.1, 7.2, 7.3 (tested all three)
  • composer 1.9.1
  • MacOS Mojave 10.14.5

How to reproduce:

  • Install PHP 7.1, 7.2 or 7.3 (optionally via Homebrew: brew tap henkrehorst/homebrew-php && brew install [email protected]).
  • Install composer 1.9.1 (optionally via Homebrew: brew install composer)
  • Install prestissimo through composer global require hirak/prestissimo
  • Go to a composer project with multiple modules and run composer install.

Expected result

  1. Parallel downloading of packages for modules.
  2. Installing modules through pre-downloaded packages. e.g: Installing eloquent/enumeration (5.1.1): Loading from cache

Actual result

  1. Individual module download and install. e.g: Installing eloquent/enumeration (5.1.1): Downloading (75%)

stephan-cream avatar Nov 25 '19 14:11 stephan-cream

Same situation here.

AdrianHL avatar Apr 01 '20 08:04 AdrianHL

@AdrianHL what version of prestissimo do you use? In 0.3.10 this was added.

kubawerlos avatar Apr 01 '20 10:04 kubawerlos

I'm using 0.3.10.

See output below

Changed current directory to /root/.composer
    1/5:        http://repo.packagist.org/p/provider-latest$8ceb2badbc89452e5e2b5adca7cc3da28734101ac2c3ff4dcfe3b36f97f3d84b.json
    2/5:        http://repo.packagist.org/p/provider-2019-07$5c9eb28305da605719818d18142541f6dec37eeaae135a9ed424b9a057c916fc.json
    3/5:        http://repo.packagist.org/p/provider-2019-10$3029eb3bdc0f06f2226b56aa41c6937e6181d93e6f8b762860d2cfcb96df251a.json
    4/5:        http://repo.packagist.org/p/provider-2020-01$4ed89a9ace727e338e45d11a3bfb2168f195c9b9a1906dac785cb05f8fd4c711.json
    5/5:        http://repo.packagist.org/p/provider-2019$3a7b8497ad4a6094793641da69678b0c788362de3fd7120120fcf2cd74beadc6.json
    Finished: success: 5, skipped: 0, failure: 0, total: 5
Using version ^0.3.10 for hirak/prestissimo
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
/src # php -d memory_limit=4096M /bin/composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
    1/13:       https://codeload.github.com/spatie/array-to-xml/legacy.zip/934a35b7505059830a515ab9b06fa25fa9dab0bf
    2/13:       https://codeload.github.com/DivineOmega/DO-File-Cache-PSR-6/legacy.zip/18f9807d0491d093e9a12741afb40257d92f017e
    3/13:       https://codeload.github.com/PHPOffice/Common/legacy.zip/edb5d32b1e3400a35a5c91e2539ed6f6ce925e4d
    4/13:       https://codeload.github.com/rapidwebltd/php-uk-bank-holidays/legacy.zip/f44ed1f6de40c6b3deff5d5af9d5d6aa5f0ed383
    5/13:       https://codeload.github.com/zendframework/zend-escaper/legacy.zip/13f468ff824f3c83018b90aff892a1b3201383a9
    6/13:       https://codeload.github.com/ivanlanin/pclzip/legacy.zip/19dd1de9d3f5fc4d7d70175b4c344dee329f45fd
    7/13:       https://codeload.github.com/Setasign/FPDF/legacy.zip/2c68c9e6c034ac3187d25968790139a73184cdb1
    8/13:       https://codeload.github.com/Incenteev/ParameterHandler/legacy.zip/933c45a34814f27f2345c11c37d46b3ca7303550
    9/13:       https://codeload.github.com/DivineOmega/DO-File-Cache/legacy.zip/23696a8a4c3ebe2ab3d68a35b2698fa103f69334
    10/13:      https://codeload.github.com/Setasign/FPDI/legacy.zip/3c266002f8044f61b17329f7cd702d44d73f0f7f
    11/13:      https://codeload.github.com/zendframework/zend-validator/legacy.zip/81415511fe729e6de19a61936313cef43c80d337
    12/13:      https://codeload.github.com/PHPOffice/PHPWord/legacy.zip/0a3f873972defb304de4fa2f5f53156558c11a7a
    13/13:      https://codeload.github.com/zendframework/zend-stdlib/legacy.zip/d8ecb629a72da9f91bd95c5af006384823560b42
    Finished: success: 13, skipped: 0, failure: 0, total: 13
Package operations: 13 installs, 0 updates, 0 removals
  - Installing divineomega/do-file-cache (v2.0.6): Loading from cache
  - Installing incenteev/composer-parameter-handler (v2.1.3): Loading from cache
  - Installing pclzip/pclzip (2.8.2): Loading from cache
  - Installing zendframework/zend-stdlib (2.4.13): Loading from cache
  - Installing zendframework/zend-validator (2.4.13): Loading from cache
  - Installing zendframework/zend-escaper (2.4.13): Loading from cache
  - Installing phpoffice/common (0.2.9): Loading from cache
  - Installing phpoffice/phpword (v0.13.0): Loading from cache
  - Installing divineomega/do-file-cache-psr-6 (v2.0.1): Loading from cache
  - Installing rapidwebltd/php-uk-bank-holidays (v3.1.2): Loading from cache
  - Installing setasign/fpdf (1.8.1): Loading from cache
  - Installing setasign/fpdi (v2.2.0): Loading from cache
  - Installing spatie/array-to-xml (2.9.0): Loading from cache

Using

Composer version 1.9.1 2019-11-01 17:20:17
PHP 7.3.11 (cli) (built: Oct 25 2019 03:29:07) ( NTS )

AdrianHL avatar Apr 01 '20 10:04 AdrianHL

From this output it looks prestissimo is working.

kubawerlos avatar Apr 01 '20 14:04 kubawerlos

Hey! Seems like that issue is actual: Not parallel downloading... UPD. I'm using docker container with Alpine Linux

morcano avatar Apr 16 '20 11:04 morcano

@morcano can you try without the --no-plugins --no-scripts

flolivaud avatar Apr 16 '20 12:04 flolivaud

@morcano can you try without the --no-plugins --no-scripts

Work like a charm, thanks!

morcano avatar Apr 16 '20 13:04 morcano