? ? ? Failure

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
2 Sep 2016

Summary of Changes

  • "pear/cache_lite": "1.7.16"
  • "pear/cache_lite": "1.8.0"
avatar csthomas csthomas - open - 2 Sep 2016
avatar csthomas csthomas - change - 2 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Sep 2016
Category External Library
avatar joomla-cms-bot joomla-cms-bot - change - 2 Sep 2016
Labels Added: ? ?
avatar andrepereiradasilva
andrepereiradasilva - comment - 2 Sep 2016
  • Applied patch
  • Updated composer composer update
  • Run php libraries/vendor/phpunit/phpunit/phpunit tests/unit/suites/libraries/joomla/cache
  • All unit tests passed and no more php 7.0 Cache_Lite deprecated notice (that existed before this patch)
avatar andrepereiradasilva andrepereiradasilva - test_item - 2 Sep 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 2 Sep 2016

I have tested this item successfully on f5c9b36

as comments above


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11884.

avatar mbabker
mbabker - comment - 2 Sep 2016

This can't be merged. Their repo's composer.json manifest is incorrect. If you look at the PEAR package manifest, in the changelog for the release they indicate bumping to a PHP 5.4 minimum. Also see #10835 (comment)

avatar andrepereiradasilva
andrepereiradasilva - comment - 2 Sep 2016

changelog for the release they indicate bumping to a PHP 5.4 minimum

michael what's the impact of that? Unit tests on Cache_Lite don't run in php 5.3 ?

avatar mbabker
mbabker - comment - 2 Sep 2016

I don't know how Composer handles it, but if our composer.lock file were correctly updated with this change and someone on a PHP 5.3 environment tried to run composer install they would potentially get a message about being unable to install all dependencies. If that happened the entire PHP 5.3 build would fail.

avatar mbabker
mbabker - comment - 2 Sep 2016

If we want to test Cache_Lite 1.8 we'll need a conditional step in the Travis build sequence to update it on-the-fly before running the tests.

avatar csthomas
csthomas - comment - 2 Sep 2016

IMHO No. This PR only remove notice on php7.

avatar andrepereiradasilva
andrepereiradasilva - comment - 2 Sep 2016

i don't know much about composer but isn't it possible to add a separate config for php version in unit tests?
like (note this is just a wild guess)

  "config": {
    "platform": {
      "php": "5.3.10"
    },
    "platform-dev": {
      "php": "5.4"
    },
avatar mbabker
mbabker - comment - 2 Sep 2016

The config key doesn't have a platform-dev key, see https://getcomposer.org/doc/06-config.md

avatar andrepereiradasilva
andrepereiradasilva - comment - 2 Sep 2016

ok thanks michael for the explaining

avatar mbabker
mbabker - comment - 2 Sep 2016

After updating the lock file the PHP 5.3 build doesn't error out, this is most likely because as I pointed out their composer.json manifest is incorrect (it still declares PHP 4.0 as minimum though the PEAR channel declares different).

Still can't say I'm comfortable with that though as the package author has explicitly declared dropping PHP 5.3 support which we are still supporting.

avatar csthomas
csthomas - comment - 2 Sep 2016

Then for the moment I have to close it.

I have checked changes in cache_lite code at https://github.com/pear/Cache_Lite
and the is no reason to bump php version to 5.4 for now, may be later author want to add incompatibility changes.

avatar csthomas
csthomas - comment - 2 Sep 2016

I close it.

avatar csthomas csthomas - change - 2 Sep 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-09-02 19:37:38
Closed_By csthomas
avatar andrepereiradasilva
andrepereiradasilva - comment - 21 Sep 2016

can't this go for 4.0-dev (which is php 5.5+) branch now ?

avatar csthomas
csthomas - comment - 22 Sep 2016

Good point:)

avatar csthomas csthomas - change - 22 Sep 2016
Status Closed New
Closed_Date 2016-09-02 19:37:37
Closed_By csthomas
avatar csthomas csthomas - change - 22 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Sep 2016
Labels Added: ?
avatar csthomas csthomas - change - 22 Sep 2016
Title
Update composer.json - update pear/cache_lite
[4.0] Update composer.json - update pear/cache_lite
avatar csthomas
csthomas - comment - 22 Sep 2016

I have rebased my PR to 4.0-dev branch, but it is probably not enough.

Fixed.

avatar joomla-cms-bot joomla-cms-bot - change - 22 Sep 2016
Labels Added: ?
avatar zero-24 zero-24 - change - 22 Sep 2016
Labels Removed: ?
avatar csthomas
csthomas - comment - 22 Sep 2016

I downloaded composer from https://getcomposer.org/download/
and run as you mentioned but using local version:

$ php composer.phar -V
Composer version 1.2.1 2016-09-12 11:27:19

If changes in libraries/vendor/composer/ClassLoader.php can not be merged then I can try again with composer 1.2.0.

avatar mbabker
mbabker - comment - 22 Sep 2016

Looks fine, hadn't realized 1.2.1 released. The important part was using
at least 1.2.0 since we have the static loader files it generates already
and I didn't want the whole thing to get out of sync along the way.

On Thursday, September 22, 2016, Tomasz Narloch notifications@github.com
wrote:

I downloaded composer from https://getcomposer.org/download/
and run as you mentioned but using local version:

$ php composer.phar -V
Composer version 1.2.1 2016-09-12 11:27:19

If changes in libraries/vendor/composer/ClassLoader.php can not be merged
then I can try again with composer 1.2.0.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#11884 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAWfoRTbhGkKjCBvmTdim03GlTfYhgYoks5qsnUOgaJpZM4Jzj-A
.

avatar zero-24
zero-24 - comment - 22 Sep 2016

@mbabker can you approve the changes than? (else we get the red X in the PR) 😄

avatar mbabker
mbabker - comment - 22 Sep 2016

They need to make that possible via the mobile interface...

avatar zero-24
zero-24 - comment - 22 Sep 2016

I agree 👍

avatar mbabker mbabker - change - 22 Sep 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-09-22 13:47:51
Closed_By mbabker

Add a Comment

Login with GitHub to post a comment