darcs

Issue 2151 spurious hash failure messages?

Title spurious hash failure messages?
Priority Status given-up
Milestone Resolved in
Superseder Nosy List kowey, simon
Assigned To
Topics Hashed

Created on 2012-03-07.16:55:53 by kowey, last changed 2017-07-31.00:38:40 by gh.

Files
File name Uploaded Type Edit Remove
hmm kowey, 2012-03-07.16:55:51 application/octet-stream
log.txt simon, 2012-03-11.18:22:29 text/plain
Messages
msg15216 (view) Author: kowey Date: 2012-03-07.16:55:51
Leaving this for somebody else to triage for now.


Some ideas to help bug reporting (1-4 may also help for feature 
requests):

1. What darcs version are you using? (Try: darcs --exact-version)

2.7.98.3 (beta 3)

2. What operating system are you running?

MacOS X (10.7.3)

3. What were you doing? (eg. what darcs commands)

darcs get http://joyful.com:/repos/hledger --lazy

4. What behaviour were you expecting?

Fetched repo, nothing eventful

5. What went wrong?

Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/b2b2a5820e185cd4784179466708950
f642ee4cb8f20dcdb7c0a427068a8adb5
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/ffca721b30a589c8c28101c8f80b3a6
ec8b0c7d6efbdc968ee92202d442947dd
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/5cedd8ff3a9bcbe644e9520a4a4bc7a
1c9c8d0a7d6c72c0d02a5d073ab896159
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/65f3dbd777a8d7b23f298f8f932f054
0bec1f2e33ba57d04e2365181da51ee5f
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/e2980cde19bf632389d26cb065d10d3
bb7f661dd145f53c4f5635b83255f5c50
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/d6146c53b885a206e762893c64322a0
bec2aadd6736551c55a8808424d08bee1
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/c1195a9c97648f53458fda6909400d1
75d64e1352edf81a6b906bee1015debc1
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/4ed38ed0e62797a6d3b2c76c20fe96c
474c72be09526ef435584a909c515d4e3
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/391d87aabafe48f826c0b007aa4186e
87ae1af189ecf5bb1c15415797112defe
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/e14fcaeb37119bd07f31eb439b192e6
1aec5f862b59f8de35376c506b306eee8
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/0e114dcc5a9dbb51577723ffcc81edc
296ff9c6f87e090f6927da0a812b7c1d8
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/d7931ef842d22b1e16242cc27608921
c5114a69ec17e6e392d85db026cc6db32
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/3376af640ab57f4d361a9c9c3db9015
98306b3de0b4d8ba67dcf217d5daade5f
Hash failure in 
/Users/kowey/.darcs/cache/pristine.hashed/59024e54fee3b8c757cffa3ec5f6978
272c834212c6abc9e235af754be79cd52
Finished getting.                                                        

If I save this list of hash failures to a file and cut out everything but 
the hashes, I can automatically compare them.

All hashes seem to be correct

for i in `cat /tmp/hmm`; do zless ~/.darcs/cache/pristine.hashed/$i | 
shasum -a 256; done | sed -e 's/  -$//' > /tmp/hmm2
Attachments
msg15217 (view) Author: kowey Date: 2012-03-07.17:01:48
$ darcs check
Hash failure in /Users/kowey/.darcs/cache/patches/0000011862-
bff4934ac102cb92967d41e68c8cf42573bab8c5a9a86ad25696020a3c47896d
Hash failure in 
http://joyful.com:/repos/hledger/_darcs/patches/0000011862-
bff4934ac102cb92967d41e68c8cf42573bab8c5a9a86ad25696020a3c47896d
darcs: failed to read patch:                                                    
Sun Jan 28 10:30:24 GMT 2007  Simon Michael <simon@joyful.com>
  * add failing test case
Couldn't fetch `0000011862-
bff4934ac102cb92967d41e68c8cf42573bab8c5a9a86ad25696020a3c47896d'
in subdir patches from sources:

thisrepo:/private/tmp/hledger_0
cache:/Users/kowey/.darcs/cache
repo:http://joyful.com:/repos/hledger
msg15218 (view) Author: kowey Date: 2012-03-07.17:04:02
Here's what happens when I try this bypassing the rest of the cache 
system:

$ darcs get --no-cache --lazy http://joyful.com:/repos/hledger
Directory '/private/tmp/hledger' already exists, creating repository as 
'/private/tmp/hledger_1'
Hash failure in 
/private/tmp/hledger_1/_darcs/pristine.hashed/3ccdf465c461174b233975b5e11
6da33815894e4ff43376bd086f2c89e7c1299
Hash failure in 
/private/tmp/hledger_1/_darcs/pristine.hashed/8ceb4b9ee5adedde47b31e975c1
d90c73ad27b6b165a1dcd80c7c545eb65b903
Hash failure in 
http://joyful.com:/repos/hledger/_darcs/pristine.hashed/8ceb4b9ee5adedde4
7b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903

darcs failed:  Couldn't fetch 
`8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903'
in subdir pristine.hashed from sources:

thisrepo:/private/tmp/hledger_1
repo:http://joyful.com:/repos/hledger
msg15219 (view) Author: kowey Date: 2012-03-07.17:06:52
If I darcs get --lazy that repo yet again, it succeeds.  Now if I darcs 
check it, I get hash failure messages for the patch files.  I tried 
checking the hash manually at it seemed fine.

Here I'm wondering if the hash checker is confused by the prefixes in the 
filename, ie. 0000007642-
2973d4a117b9a036eaaf0db6e13675afb1b2b66c34596a7e470e04a3bc93b955 for a 
file with hash 
2973d4a117b9a036eaaf0db6e13675afb1b2b66c34596a7e470e04a3bc93b955.  If so, 
that's a tiny/easy-to-test-for bug
msg15264 (view) Author: simon Date: 2012-03-11.18:22:29
Thanks for opening this Eric. I found that the failures are due to the 
repo url being redirected. Getting the repo directly from its new url 
works as expected. 

Is this a bug ? HTTP log attached in case it helps anyone.
Attachments
History
Date User Action Args
2012-03-07 16:55:53koweycreate
2012-03-07 17:01:49koweysetmessages: + msg15217
2012-03-07 17:04:03koweysetmessages: + msg15218
2012-03-07 17:06:53koweysetmessages: + msg15219
2012-03-11 18:22:32simonsetfiles: + log.txt
messages: + msg15264
2017-07-31 00:38:40ghsetstatus: unknown -> given-up