hirak / prestissimo

composer parallel install plugin
MIT License
6.19k stars 170 forks source link

Cache not used for some packages #11

Closed jenschude closed 8 years ago

jenschude commented 8 years ago

Also prestissimo downloaded the required packages, some packages were not loaded from the cache. Had this problem for example for packages with a requirement to a specific branch like dev-develop.

But happened also for monolog with requirement: "monolog/monolog": "^1.7"

joelwurtz commented 8 years ago

Mainly because it's only working on a http context so things like git or others vcs system cannot use the parallelization.

hirak commented 8 years ago

If you used --prefer-source option, this plugin could not work well.

jenschude commented 8 years ago

Didn't used --prefer-source. But seems that composer prefers source for branches. But the interesting point here is the dependency from monolog which had been downloaded as source and as zip by prestissimo.

hirak commented 8 years ago

@jayS-de Mmmm.. I think that you might fail to download. (plugin's bug??) Could you tell me the versions?

$ composer --version
$ php -v
$ uname -a
jenschude commented 8 years ago

When using --prefer-dist option everything is installed from cache. (Found it now also in the README (self-face-palm))

The problems that even tagged version are cloned, seem to be some @beta und @dev i have in the dependencies because behat has no stable version at the moment for symfony3. And now monolog had been installed from the cache. o_O

Below the log of install without any prefer option

$ composer --version
Composer version 1.0-dev (f31799b739265e7cb1797b395050ffcd57671335) 2015-12-27 13:58:20

$ php -v
PHP 7.0.1 (cli) (built: Dec 18 2015 19:20:08) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    with Xdebug v2.4.0RC2, Copyright (c) 2002-2015, by Derick Rethans
$ uname -a
Darwin <hostname>.local 15.2.0 Darwin Kernel Version 15.2.0: Fri Nov 13 19:56:56 PST 2015; root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64

$ composer clear-cache
Clearing cache (cache-dir): /Users/~/.composer/cache
Clearing cache (cache-files-dir): /Users/~/.composer/cache/files
Clearing cache (cache-repo-dir): /Users/~/.composer/cache/repo
Cache directory does not exist (cache-vcs-dir): 
All caches cleared.

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
    Prefetch start: success: 0, failure: 0, total: 55
    1/55:    https://codeload.github.com/sebastianbergmann/php-file-iterator/legacy.zip/6150bf2c35d3fc379e50c7602b75caceaa39dbf0
    2/55:    https://codeload.github.com/sebastianbergmann/php-timer/legacy.zip/3e82f4e9fc92665fafd9157568e4dcb01d014e5b
    3/55:    https://codeload.github.com/sebastianbergmann/php-text-template/legacy.zip/31f8b717e51d9a2afca6c9f046f5d69fc27c8686
    4/55:    https://codeload.github.com/doctrine/instantiator/legacy.zip/8e884e78f9f0eb1329e445619e04456e64d8051d
    5/55:    https://codeload.github.com/sebastianbergmann/comparator/legacy.zip/937efb279bd37a375bcadf584dec0726f84dbf22
    6/55:    https://codeload.github.com/sebastianbergmann/diff/legacy.zip/13edfd8706462032c2f52b4b862974dd46b71c9e
    7/55:    https://codeload.github.com/sebastianbergmann/phpunit-mock-objects/legacy.zip/ac8e7a3db35738d56ee9a76e78a4e03d97628983
    8/55:    https://codeload.github.com/sebastianbergmann/environment/legacy.zip/6e7133793a8e5a5714a551a8324337374be209df
    9/55:    https://codeload.github.com/sebastianbergmann/exporter/legacy.zip/7ae5513327cb536431847bcc0c10edba2701064e
    10/55:    https://codeload.github.com/sebastianbergmann/recursion-context/legacy.zip/913401df809e99e4f47b27cdd781f4a258d58791
    11/55:    https://codeload.github.com/sebastianbergmann/global-state/legacy.zip/bc37d50fea7d017d3d340f230811c9f1d7280af4
    12/55:    https://codeload.github.com/phpspec/prophecy/legacy.zip/4745ded9307786b730d7a60df5cb5a6c43cf95f7
    13/55:    https://codeload.github.com/sebastianbergmann/version/legacy.zip/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6
    14/55:    https://codeload.github.com/sebastianbergmann/php-token-stream/legacy.zip/3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da
    15/55:    https://codeload.github.com/sphereio/commercetools-sunrise-scenarios/legacy.zip/ddf4c1030cda238b0576aa6d40e6379174c50a29
    16/55:    https://codeload.github.com/minkphp/MinkSelenium2Driver/legacy.zip/bedbf1999c7ba1bc6921b30ee2eadf383e7ff5c9
    17/55:    https://codeload.github.com/phpDocumentor/ReflectionDocBlock/legacy.zip/d68dbdc53dc358a816f00b300704702b2eaff7b8
    18/55:    https://codeload.github.com/heroku/heroku-buildpack-php/legacy.zip/381d12e06534b7d059d42407c96588826d5e4ab4
    19/55:    https://codeload.github.com/instaclick/php-webdriver/legacy.zip/0c20707dcf30a32728fd6bdeeab996c887fdb2fb
    20/55:    https://codeload.github.com/Behat/MinkExtension/legacy.zip/296445cec02e36836a6298452631be8e00b1e13a
    21/55:    https://codeload.github.com/sebastianbergmann/php-code-coverage/legacy.zip/eabf68b476ac7d0f73793aada060f1c1a9bf8979
    22/55:    https://codeload.github.com/symfony/monolog-bundle/legacy.zip/84785c4d44801c4dd82829fa2e1820cacfe2c46f
    23/55:    https://codeload.github.com/Behat/Transliterator/legacy.zip/868e05be3a9f25ba6424c2dd4849567f50715003
    24/55:    https://codeload.github.com/Behat/Gherkin/legacy.zip/1576b485c0f92ef6d27da9c4bbfc57ee30cf6911
    25/55:    https://codeload.github.com/minkphp/Mink/legacy.zip/da03bb9e7ffa8a45007e61988215d1ab569480c1
    26/55:    https://codeload.github.com/jayS-de/HandlebarsBundle/legacy.zip/36ee1d57370d5e40c1482bc7847b4dfaead77a15
    27/55:    https://codeload.github.com/sebastianbergmann/phpunit/legacy.zip/ea76b17bced0500a28098626b84eda12dbcf119c
    28/55:    https://codeload.github.com/symfony/polyfill-intl-icu/legacy.zip/66b0bb4abda229bc073eff6bbc8f2685bdaac165
    29/55:    https://codeload.github.com/symfony/polyfill-mbstring/legacy.zip/1289d16209491b584839022f29257ad859b8532d
    30/55:    https://codeload.github.com/sensiolabs/SensioFrameworkExtraBundle/legacy.zip/3e8936fe13aa4086644977d334d8fcd275f50357
    31/55:    https://codeload.github.com/Seldaek/monolog/legacy.zip/bee7f0dc9c3e0b69a6039697533dca1e845c8c24
    32/55:    https://codeload.github.com/doctrine/common/legacy.zip/a579557bc689580c19fee4e27487a67fe60defc0
    33/55:    https://codeload.github.com/symfony/polyfill-php56/legacy.zip/4d891fff050101a53a4caabb03277284942d1ad9
    34/55:    https://codeload.github.com/symfony/polyfill-php70/legacy.zip/8428ceddbbaf102f2906769a8ef2438220c5cb95
    35/55:    https://codeload.github.com/paragonie/random_compat/legacy.zip/dd8998b7c846f6909f4e7a5f67fabebfc412a4f7
    36/55:    https://codeload.github.com/symfony/polyfill-util/legacy.zip/8de62801aa12bc4dfcf85eef5d21981ae7bb3cc4
    37/55:    https://codeload.github.com/doctrine/inflector/legacy.zip/90b2128806bfde671b6952ab8bea493942c1fdae
    38/55:    https://codeload.github.com/doctrine/collections/legacy.zip/6c1e4eef75f310ea1b3e30945e9f06e652128b8a
    39/55:    https://codeload.github.com/Behat/Behat/legacy.zip/a67479a9c6e6d36438b1dfb3f73c2e170dbf0183
    40/55:    https://codeload.github.com/doctrine/annotations/legacy.zip/f25c8aab83e0c3e976fd7d19875f198ccf2f7535
    41/55:    https://codeload.github.com/zordius/lightncandy/legacy.zip/f5d6222c6e91c26a07091f955cbc86d289aeac1e
    42/55:    https://codeload.github.com/doctrine/lexer/legacy.zip/83893c552fd2045dd78aef794c31e694c37c0b8c
    43/55:    https://codeload.github.com/doctrine/cache/legacy.zip/f8af318d14bdb0eff0336795b428b547bd39ccb6
    44/55:    https://codeload.github.com/dcro/php-secure-client-side-sessions/legacy.zip/1b0e48de06f15fee869870707c39585e3158c2b3
    45/55:    https://codeload.github.com/sphereio/commercetools-php-commons/legacy.zip/662dacc263871bbb896aa486662c3f5dab3ca6be
    46/55:    http://example.com/
    47/55:    https://codeload.github.com/guzzle/promises/legacy.zip/b1e1c0d55f8083c71eda2c28c12a228d708294ea
    48/55:    https://codeload.github.com/php-fig/http-message/legacy.zip/85d63699f0dbedb190bbd4b0d2b9dc707ea4c298
    49/55:    https://codeload.github.com/guzzle/guzzle/legacy.zip/c6851d6e48f63b69357cbfa55bca116448140e0c
    50/55:    https://codeload.github.com/twigphp/Twig/legacy.zip/3e5aa30ebfbafd5951fb1b01e338e1800ce7e0e8
    51/55:    https://codeload.github.com/php-fig/log/legacy.zip/fe0936ee26643249e916849d48e3a51d5f5e278b
    52/55:    https://codeload.github.com/sphereio/commercetools-php-sdk/legacy.zip/2442677afac4a4fc2aa61a52a7b50b92f9bd4315
    53/55:    https://codeload.github.com/silexphp/Pimple/legacy.zip/a30f7d6e57565a2e1a316e1baf2a483f788b258a
    54/55:    https://codeload.github.com/guzzle/psr7/legacy.zip/f5d04bdd2881ac89abde1fb78cc234bce24327bb
    55/55:    https://codeload.github.com/symfony/symfony/legacy.zip/979d7323716fec847508eac3e62d59b117612a6e
    Finished: success: 55, failure: 0, total: 55
  - Installing psr/log (1.0.0)
    Loading from cache

  - Installing pimple/pimple (v3.0.2)
    Loading from cache

  - Installing psr/http-message (1.0)
    Loading from cache

  - Installing guzzlehttp/psr7 (1.2.2)
    Loading from cache

  - Installing guzzlehttp/promises (1.0.3)
    Loading from cache

  - Installing guzzlehttp/guzzle (6.1.1)
    Loading from cache

  - Installing commercetools/php-sdk (dev-develop 2442677)
    Cloning 2442677afac4a4fc2aa61a52a7b50b92f9bd4315

  - Installing commercetools/commons (dev-master 662dacc)
    Cloning 662dacc263871bbb896aa486662c3f5dab3ca6be

  - Installing commercetools/sunrise-design (0.16.0)
    Cloning gh-pages

  - Installing dcro/secure-client-side-session-handler (dev-master 1b0e48d)
    Cloning 1b0e48de06f15fee869870707c39585e3158c2b3

  - Installing doctrine/lexer (v1.0.1)
    Loading from cache

  - Installing doctrine/annotations (v1.2.7)
    Loading from cache

  - Installing doctrine/cache (v1.6.0)
    Loading from cache

  - Installing doctrine/collections (v1.3.0)
    Loading from cache

  - Installing doctrine/inflector (v1.1.0)
    Loading from cache

  - Installing zordius/lightncandy (v0.90)
    Loading from cache

  - Installing twig/twig (v1.24.0)
    Loading from cache

  - Installing symfony/polyfill-util (v1.1.0)
    Loading from cache

  - Installing paragonie/random_compat (1.1.5)
    Loading from cache

  - Installing symfony/polyfill-php70 (v1.1.0)
    Loading from cache

  - Installing symfony/polyfill-php56 (v1.1.0)
    Loading from cache

  - Installing symfony/polyfill-mbstring (v1.1.0)
    Loading from cache

  - Installing symfony/symfony (v3.0.1)
    Loading from cache

  - Installing symfony/polyfill-intl-icu (v1.1.0)
    Loading from cache

  - Installing doctrine/common (v2.6.1)
    Loading from cache

  - Installing jays-de/handlebars-bundle (dev-develop 36ee1d5)
    Cloning 36ee1d57370d5e40c1482bc7847b4dfaead77a15

  - Installing sensio/framework-extra-bundle (v3.0.12)
    Loading from cache

  - Installing monolog/monolog (1.17.2)
    Loading from cache

  - Installing symfony/monolog-bundle (v2.8.2)
    Loading from cache

  - Installing behat/gherkin (v4.4.1)
    Loading from cache

  - Installing behat/mink (dev-master da03bb9)
    Cloning da03bb9e7ffa8a45007e61988215d1ab569480c1

  - Installing behat/transliterator (v1.1.0)
    Loading from cache

  - Installing behat/behat (v3.1.0rc1)
    Loading from cache

  - Installing behat/mink-extension (dev-master 296445c)
    Cloning 296445cec02e36836a6298452631be8e00b1e13a

  - Installing instaclick/php-webdriver (1.4.3)
    Loading from cache

  - Installing behat/mink-selenium2-driver (dev-master bedbf19)
    Cloning bedbf1999c7ba1bc6921b30ee2eadf383e7ff5c9

  - Installing commercetools/sunrise-scenarios (dev-behat ddf4c10)
    Cloning ddf4c1030cda238b0576aa6d40e6379174c50a29

  - Installing heroku/heroku-buildpack-php (v91)
    Loading from cache

  - Installing phpdocumentor/reflection-docblock (2.0.4)
    Loading from cache

  - Installing phpunit/php-token-stream (1.4.8)
    Loading from cache

  - Installing sebastian/version (1.0.6)
    Loading from cache

  - Installing sebastian/global-state (1.1.1)
    Loading from cache

  - Installing sebastian/recursion-context (1.0.2)
    Loading from cache

  - Installing sebastian/exporter (1.2.1)
    Loading from cache

  - Installing sebastian/environment (1.3.3)
    Loading from cache

  - Installing sebastian/diff (1.4.1)
    Loading from cache

  - Installing sebastian/comparator (1.2.0)
    Loading from cache

  - Installing phpunit/php-text-template (1.2.1)
    Loading from cache

  - Installing doctrine/instantiator (1.0.5)
    Loading from cache

  - Installing phpunit/phpunit-mock-objects (2.3.8)
    Loading from cache

  - Installing phpunit/php-timer (1.0.7)
    Loading from cache

  - Installing phpunit/php-file-iterator (1.4.1)
    Loading from cache

  - Installing phpunit/php-code-coverage (2.2.4)
    Loading from cache

  - Installing phpspec/prophecy (v1.5.0)
    Loading from cache

  - Installing phpunit/phpunit (4.8.21)
    Loading from cache

paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
sensio/framework-extra-bundle suggests installing symfony/psr-http-message-bridge (To use the PSR-7 converters)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing raven/raven (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing videlalvaro/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
behat/mink suggests installing behat/mink-browserkit-driver (extremely fast headless driver for Symfony\Kernel-based apps (Sf2, Silex))
behat/mink suggests installing behat/mink-goutte-driver (fast headless driver for any app without JS emulation)
behat/mink suggests installing behat/mink-zombie-driver (fast and JS-enabled headless driver for any app (requires node.js))
behat/behat suggests installing behat/symfony2-extension (for integration with Symfony2 web framework)
behat/behat suggests installing behat/yii-extension (for integration with Yii web framework)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Generating autoload files
hirak commented 8 years ago

This is not a bug.