? ? Success

User tests: Successful: Unsuccessful:

avatar csthomas
csthomas
2 Sep 2016

Pull Request for Issue #11821.

Summary of Changes

Jenkins errors fix for memcache(-d)

Testing Instructions

Jenkins and Travis plus code review.

avatar csthomas csthomas - open - 2 Sep 2016
avatar joomla-cms-bot joomla-cms-bot - change - 2 Sep 2016
Category Unit Tests
avatar joomla-cms-bot joomla-cms-bot - change - 2 Sep 2016
Labels Added: ? ?
avatar csthomas csthomas - change - 2 Sep 2016
The description was changed
avatar csthomas csthomas - change - 2 Sep 2016
Title
[tests] Fix jankins errors and do not call redudant methods for tests
[tests] Fix Jenkins errors and do not call redudant methods for tests
avatar csthomas
csthomas - comment - 3 Sep 2016

Should Redis be blacklisted or not?

I do not blacklist it on JCacheTest and JCacheStorageTest. (because probably it failed without exception)

What extensions are loaded on php on Jenkins? (memcache: yes, memcached: yes, redis: ??)

avatar mbabker
mbabker - comment - 3 Sep 2016

Redis is not set up on that server.

avatar csthomas
csthomas - comment - 3 Sep 2016

Then I will remove Redis from blacklist.
Any other thought about that PR?

avatar csthomas csthomas - change - 3 Sep 2016
Title
[tests] Fix Jenkins errors and do not call redudant methods for tests
[tests] Blacklist memcache(-d) tests on Jenkins and do not call redudant methods for tests
avatar csthomas
csthomas - comment - 3 Sep 2016

I have seen that @rdeutz added different solution, simpler which uses sleep(1) for JHtmlDateTest.
I reverted own changes on my PR.

avatar csthomas csthomas - change - 3 Sep 2016
The description was changed
avatar csthomas csthomas - change - 3 Sep 2016
The description was changed
avatar rdeutz
rdeutz - comment - 3 Sep 2016

I would prefer to have separate env variables and not something based on jenkins as a build env

memcache=yes
memcached=no
....

avatar csthomas
csthomas - comment - 3 Sep 2016

ok, then I remove all blacklist stuff.

avatar csthomas csthomas - change - 3 Sep 2016
Title
[tests] Blacklist memcache(-d) tests on Jenkins and do not call redudant methods for tests
[tests] Remove blacklist for Jenkins and do not call redudant methods for tests
avatar rdeutz
rdeutz - comment - 3 Sep 2016

So memcached is running on jenkins, but still makes sense to make it configurable

avatar csthomas csthomas - change - 3 Sep 2016
Title
[tests] Remove blacklist for Jenkins and do not call redudant methods for tests
[tests] Add support for blacklist handlers from the environment variable and do not call redundant methods
avatar csthomas
csthomas - comment - 3 Sep 2016

@rdeutz I added that functionality, you can test like:

[UPDATED] - use uppercase

$ FILE=0 MEMCACHE=0 APCU=NO REDIS=0 CACHELITE=no MEMCACHED=0 php libraries/vendor/phpunit/phpunit/phpunit tests/unit/suites/libraries/joomla/cache/storage
PHPUnit 4.8.27 by Sebastian Bergmann and contributors.
Warning: The Xdebug extension is not loaded
No code coverage will be generated.

SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS

Time: 107 ms, Memory: 8.00MB

OK, but incomplete, skipped, or risky tests!
Tests: 63, Assertions: 0, Skipped: 63.

avatar csthomas
csthomas - comment - 6 Sep 2016

For my laptop getenv() works but $_ENV not.
What about other servers?

For now memcached storage is not full tested.
Take a look in code coverage at
https://developer.joomla.org/cms-coverage/libraries/joomla/cache/storage/index.html

Memcache storage is ok.
Memcached is not full tested because of old blacklists.

Is something missing in that PR?
What about syntax?

avatar csthomas
csthomas - comment - 6 Sep 2016

After #11583 has been merged joomla does not need blacklists? Am I right?

avatar rdeutz
rdeutz - comment - 6 Sep 2016

@csthomas seems so, thanks anyway

avatar csthomas csthomas - change - 6 Sep 2016
Title
[tests] Add support for blacklist handlers from the environment variable and do not call redundant methods
[tests] Remove cacheTest -> isBlacklisted() method at all
avatar csthomas
csthomas - comment - 6 Sep 2016

Then we can remove it at all.

I have changed code and remove only all isBlacklisted() stuff.

Travis is happy:)
Jenkins should be too.

From now code coverage will be generated for memcached storage.

avatar rdeutz
rdeutz - comment - 6 Sep 2016

Any objections @mbabker @wilsonge ?

avatar mbabker
mbabker - comment - 6 Sep 2016

If it works go with it.

On Tuesday, September 6, 2016, Robert Deutz notifications@github.com
wrote:

Any objections @mbabker https://github.com/mbabker @wilsonge
https://github.com/wilsonge ?


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

avatar rdeutz rdeutz - change - 6 Sep 2016
Status New Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-09-06 16:39:52
Closed_By rdeutz

Add a Comment

Login with GitHub to post a comment