Hi there,
On my computer there is a problem with the unit tests for "Advisor". If I just run the advisor test, everything is fine, it's run very quickly and succeeds. But if I run all unit tests in one go, then the "Advisor" unit test takes over a minute and eats up well over 1GB of my memory (which is unacceptable). However I can't see this issue on ci.phpmyadmin.net, where all tests complete within 25s and using only 85MB of memory. Can anyone else confirm this behaviour? Any ideas what could be the cause of this problem?
I've attached 2 screenshots as proof, one at the beginning of the tests and one just before the Advisor test has finished running.
Rouslan
On Tue, Aug 16, 2011 at 4:59 PM, Rouslan Placella rouslan@placella.com wrote:
Hi there,
On my computer there is a problem with the unit tests for "Advisor". If I just run the advisor test, everything is fine, it's run very quickly and succeeds. But if I run all unit tests in one go, then the "Advisor" unit test takes over a minute and eats up well over 1GB of my memory (which is unacceptable). However I can't see this issue on ci.phpmyadmin.net, where all tests complete within 25s and using only 85MB of memory. Can anyone else confirm this behaviour? Any ideas what could be the cause of this problem?
I had a look at the code and test, but I don't see anything suspicious. How about running a debugger and observing the code step by step?
I've attached 2 screenshots as proof, one at the beginning of the tests and one just before the Advisor test has finished running.
Rouslan
uberSVN's rich system and user administration capabilities and model configuration take the hassle out of deploying and managing Subversion and the tools developers use with it. Learn more about uberSVN and get a free download at: http://p.sf.net/sfu/wandisco-dev2dev
Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
On Tue, 2011-08-16 at 17:33 +0300, Tyron Madlener wrote:
On Tue, Aug 16, 2011 at 4:59 PM, Rouslan Placella rouslan@placella.com wrote:
Hi there,
On my computer there is a problem with the unit tests for "Advisor". If I just run the advisor test, everything is fine, it's run very quickly and succeeds. But if I run all unit tests in one go, then the "Advisor" unit test takes over a minute and eats up well over 1GB of my memory (which is unacceptable). However I can't see this issue on ci.phpmyadmin.net, where all tests complete within 25s and using only 85MB of memory. Can anyone else confirm this behaviour? Any ideas what could be the cause of this problem?
I had a look at the code and test, but I don't see anything suspicious. How about running a debugger and observing the code step by step?
Well, I don't know how to step through the code especially not in php-cli. But I ran xdebug on the unit tests and fed it's output to webgrind, still I can't find anything that stands out as a problem. I've attached the output of webgrind, in case someone else can find something interesting in it.
I've attached 2 screenshots as proof, one at the beginning of the tests and one just before the Advisor test has finished running.
Hi
Dne Tue, 16 Aug 2011 14:59:30 +0100 Rouslan Placella rouslan@placella.com napsal(a):
On my computer there is a problem with the unit tests for "Advisor". If I just run the advisor test, everything is fine, it's run very quickly and succeeds. But if I run all unit tests in one go, then the "Advisor" unit test takes over a minute and eats up well over 1GB of my memory (which is unacceptable). However I can't see this issue on ci.phpmyadmin.net, where all tests complete within 25s and using only 85MB of memory. Can anyone else confirm this behaviour? Any ideas what could be the cause of this problem?
I did not have any issue with those tests when I tested them locally. Can you try disabling individual tests from Advisor test suite and see which one is actually causing this?
On Wed, 2011-08-17 at 08:46 +0200, Michal Čihař wrote:
Hi
Dne Tue, 16 Aug 2011 14:59:30 +0100 Rouslan Placella rouslan@placella.com napsal(a):
On my computer there is a problem with the unit tests for "Advisor". If I just run the advisor test, everything is fine, it's run very quickly and succeeds. But if I run all unit tests in one go, then the "Advisor" unit test takes over a minute and eats up well over 1GB of my memory (which is unacceptable). However I can't see this issue on ci.phpmyadmin.net, where all tests complete within 25s and using only 85MB of memory. Can anyone else confirm this behaviour? Any ideas what could be the cause of this problem?
I did not have any issue with those tests when I tested them locally. Can you try disabling individual tests from Advisor test suite and see which one is actually causing this?
It's "testAddRule" that is causing the issue.
Rouslan
Hi
Dne Wed, 17 Aug 2011 10:55:04 +0100 Rouslan Placella rouslan@placella.com napsal(a):
On Wed, 2011-08-17 at 08:46 +0200, Michal Čihař wrote:
Hi
Dne Tue, 16 Aug 2011 14:59:30 +0100 Rouslan Placella rouslan@placella.com napsal(a):
On my computer there is a problem with the unit tests for "Advisor". If I just run the advisor test, everything is fine, it's run very quickly and succeeds. But if I run all unit tests in one go, then the "Advisor" unit test takes over a minute and eats up well over 1GB of my memory (which is unacceptable). However I can't see this issue on ci.phpmyadmin.net, where all tests complete within 25s and using only 85MB of memory. Can anyone else confirm this behaviour? Any ideas what could be the cause of this problem?
I did not have any issue with those tests when I tested them locally. Can you try disabling individual tests from Advisor test suite and see which one is actually causing this?
It's "testAddRule" that is causing the issue.
Strange, I really don't see what could be causing troubles there. It involves calling gettext and preg, that's probably only places where it could possibly consume some memory (though I can hardly see why it would consume that much).