{"thread":{"id":"31198","subject":"test t1050.large fails","startedAt":"2012-08-07T03:13:48Z","lastAt":"2012-08-07T03:13:48Z","messageCount":1,"participants":["Ali Tofigh"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"196585","messageId":"CAD=7RJaz3rvQ-UnTG-DhMCQaecFMd5JevRwGaTmgjYiDtj2nFw@mail.gmail.com","threadId":"31198","inReplyTo":null,"subject":"test t1050.large fails","fromName":"Ali Tofigh","fromEmail":"alix.tofigh@gmail.com","sentAt":"2012-08-07T03:13:48Z","receivedAt":"2012-08-07T03:13:48Z","isPatch":false,"sender":{"key":"alix.tofigh@gmail.com","avatar":null},"body":"I'm trying to compile git from source on a linux machine and \"make\ntest\" fails unexpectedly. Specifically test t1050.large.sh fails\n(details below). The test fails both in version 1.7.11.4 and on the\nmaster branch. Can I trust and use the build? if not, could someone\nhelp me figure out what is going on?\n\nBelow are the contents of the test output (t1050-large.out):\n\n/ali\n\n>> cat test-results/t1050-large.out\nInitialized empty Git repository in\n/usr/local/pkgs/repositories/git/t/trash directory.t1050-large/.git/\nexpecting success:\n        # clone does not allow us to pass core.bigfilethreshold to\n        # new repos, so set core.bigfilethreshold globally\n        git config --global core.bigfilethreshold 200k &&\n        echo X | dd of=large1 bs=1k seek=2000 &&\n        echo X | dd of=large2 bs=1k seek=2000 &&\n        echo X | dd of=large3 bs=1k seek=2000 &&\n        echo Y | dd of=huge bs=1k seek=2500 &&\n        GIT_ALLOC_LIMIT=1500 &&\n        export GIT_ALLOC_LIMIT\n\n0+1 records in\n0+1 records out\n2 bytes (2 B) copied, 0.000303677 s, 6.6 kB/s\n0+1 records in\n0+1 records out\n2 bytes (2 B) copied, 0.00026004 s, 7.7 kB/s\n0+1 records in\n0+1 records out\n2 bytes (2 B) copied, 0.00024059 s, 8.3 kB/s\n0+1 records in\n0+1 records out\n2 bytes (2 B) copied, 0.00027323 s, 7.3 kB/s\nok 1 - setup\n\nexpecting success:\n        git add large1 huge large2 &&\n        # make sure we got a single packfile and no loose objects\n        bad= count=0 idx= &&\n        for p in .git/objects/pack/pack-*.pack\n        do\n                count=$(( $count + 1 ))\n                if test -f \"$p\" && idx=${p%.pack}.idx && test -f \"$idx\"\n                then\n                        continue\n                fi\n                bad=t\n        done &&\n        test -z \"$bad\" &&\n        test $count = 1 &&\n        cnt=$(git show-index <\"$idx\" | wc -l) &&\n        test $cnt = 2 &&\n        for l in .git/objects/??/??????????????????????????????????????\n        do\n                test -f \"$l\" || continue\n                bad=t\n        done &&\n        test -z \"$bad\" &&\n\n        # attempt to add another copy of the same\n        git add large3 &&\n        bad= count=0 &&\n        for p in .git/objects/pack/pack-*.pack\n        do\n                count=$(( $count + 1 ))\n                if test -f \"$p\" && idx=${p%.pack}.idx && test -f \"$idx\"\n                then\n                        continue\n                fi\n                bad=t\n        done &&\n        test -z \"$bad\" &&\n        test $count = 1\n\nok 2 - add a large file or two\n\nexpecting success:\n        large1=$(git rev-parse :large1) &&\n        git update-index --add --cacheinfo 100644 $large1 another &&\n        git checkout another &&\n        cmp large1 another ;# this must not be test_cmp\n\nok 3 - checkout a large file\n\nexpecting success:\n        test_create_repo mid &&\n        (\n                cd mid &&\n                git config core.bigfilethreshold 64k &&\n                git config pack.packsizelimit 256k &&\n\n                # mid1 and mid2 will fit within 256k limit but\n                # appending mid3 will bust the limit and will\n                # result in a separate packfile.\n                test-genrandom \"a\" $(( 66 * 1024 )) >mid1 &&\n                test-genrandom \"b\" $(( 80 * 1024 )) >mid2 &&\n                test-genrandom \"c\" $(( 128 * 1024 )) >mid3 &&\n                git add mid1 mid2 mid3 &&\n\n                count=0\n                for pi in .git/objects/pack/pack-*.idx\n                do\n                        test -f \"$pi\" && count=$(( $count + 1 ))\n                done &&\n                test $count = 2 &&\n\n                (\n                        git hash-object --stdin <mid1\n                        git hash-object --stdin <mid2\n                        git hash-object --stdin <mid3\n                ) |\n                sort >expect &&\n\n                for pi in .git/objects/pack/pack-*.idx\n                do\n                        git show-index <\"$pi\"\n                done |\n                sed -e \"s/^[0-9]* \\([0-9a-f]*\\) .*/\\1/\" |\n                sort >actual &&\n\n                test_cmp expect actual\n        )\n\nInitialized empty Git repository in\n/usr/local/pkgs/repositories/git/t/trash\ndirectory.t1050-large/mid/.git/\nfatal: Unexpected checksum for .git/objects/pack/tmp_pack_ImJEj4 (disk\ncorruption?)\nnot ok - 4 packsize limit\n#\n#               test_create_repo mid &&\n#               (\n#                       cd mid &&\n#                       git config core.bigfilethreshold 64k &&\n#                       git config pack.packsizelimit 256k &&\n#\n#                       # mid1 and mid2 will fit within 256k limit but\n#                       # appending mid3 will bust the limit and will\n#                       # result in a separate packfile.\n#                       test-genrandom \"a\" $(( 66 * 1024 )) >mid1 &&\n#                       test-genrandom \"b\" $(( 80 * 1024 )) >mid2 &&\n#                       test-genrandom \"c\" $(( 128 * 1024 )) >mid3 &&\n#                       git add mid1 mid2 mid3 &&\n#\n#                       count=0\n#                       for pi in .git/objects/pack/pack-*.idx\n#                       do\n#                               test -f \"$pi\" && count=$(( $count + 1 ))\n#                       done &&\n#                       test $count = 2 &&\n#\n#                       (\n#                               git hash-object --stdin <mid1\n#                               git hash-object --stdin <mid2\n#                               git hash-object --stdin <mid3\n#                       ) |\n#                       sort >expect &&\n#\n#                       for pi in .git/objects/pack/pack-*.idx\n#                       do\n#                               git show-index <\"$pi\"\n#                       done |\n#                       sed -e \"s/^[0-9]* \\([0-9a-f]*\\) .*/\\1/\" |\n#                       sort >actual &&\n#\n#                       test_cmp expect actual\n#               )\n#\n"}]}