-
Notifications
You must be signed in to change notification settings - Fork 18
Disable Kiss Tracking tests on Travis #1046
Conversation
@njam @kris-lab please review. This is the result of a long series of trials and errors to find out which tests have been causing the Segfault happening on Travis, with PHP 5.4 and 5.5, after the code coverage analysis. I've used But it seems that neither our own PDO connection Skipping the tests in |
@tomaszdurka could you please have a look into this, too? It looks like an issue with the Redis server and/or with the PHP extension used on Travis. |
It's possible that upgrading phpredis on Travis could fix the problem. See this issue for an example. |
I've tried it out in #1047, it doesn't help. |
Now we get a green build for PHP 5.3, 5.4 and 5.5 (apart from the bug introduced by #1051, which will be fixed in #1053 and is not related to this issue). @njam @tomaszdurka what about merging this PR now? The problem doesn't happen any more in PHP 5.5, probably thanks to an update on Travis. Maybe we can also remove this workaround for PHP 5.4 at some point, after Travis has updated its stack and fixed this issue. What do you think? |
Briefly discussed with Tomasz. Tomasz also noticed that in |
Now I'm deleting this file altogether in |
I've already tried to move the mocking to every single test method, and to place it after the call to |
Conflicts: .travis.yml
I also did some testing (one, two, three), and give up as well.. Notes from removing certain tests (YES means the build suceeds): I would suggest to remove the whole "Kiss"-functionality, wdyt? |
We're not using kiss tracking any more, right? We've replaced it by our own action statistics? So we could probably drop it without hurting too much. But... is it actually related to this issue? No idea... What your tests are showing could also be this simple thing: That we're avoiding the "root cause" – the connection timeout causing the broken pipe in the end – by removing enough tests. Or do you see some common pattern in the tests you've removed to get a green build? If this is the case, we'll run into the same issue again as we add some more unit tests, independently of what we're actually testing. We would have to drop the whole AWS tests to get rid of that (if the AWS SDK PDO connection is really the problem). So... I would rather suggest to wait and see. We could merge a simple workaround that make the tests pass for the moment, like removing |
What I found out:
I'm not so fond of disabling tests (especially CM_Action_AbstractTest) on 5.4, because we use it in production. I think the chance that we're going to use Kiss-tracking again is very small, by that point they might have changed their API also (hopefully!). |
Well, if it works... but you haven't tested it for now, right? I had to remove |
Conflicts: tests/library/CM/Action/AbstractTest.php tests/travis/php-5.5.ini
The inspection completed: No new issues |
Segfault on PHP 5.4 & 5.5 :( Although |
Removing coverage doesn't help in any way? We might want to remove that anyway -> #1078 |
@fauvel fyi, scrutinizer and code coverage was removed in https://github.com/cargomedia/CM/pull/1078/files |
This reverts commit b9fe749.
Conflicts: .travis.yml
Still segfaulting in PHP 5.4 & 5.5 with:
So the minimal fix I've found with code coverage doesn't work any more without... |
omg :| |
Fixed by #1183? |
Follow-up of #1033 and #1040