# sparse-checkout test failures [powerpc-darwin8]

4 messages from 2012-04-04 to 2012-04-05. Participants: David Fang, Junio C Hamano, Nguyen Thai Ngoc Duy.
Thread: https://gitlist.dev/t/30149

## David Fang, 2012-04-04 20:20

Subject: sparse-checkout test failures [powerpc-darwin8]
Message-ID: <Pine.LNX.4.64.1204041616001.16407@hal-00.csl.cornell.edu>
URL: https://gitlist.dev/e/Pine.LNX.4.64.1204041616001.16407%40hal-00.csl.cornell.edu

```
Hi,
 	With git 1.7.9.4, I'm seeing test failures with
t1011-read-tree-sparse-checkout.sh.

not ok - 16 read-tree adds to worktree, dirty case
#
#               echo init.t >.git/info/sparse-checkout &&
#               git checkout -f removed &&
#               mkdir sub &&
#               echo dirty >sub/added &&
#               read_tree_u_must_succeed -u -m HEAD^ &&
#               grep -q dirty sub/added
#
not ok - 17 index removal and worktree narrowing at the same time
#
#               >empty &&
#               echo init.t >.git/info/sparse-checkout &&
#               echo sub/added >>.git/info/sparse-checkout &&
#               git checkout -f top &&
#               echo init.t >.git/info/sparse-checkout &&
#               git checkout removed &&
#               git ls-files sub/added >result &&
#               test ! -f sub/added &&
#               test_cmp empty result
#
not ok - 18 read-tree --reset removes outside worktree
#
#               >empty &&
#               echo init.t >.git/info/sparse-checkout &&
#               git checkout -f top &&
#               git reset --hard removed &&
#               git ls-files sub/added >result &&
#               test_cmp empty result
#
not ok - 19 print errors when failed to update worktree
#
#               echo sub >.git/info/sparse-checkout &&
#               git checkout -f init &&
#               mkdir sub &&
#               touch sub/added sub/addedtoo &&
#               test_must_fail git checkout top 2>actual &&
#               cat >expected <<\EOF &&
#       error: The following untracked working tree files would be 
overwritten b
y checkout:
#               sub/added
#               sub/addedtoo
#       Please move or remove them before you can switch branches.
#       Aborting
#       EOF
#               test_cmp expected actual
#
# failed 5 among 19 test(s)
1..19
make[2]: *** [t1011-read-tree-sparse-checkout.sh] Error 1


not ok - 16 not just commits
#
#               echo replaced >file &&
#               git add file &&
#               REPLACED=$(git rev-parse :file) &&
#               mv file file.replaced &&
#
#               echo original >file &&
#               git add file &&
#               ORIGINAL=$(git rev-parse :file) &&
#               git update-ref refs/replace/$ORIGINAL $REPLACED &&
#               mv file file.original &&
#
#               git checkout file &&
#               test_cmp file.replaced file
#
# failed 1 among 16 test(s)
1..16
make[2]: *** [t6050-replace.sh] Error 1


Everything else that's "not ok" is a known breakage.

[from http://paste.lisp.org/display/128628]

Any idea what's going wrong?
Anyone else seeing these failures?

Fang


-- 
David Fang
http://www.csl.cornell.edu/~fang/

```

## Junio C Hamano, 2012-04-04 21:34

Subject: Re: sparse-checkout test failures [powerpc-darwin8]
Message-ID: <7v1uo389l8.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7v1uo389l8.fsf%40alter.siamese.dyndns.org
In-Reply-To: <Pine.LNX.4.64.1204041616001.16407@hal-00.csl.cornell.edu>

```
David Fang <fang@csl.cornell.edu> writes:

> 	With git 1.7.9.4, I'm seeing test failures with
> t1011-read-tree-sparse-checkout.sh.

Hrm.  Do you mean 1.7.9 worked and 1.7.9.4 doesn't, or you just happened
to try 1.7.9.4 and do not know if this is a regression?

I do not have any Darwin or PowerPC boxes, but the answer to the above may
help others who do to help diagnosing the issue further.

Thanks.

```

## David Fang, 2012-04-04 21:41

Subject: Re: sparse-checkout test failures [powerpc-darwin8]
Message-ID: <Pine.LNX.4.64.1204041736170.16407@hal-00.csl.cornell.edu>
URL: https://gitlist.dev/e/Pine.LNX.4.64.1204041736170.16407%40hal-00.csl.cornell.edu
In-Reply-To: <7v1uo389l8.fsf@alter.siamese.dyndns.org>

```
> David Fang <fang@csl.cornell.edu> writes:
>> 	With git 1.7.9.4, I'm seeing test failures with
>> t1011-read-tree-sparse-checkout.sh.
>
> Hrm.  Do you mean 1.7.9 worked and 1.7.9.4 doesn't, or you just happened
> to try 1.7.9.4 and do not know if this is a regression?
> I do not have any Darwin or PowerPC boxes, but the answer to the above may
> help others who do to help diagnosing the issue further.

Unfortunately, I didn't try any of the earlier 1.7.9.x releases, the 
previous one I tested was 1.7.8.4, which passed all tests (except for 
known breakages, and a few other disabled tests).

-- 
David Fang
http://www.csl.cornell.edu/~fang/

```

## Nguyen Thai Ngoc Duy, 2012-04-05 05:35

Subject: Re: sparse-checkout test failures [powerpc-darwin8]
Message-ID: <CACsJy8CTvXUq6W1tqXb0061Z5aFtvG1O8LkZuxXCfbQ909rHOQ@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8CTvXUq6W1tqXb0061Z5aFtvG1O8LkZuxXCfbQ909rHOQ%40mail.gmail.com
In-Reply-To: <Pine.LNX.4.64.1204041736170.16407@hal-00.csl.cornell.edu>

```
On Thu, Apr 5, 2012 at 4:41 AM, David Fang <fang@csl.cornell.edu> wrote:
>> David Fang <fang@csl.cornell.edu> writes:
>>>
>>>        With git 1.7.9.4, I'm seeing test failures with
>>> t1011-read-tree-sparse-checkout.sh.
>>
>>
>> Hrm.  Do you mean 1.7.9 worked and 1.7.9.4 doesn't, or you just happened
>> to try 1.7.9.4 and do not know if this is a regression?
>> I do not have any Darwin or PowerPC boxes, but the answer to the above may
>> help others who do to help diagnosing the issue further.
>
>
> Unfortunately, I didn't try any of the earlier 1.7.9.x releases, the
> previous one I tested was 1.7.8.4, which passed all tests (except for known
> breakages, and a few other disabled tests).

Please try to bisect if you have time, or at least v1.7.9, and run
those two tests with "-v".
-- 
Duy

```
