You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@river.apache.org by Patricia Shanahan <pa...@acm.org> on 2011/02/10 22:40:41 UTC

Test speed vs. effectiveness

The investigation that revealed problems in outrigger's FastList and 
some of the corresponding test code started from a single failure of a 
QA test that usually runs correctly. The failure did not reproduce with 
the test as currently checked in. To investigate, I had to drastically 
increase the numbers of entries and threads.

Should I check in more stressful versions of some or all of the 
outrigger stress tests?

Doing so would further slow down QA, by order minutes for each enhanced 
test. On the other hand, I have clear evidence that the current versions 
of the tests have low probability of finding concurrency bugs that could 
be detected by enhanced versions.

Patricia

Re: Test speed vs. effectiveness

Posted by MICHAEL MCGRADY <mm...@topiatechnology.com>.
The tests, I would say, are gold.

MG


On Feb 10, 2011, at 1:40 PM, Patricia Shanahan wrote:

> The investigation that revealed problems in outrigger's FastList and some of the corresponding test code started from a single failure of a QA test that usually runs correctly. The failure did not reproduce with the test as currently checked in. To investigate, I had to drastically increase the numbers of entries and threads.
> 
> Should I check in more stressful versions of some or all of the outrigger stress tests?
> 
> Doing so would further slow down QA, by order minutes for each enhanced test. On the other hand, I have clear evidence that the current versions of the tests have low probability of finding concurrency bugs that could be detected by enhanced versions.
> 
> Patricia

Michael McGrady
Chief Architect
Topia Technology, Inc.
Cel 1.253.720.3365
Work 1.253.572.9712 extension 2037
mmcgrady@topiatechnology.com




Re: Test speed vs. effectiveness

Posted by Dan Creswell <da...@gmail.com>.
Right so probably the best thing to do is get a couple of other opinions.
Write a note up, point a few of us at the code and see what we think.

On 10 February 2011 23:26, Patricia Shanahan <pa...@acm.org> wrote:

> On 2/10/2011 3:22 PM, Dan Creswell wrote:
> ...
>
>  So I would say, add the more stressful versions and don't worry about the
>> time to test too much equally, don't expect to surface all concurrency
>> bugs
>> this way.
>>
> ...
>
> Indeed, the next question is what to do about cases where I strongly
> suspect a concurrency bug based on code reading, but have no failing test
> case at all.
>
> Patricia
>

Re: Test speed vs. effectiveness

Posted by Patricia Shanahan <pa...@acm.org>.
On 2/10/2011 3:22 PM, Dan Creswell wrote:
...
> So I would say, add the more stressful versions and don't worry about the
> time to test too much equally, don't expect to surface all concurrency bugs
> this way.
...

Indeed, the next question is what to do about cases where I strongly 
suspect a concurrency bug based on code reading, but have no failing 
test case at all.

Patricia

Re: Test speed vs. effectiveness

Posted by Dan Creswell <da...@gmail.com>.
Two things:

(1) Adding minutes to test runs is no big deal to me. Every distributed
system I've built ends up being like this in order to cover off failure
scenarios and such. The tests for my paxos implementation total around 4
minutes right now. That excludes a bunch of soak tests that I run separately
and for hours at a time.

(2) Concurrency tests are hit and miss by virtue of the inherent
non-determinism introduced by variation in number of cores, processor speed,
external load, number of threads in the app and operating system
characteristics (e.g. scheduler behaviour). You can run them for hours and
hours and not hit a problem, then re-run them and find a problem in mere
seconds.

So I would say, add the more stressful versions and don't worry about the
time to test too much equally, don't expect to surface all concurrency bugs
this way.

Dan.

On 10 February 2011 21:40, Patricia Shanahan <pa...@acm.org> wrote:

> The investigation that revealed problems in outrigger's FastList and some
> of the corresponding test code started from a single failure of a QA test
> that usually runs correctly. The failure did not reproduce with the test as
> currently checked in. To investigate, I had to drastically increase the
> numbers of entries and threads.
>
> Should I check in more stressful versions of some or all of the outrigger
> stress tests?
>
> Doing so would further slow down QA, by order minutes for each enhanced
> test. On the other hand, I have clear evidence that the current versions of
> the tests have low probability of finding concurrency bugs that could be
> detected by enhanced versions.
>
> Patricia
>

Re: Test speed vs. effectiveness

Posted by Sim IJskes - QCG <si...@qcg.nl>.
On 10-02-11 22:40, Patricia Shanahan wrote:
> The investigation that revealed problems in outrigger's FastList and
> some of the corresponding test code started from a single failure of a
> QA test that usually runs correctly. The failure did not reproduce with
> the test as currently checked in. To investigate, I had to drastically
> increase the numbers of entries and threads.
>
> Should I check in more stressful versions of some or all of the
> outrigger stress tests?
>
> Doing so would further slow down QA, by order minutes for each enhanced
> test. On the other hand, I have clear evidence that the current versions
> of the tests have low probability of finding concurrency bugs that could
> be detected by enhanced versions.

Mark it as temp, reference jira issue, check it in i would say. Doesn't 
matter to me if 12 hours last 10 minutes longer.

Gr. Sim