Hello,
I would like to understand why the Composer dependencies are taking so much time to download on AppVeyor for my PHP project. The total time is around ~1h which is sick! and usually after that time it freezees. I don't know if it's related to my configuration or maybe the platform.
My config is:
build: false
shallow_clone: true
platform:
- x86
- x64
clone_folder: c:\projects\webrenderer
cache:
#https://getcomposer.org/doc/03-cli.md#composer-cache-dir
- '%LOCALAPPDATA%\Composer\files'
- c:\tools\php -> appveyor.yml
init:
- SET PATH=C:\Program Files\OpenSSL;c:\tools\php;%PATH%
- SET PHP=1
environment:
matrix:
- COMPOSER_OPTIONS: ""
- COMPOSER_OPTIONS: --prefer-lowest --prefer-stable
install:
- IF EXIST c:\tools\php (SET PHP=0)
- IF %PHP%==1 cinst -y OpenSSL.Light
- IF %PHP%==1 cinst -y php
- IF %PHP%==1 cd c:\tools\php
- IF %PHP%==1 copy php.ini-production php.ini /Y
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
- IF %PHP%==1 echo extension_dir=ext >> php.ini
- IF %PHP%==1 echo extension=php_openssl.dll >> php.ini
- IF %PHP%==1 echo extension=php_mbstring.dll >> php.ini
- IF %PHP%==1 echo extension=php_fileinfo.dll >> php.ini
- cd c:\projects\webrenderer
- appveyor DownloadFile https://getcomposer.org/composer.phar
- php composer.phar update %COMPOSER_OPTIONS% --prefer-source --no-interaction --no-progress --profile
test_script:
- cd c:\projects\webrenderer
- vendor\bin\phpunit.bat -c app/ --verbose
Composer partial output in the AppVeyor terminal:
php composer.phar update %COMPOSER_OPTIONS% --prefer-source --no-interaction --no-progress --profile
[6.7MB/4.16s] Loading composer repositories with package information
[6.9MB/5.08s] Updating dependencies (including require-dev)
[755.0MB/105.12s] - Installing symfony/polyfill-mbstring (dev-master 0b6a894)
[755.4MB/105.13s] Cloning 0b6a8940385311a24e060ec1fe35680e17c74497
[755.4MB/114.93s]
[755.4MB/114.93s] - Installing twig/twig (1.x-dev db93842)
[755.4MB/114.93s] Cloning db93842e80d758f6c74c3e1f1f088badb3fc84f0
[755.5MB/129.16s]
[755.5MB/129.16s] - Installing symfony/polyfill-util (dev-master 4271c55)
[755.5MB/129.16s] Cloning 4271c55cbc0a77b2641f861b978123e46b3da969
[755.5MB/140.10s]
[755.5MB/140.10s] - Installing paragonie/random_compat (1.1.0)
[755.5MB/140.10s] Cloning 19f765b66c6fbb56ee3b11bc16d52e38eebdc295
What is the issue ?
Thanks!

#1 Posted by Feodor Fitsner Support staff on 19 Nov, 2015 10:41 AM
What project/build URL is that?
#2 Posted by Rafa on 19 Nov, 2015 10:49 AM
It's https://ci.appveyor.com/project/takeit/web-renderer-j43vp
#3 Posted by Rafa on 23 Nov, 2015 11:22 AM
Hi Feodor,
any idea so far ?
Best Regards
#4 Posted by Feodor Fitsner Support staff on 23 Nov, 2015 06:32 PM
Hi Rafal,
Yes. It looks like the project is too "heavy" for a single CPU core we offer for OSS environment VMs (I logged into VM with RDP and noticed php.exe process was 100% while installing composer dependencies). I've tested on 2 cores and it took pretty reasonable time: https://ci.appveyor.com/project/FeodorFitsner/web-renderer/build/1.0.1
You may get more powerful VM configuration on a paid OSS plan ($29.50/month).
#5 Posted by Rafa on 24 Nov, 2015 08:59 AM
thanks for your help Feodor!
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:02 AM.