<br><br><div class="gmail_quote">On Wed, Jul 11, 2012 at 8:09 PM, yasitha pandithawatta <span dir="ltr"><<a href="mailto:yasitha4@gmail.com" target="_blank">yasitha4@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div><div class="h5">On Wed, Jul 11, 2012 at 7:18 PM, Michal Čihař <span dir="ltr"><<a href="mailto:michal@cihar.com" target="_blank">michal@cihar.com</a>></span> wrote:<br></div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi<br>
<br>
Dne Wed, 11 Jul 2012 18:50:45 +0530<br>
yasitha pandithawatta <<a href="mailto:yasitha4@gmail.com" target="_blank">yasitha4@gmail.com</a>> napsal(a):<br>
<div><br>
> That is the way I am using too. But after 10 tests it keep waiting for long<br>
> time. Nothing happens.<br>
> So I used to run files by files. That may the case I missed those failures.<br>
<br>
</div>Well yes, the test takes too long this way (it takes about 20 minutes on<br>
<a href="http://ci.phpmyadmin.net" target="_blank">ci.phpmyadmin.net</a>). I have no clue why this happens, but it did not<br>
happen few months ago (I think it started with some phpunit update,<br>
AFAIR removing php-xdebug helped, but that's not a solution). In case<br>
you would be able to figure out why does this happen, it would be great.<br>
Otherwise we have to live with too long running testsuite.<br>
<div><div><br>
--<br>
Michal Čihař | <a href="http://cihar.com" target="_blank">http://cihar.com</a> | <a href="http://phpmyadmin.cz" target="_blank">http://phpmyadmin.cz</a><br>
</div></div><br></div></div>------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>_______________________________________________<br>
Phpmyadmin-devel mailing list<br>
<a href="mailto:Phpmyadmin-devel@lists.sourceforge.net" target="_blank">Phpmyadmin-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</a><br>
<br></blockquote></div><br>Hi Michal,<div><br></div><div>Thanks for the reply. I kept it around 20 minutes and finally got it run. I didn't wait much time earlier since normally it won't take much time. Problem is with only few test cases. If we can identify those test cases, probably can fix it. I'll try to find it. It is better to fix it because then everybody can run whole test suit before committing. This will reduce the test failures caused by day to day commits. So we can get the real use of testing.</div>
<div><br clear="all"><div>Regards,</div><div class="im">-- <br><span style="font-family:arial,sans-serif;font-size:13.2px;border-collapse:collapse;color:rgb(136,136,136)">Yasitha Pandithawatta <br>Undergraduate<br>Computer Science and Engineering Department<br>
University of Moratuwa<br>Sri Lanka</span><br>
</div></div>
</blockquote></div><br>Hi Michal,<div><br></div><div>I found the reason for the test takes too much time. It because of ob_start() method. This method is calling in two place in whole test suit. </div><div><br></div><div>
1. testAddRule in PMA_Advisor_test.php with data set #6. There it calls the ruleExprEvaluate() and it has ob_start() call.</div><div> </div><div> <i>ob_start();</i></div><div><i> eval('$value = '.$expr.';');</i></div>
<div><i> $err = ob_get_contents();</i></div><div><i> ob_end_clean();</i></div><div><i><br></i></div><div>2. start() method in OutputBuffering.class.php. It has the same method call. This method calls when method PMA_fatalError calls. It includes the ./libraries/error.inc.php file and it initiate the PMA_Response object. OutputBuffering is initiate and start method is called in the PMA_Response construct. PMA_fatalError_test.php and PMA_warnMissingExtension_test.php test classes calls the PMA_fatalError method.</div>
<div><br></div><div>I found the exact place by debugging and running whole test case. When those test cases are commented it takes only less than 1 minute to run the whole test suit. :-)</div><div><br></div><div>Still I don't have an idea why this happens and it says ob_start() is having some sort of performance issues. Any idea on how fix this?</div>
<div><br></div><div>BTW I have submitted my mid evaluation form.</div><div><br></div><div>Regards,</div><div>-- <br><span style="font-family:arial,sans-serif;font-size:13.2px;border-collapse:collapse;color:rgb(136,136,136)">Yasitha Pandithawatta <br>
Undergraduate<br>Computer Science and Engineering Department<br>University of Moratuwa<br>Sri Lanka</span><br>
</div>