Issue 76 in gvn: unit tests failing with checksum mismatch

0 views
Skip to first unread message

codesite...@google.com

unread,
Aug 30, 2010, 6:57:08 AM8/30/10
to gvn-c...@googlegroups.com
Status: New
Owner: ----

New issue 76 by junk: unit tests failing with checksum mismatch
http://code.google.com/p/gvn/issues/detail?id=76

What steps will reproduce the problem?
1. Run python setup.py build
2. Run python setup.py install
3. Run python runtest

What is the expected output? What do you see instead?

The expected output is that all unittests pass. Currently there are 2
failures out of 29. Testing with python2.4 and python2.6 (made some small
changes to get it to a working state). Here's the output from the failing
tests, with python2.4:
======================================================================
ERROR: intermixed Branch/Submit, including mixed-revision working copies
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gtucker/gvn/gvn-read-only/testing/test_changebranch.py", line
316, in testBranchesAndSubmits
change2 = self.BranchAndAssert('change2', paths2, 'change2 desc')
File "/home/gtucker/gvn/gvn-read-only/testing/test_changebranch.py", line
162, in BranchAndAssert
pool=self.pool)
File "/home/gtucker/gvn/gvn-read-only/build/lib/gvn/changebranch.py",
line 574, in Branch
deltaman.Transmit)
File "/home/gtucker/gvn/gvn-read-only/build/lib/gvn/commit.py", line 196,
in Drive
postfix_txdelta_cb(editor, edit_baton, pool)
File "/home/gtucker/gvn/gvn-read-only/build/lib/gvn/wc.py", line 983, in
Transmit
baton, pool)
File "/usr/lib64/python2.4/site-packages/libsvn/wc.py", line 2563, in
svn_wc_transmit_text_deltas2
return apply(_wc.svn_wc_transmit_text_deltas2, args)
SubversionException: ("Base checksum mismatch
on '/changes/unittest/change2/projects/greek-tree/A/D/G/rho':\n
expected: 82f2211cf4ab22e3555fc7b835fbc604\n actual:
3c92bf774215e28b0176c5778ff2f101\n", 200014)

======================================================================
FAIL: testDiff (test_changebranch.TestChangeBranch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gtucker/gvn/gvn-read-only/testing/test_changebranch.py", line
908, in testDiff
self.assertEqual(''.join(got), expect)
AssertionError: "Index:
greek-tree/A/D/H/chi\n===================================================================\nCannot
display: file marked as a binary type.\n\nProperty changes on:
greek-tree/A/D/H/chi\n___________________________________________________________________\nAdded:
svn:mime-type\n + application/octet-stream\nIndex:
greek-tree/A/mu\n===================================================================\nIndex:
greek-tree/B.new/D.new/gamma\n===================================================================\n---
greek-tree/A/D/gamma\t(^/public/projects/greek-tree/A/D/gamma@4)\n+++
greek-tree/B.new/D.new/gamma\t(^/changes/unittest/Diff/projects/greek-tree/B.new/D.new/gamma@5)\n@@
-1 +1,2 @@\n This is the file 'gamma'.\n+hi\nIndex:
greek-tree/B.new/E/alpha\n===================================================================\n---
greek-tree/A/B/E/alpha\t(^/public/projects/greek-tree/A/B/E/alpha@4)\n+++
greek-tree/B.new/E/alpha\t(^/changes/unittest/Diff/projects/greek-tree/B.new/E/alpha@5)\n@@
-1 +1,2 @@\n This is the file 'alpha'.\n+hi\n\nProperty changes on:
greek-tree/B.new/F\n___________________________________________________________________\nAdded:
testprop\n + testval\nIndex:
greek-tree/B.new/iota\n===================================================================\nIndex:
greek-tree/iota\n===================================================================\n---
greek-tree/iota\t(added)\n+++
greek-tree/iota\t(^/changes/unittest/Diff/projects/greek-tree/iota@5)\n@@
-0,0 +1 @@\n+This is the replaced iota.\n" != "Index:
greek-tree/A/D/H/chi\n===================================================================\nCannot
display: file marked as a binary type.\n\nProperty changes on:
greek-tree/A/D/H/chi\n___________________________________________________________________\nAdded:
svn:mime-type\n + application/octet-stream\nIndex:
greek-tree/A/mu\n===================================================================\n\nProperty
changes on:
greek-tree/A/mu\n___________________________________________________________________\nAdded:
svn:mergeinfo\n + \n\nProperty changes on:
greek-tree/B.new\n___________________________________________________________________\nAdded:
svn:mergeinfo\n + \n\nProperty changes on:
greek-tree/B.new/D.new\n___________________________________________________________________\nAdded:
svn:mergeinfo\n + \nIndex:
greek-tree/B.new/D.new/gamma\n===================================================================\n---
greek-tree/A/D/gamma\t(^/public/projects/greek-tree/A/D/gamma@4)\n+++
greek-tree/B.new/D.new/gamma\t(^/changes/unittest/Diff/projects/greek-tree/B.new/D.new/gamma@5)\n@@
-1 +1,2 @@\n This is the file 'gamma'.\n+hi\nIndex:
greek-tree/B.new/E/alpha\n===================================================================\n---
greek-tree/A/B/E/alpha\t(^/public/projects/greek-tree/A/B/E/alpha@4)\n+++
greek-tree/B.new/E/alpha\t(^/changes/unittest/Diff/projects/greek-tree/B.new/E/alpha@5)\n@@
-1 +1,2 @@\n This is the file 'alpha'.\n+hi\n\nProperty changes on:
greek-tree/B.new/F\n___________________________________________________________________\nAdded:
testprop\n + testval\nIndex:
greek-tree/B.new/iota\n===================================================================\n\nProperty
changes on:
greek-tree/B.new/iota\n___________________________________________________________________\nAdded:
svn:mergeinfo\n + \nIndex:
greek-tree/iota\n===================================================================\n---
greek-tree/iota\t(added)\n+++
greek-tree/iota\t(^/changes/unittest/Diff/projects/greek-tree/iota@5)\n@@
-0,0 +1 @@\n+This is the replaced iota.\n"

and

======================================================================
ERROR: testBasic (test_wc.TestEdit)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/gtucker/gvn/gvn-read-only/testing/test_wc.py", line 447, in
testBasic
action, deltaman.Transmit, pool)
File "/home/gtucker/gvn/gvn-read-only/build/lib/gvn/commit.py", line 196,
in Drive
postfix_txdelta_cb(editor, edit_baton, pool)
File "/home/gtucker/gvn/gvn-read-only/build/lib/gvn/wc.py", line 983, in
Transmit
baton, pool)
File "/usr/lib64/python2.4/site-packages/libsvn/wc.py", line 2563, in
svn_wc_transmit_text_deltas2
return apply(_wc.svn_wc_transmit_text_deltas2, args)
SubversionException: ("Base checksum mismatch
on '/public/projects/greek-tree/iota':\n expected:
2d18c5e57e84c5b8a5e9a6e13fa394dc\n actual:
711f40aea4c9c09a168756d05a8f1c70\n", 200014)

What version of the product are you using? On what operating system?

Path: .
URL: http://gvn.googlecode.com/svn/trunk
Repository Root: http://gvn.googlecode.com/svn
Repository UUID: 17546c55-2f2b-0410-a14d-9bd24aa6119c
Revision: 987
Node Kind: directory
Schedule: normal
Last Changed Author: merlin
Last Changed Rev: 987
Last Changed Date: 2009-07-21 13:25:12 -0700 (Tue, 21 Jul 2009)


Please provide any additional information below.

Checksums fail with md5 in python2.4 and with hashlib in python2.6.

Reply all
Reply to author
Forward
0 new messages