# t7063-status-untracked-cache.sh test failure on next

5 messages from 2015-10-21 to 2015-10-21. Participants: Ramsay Jones, Torsten Bögershausen, David Turner.
Thread: https://gitlist.dev/t/40608

## Ramsay Jones, 2015-10-21 14:37

Subject: t7063-status-untracked-cache.sh test failure on next
Message-ID: <5627A31C.10906@ramsayjones.plus.com>
URL: https://gitlist.dev/e/5627A31C.10906%40ramsayjones.plus.com

```
Hi Junio,

While testing the next branch today, I had a test failure, viz:

    $ tail ntest-out-fail
    Test Summary Report
    -------------------
    t7063-status-untracked-cache.sh                  (Wstat: 256 Tests: 32 Failed: 22)
      Failed tests:  1-18, 20-21, 25, 29
      Non-zero exit status: 1
    Files=726, Tests=13035, 394 wallclock secs ( 3.61 usr  0.51 sys + 82.93 cusr 256.21 csys = 343.26 CPU)
    Result: FAIL
    make[1]: *** [prove] Error 1
    make[1]: Leaving directory `/home/ramsay/git/t'
    make: *** [test] Error 2
    $ 

However, I have not been able to reproduce the failure, so it
seems to be an intermittent fault. (Unfortunately, I trashed
the 'trash' directory before thinking to save it - although
I almost always find it useless for debugging if you haven't
run the test with '-i -v' anyway.)

So, this is just a 'heads up', since I can't debug it. :(

ATB,
Ramsay Jones

```

## Torsten Bögershausen, 2015-10-21 16:05

Subject: Re: t7063-status-untracked-cache.sh test failure on next
Message-ID: <5627B7DD.3020909@web.de>
URL: https://gitlist.dev/e/5627B7DD.3020909%40web.de
In-Reply-To: <5627A31C.10906@ramsayjones.plus.com>

```
On 21.10.15 16:37, Ramsay Jones wrote:
> Hi Junio,
> 
> While testing the next branch today, I had a test failure, viz:
> 
>     $ tail ntest-out-fail
>     Test Summary Report
>     -------------------
>     t7063-status-untracked-cache.sh                  (Wstat: 256 Tests: 32 Failed: 22)

Does this patch help ?
(Recently send & tested by David. I just copy & paste the diff)
[]
 
Signed-off-by: David Turner <dturner@twopensource.com>
---
 t/t7063-status-untracked-cache.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/t/t7063-status-untracked-cache.sh b/t/t7063-status-untracked-cache.sh
index 37a24c1..0e8d0d4 100755
--- a/t/t7063-status-untracked-cache.sh
+++ b/t/t7063-status-untracked-cache.sh
@@ -412,7 +412,9 @@ test_expect_success 'create/modify files, some of which are gitignored' '
 	echo two bis >done/two &&
 	echo three >done/three && # three is gitignored
 	echo four >done/four && # four is gitignored at a higher level
-	echo five >done/five # five is not gitignored
+	echo five >done/five && # five is not gitignored
+	echo test >base && #we need to ensure that the root dir is touched
+	rm base
 '

```

## Ramsay Jones, 2015-10-21 16:22

Subject: Re: t7063-status-untracked-cache.sh test failure on next
Message-ID: <5627BBE2.9000306@ramsayjones.plus.com>
URL: https://gitlist.dev/e/5627BBE2.9000306%40ramsayjones.plus.com
In-Reply-To: <5627B7DD.3020909@web.de>

```


On 21/10/15 17:05, Torsten Bögershausen wrote:
> On 21.10.15 16:37, Ramsay Jones wrote:
>> Hi Junio,
>>
>> While testing the next branch today, I had a test failure, viz:
>>
>>     $ tail ntest-out-fail
>>     Test Summary Report
>>     -------------------
>>     t7063-status-untracked-cache.sh                  (Wstat: 256 Tests: 32 Failed: 22)
> 
> Does this patch help ?
> (Recently send & tested by David. I just copy & paste the diff)
> []
>  

No, that patch is already in next and was part of the build
that failed:

    $ git log -1 --oneline 9b680fbd3
    9b680fb t7063: fix flaky untracked-cache test
    $ git branch --contains 9b680fbd3
    * next
      pu
    $ 

Again, I haven't been able to reproduce the failure ...

[I should have said the this is today's next branch
@ 3b31934 Sync with master. This is on Linux Mint 17.2]

Thanks.

ATB,
Ramsay Jones


> Signed-off-by: David Turner <dturner@twopensource.com>
> ---
>  t/t7063-status-untracked-cache.sh | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/t/t7063-status-untracked-cache.sh b/t/t7063-status-untracked-cache.sh
> index 37a24c1..0e8d0d4 100755
> --- a/t/t7063-status-untracked-cache.sh
> +++ b/t/t7063-status-untracked-cache.sh
> @@ -412,7 +412,9 @@ test_expect_success 'create/modify files, some of which are gitignored' '
>  	echo two bis >done/two &&
>  	echo three >done/three && # three is gitignored
>  	echo four >done/four && # four is gitignored at a higher level
> -	echo five >done/five # five is not gitignored
> +	echo five >done/five && # five is not gitignored
> +	echo test >base && #we need to ensure that the root dir is touched
> +	rm base
>  '
> 
> 

```

## David Turner, 2015-10-21 17:50

Subject: Re: t7063-status-untracked-cache.sh test failure on next
Message-ID: <1445449800.8302.12.camel@twopensource.com>
URL: https://gitlist.dev/e/1445449800.8302.12.camel%40twopensource.com
In-Reply-To: <5627B7DD.3020909@web.de>

```
On Wed, 2015-10-21 at 18:05 +0200, Torsten Bögershausen wrote:
> On 21.10.15 16:37, Ramsay Jones wrote:
> > Hi Junio,
> > 
> > While testing the next branch today, I had a test failure, viz:
> > 
> >     $ tail ntest-out-fail
> >     Test Summary Report
> >     -------------------
> >     t7063-status-untracked-cache.sh                  (Wstat: 256 Tests: 32 Failed: 22)
> 
> Does this patch help ?
> (Recently send & tested by David. I just copy & paste the diff)

My patch fixes one of the tests, but Ramsay has a zillion failures
(presumably because test 1 fails and most everything else follows from
that).

That test could fail if your clock were running fast and you had
1-second resolution timetamps on your filesystem and you were somewhat
unlucky.  

```

## Ramsay Jones, 2015-10-21 19:51

Subject: Re: t7063-status-untracked-cache.sh test failure on next
Message-ID: <5627ECC4.6030304@ramsayjones.plus.com>
URL: https://gitlist.dev/e/5627ECC4.6030304%40ramsayjones.plus.com
In-Reply-To: <1445449800.8302.12.camel@twopensource.com>

```


On 21/10/15 18:50, David Turner wrote:
> On Wed, 2015-10-21 at 18:05 +0200, Torsten Bögershausen wrote:
>> On 21.10.15 16:37, Ramsay Jones wrote:
>>> Hi Junio,
>>>
>>> While testing the next branch today, I had a test failure, viz:
>>>
>>>     $ tail ntest-out-fail
>>>     Test Summary Report
>>>     -------------------
>>>     t7063-status-untracked-cache.sh                  (Wstat: 256 Tests: 32 Failed: 22)
>>
>> Does this patch help ?
>> (Recently send & tested by David. I just copy & paste the diff)
> 
> My patch fixes one of the tests, but Ramsay has a zillion failures
> (presumably because test 1 fails and most everything else follows from
> that).
> 
> That test could fail if your clock were running fast and you had
> 1-second resolution timetamps on your filesystem and you were somewhat
> unlucky.  

yep. I've just stopped running the test in a loop after about an hour.
In that time it has executed the test about 130+ times (yeah, I forgot
the count), with no failures. I'm going to give up now and declare that
I was simply unlucky! :-D

ATB,
Ramsay Jones

```
