aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/Three_tests_fail_when_annex.backends_is_defined.mdwn
blob: 11f4a9a3e1e37cefb6b0591af79fc4fed544c5b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
### Please describe the problem.

I noticed three tests failed when running "git annex test", and it seems 
it's because I have `annex.backends` set to `SHA256` in `~/.gitconfig`. 
When I disable that option, all tests succeed.

### What steps will reproduce the problem?

Add

    [annex]
      backends = SHA256

to `~/.gitconfig`.

### What version of git-annex are you using? On what operating system?

Newest git-annex (6.20160211 amd64) from downloads.kitenet.net.

- Debian GNU/Linux 8.3 (64 bit). Installed yesterday, so it's pretty pristine.
- git version 2.7.1.287.g4943984 (Newest version from 'master' in 
  git.git)

The first version with this problem is 6.20160114. 5.20151218 works.

### Please provide any additional information below.

[[!format text """
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log

$ git annex test
Tests

[Removed 188 lines]

    migrate (via gitattributes):                          /etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
OK (3.11s)
    unused:                                               /etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
FAIL (1.84s)
      unused keys differ after origin branches are gone
      expected: [Key {keyName = "e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77", keyBackendName = "SHA256E", keySize = Just 20, keyMtime = Nothing, keyChunkSize = Nothing, keyChunkNum = Nothing}]
       but got: [Key {keyName = "e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77", keyBackendName = "SHA256", keySize = Just 20, keyMtime = Nothing, keyChunkSize = Nothing, keyChunkNum = Nothing}]
    describe:                                             /etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
OK (0.84s)

[Removed 1108 lines]

    migrate (via gitattributes):                          /etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
OK (3.34s)
    unused:                                               /etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
/etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
FAIL (1.82s)
      unused keys differ after origin branches are gone
      expected: [Key {keyName = "e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77", keyBackendName = "SHA256E", keySize = Just 20, keyMtime = Nothing, keyChunkSize = Nothing, keyChunkNum = Nothing}]
       but got: [Key {keyName = "e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77", keyBackendName = "SHA256", keySize = Just 20, keyMtime = Nothing, keyChunkSize = Nothing, keyChunkNum = Nothing}]
    describe:                                             /etc/magic, 4: Warning: using regular magic file `/usr/share/misc/magic'
OK (0.78s)

[Removed 1062 lines]

    migrate (via gitattributes):                          OK (2.64s)
    unused:                                               FAIL (1.53s)
      unused keys differ after origin branches are gone
      expected: [Key {keyName = "e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77", keyBackendName = "SHA256E", keySize = Just 20, keyMtime = Nothing, keyChunkSize = Nothing, keyChunkNum = Nothing}]
       but got: [Key {keyName = "e394a389d787383843decc5d3d99b6d184ffa5fddeec23b911f9ee7fc8b9ea77", keyBackendName = "SHA256", keySize = Just 20, keyMtime = Nothing, keyChunkSize = Nothing, keyChunkNum = Nothing}]
    describe:                                             OK (0.62s)

[Removed 1667 lines]

3 out of 269 tests failed (640.58s)
  (This could be due to a bug in git-annex, or an incompatibility
   with utilities, such as git, installed on this system.)
$

# End of transcript or log.
"""]]

### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)

Roses are red<br/>
Violets are blue<br/>
git-annex is awesome<br/>
and so are you

`;-)`

But bloody hell, it's hard to get this thing to build. As you've 
mentioned earlier, building on Debian 7 isn't supported anymore, so I 
installed Debian 8.3 yesterday for the sole purpose of compiling git-annex, 
but still no luck:

    [32 of 32] Compiling Main             ( dist/setup/setup.hs, dist/setup/Main.o )
    Linking ./dist/setup/setup ...
    unrecognized option `--extra-prog-path=/home/sunny/.cabal/bin'
    Makefile:19: recipe for target 'Build/SysConfig.hs' failed
    make: *** [Build/SysConfig.hs] Error 1

I was hoping to get it to build so I could find the exact commit that 
introduced this, and also provide some patches with some functionality 
I've been thinking of. Is building on Debian 8.3 (jessie) supported? I 
found a bug report from you on 
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=778987> that seems to 
be related, but I don't know if that's the case. The newest version I'm 
able to build is 5.20150219, somewhere after that various things start 
to fail.

> [[fixed|done]]; I found a way to isolate the test suite from global git
> configs, by setting `GIT_CONFIG_NOSYSTEM` and also setting
> `HOME` and `XDG_CONFIG_HOME` to an empty directory. --[[Joey]]