Hacking Keep » History » Version 4
Tom Clegg, 07/16/2014 09:24 AM
1 | 1 | Tom Clegg | h1. Hacking Keep |
---|---|---|---|
2 | |||
3 | {{toc}} |
||
4 | |||
5 | h2. Source tree layout |
||
6 | |||
7 | 3 | Tom Clegg | The Keep server source code is in @/services/keep/src/keep@. |
8 | 1 | Tom Clegg | |
9 | <pre> |
||
10 | cd |
||
11 | git clone https://github.com/curoverse/arvados.git |
||
12 | 3 | Tom Clegg | ls arvados/services/keep/src/keep |
13 | 1 | Tom Clegg | </pre> |
14 | |||
15 | h2. Install build-prerequisites |
||
16 | |||
17 | Install Go. See http://golang.org/doc/install or try this short cut: |
||
18 | |||
19 | <pre> |
||
20 | wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz |
||
21 | sudo tar -C /usr/local -xzf go1.2.1.linux-amd64.tar.gz |
||
22 | cd /usr/local/bin |
||
23 | sudo ln -s ../go/bin/* . |
||
24 | </pre> |
||
25 | |||
26 | (Check https://code.google.com/p/go/downloads/list for other platforms and newer versions.) |
||
27 | |||
28 | Install mux. |
||
29 | |||
30 | <pre> |
||
31 | GOPATH=~/go go get github.com/gorilla/mux |
||
32 | </pre> |
||
33 | |||
34 | h2. Run test suite |
||
35 | |||
36 | <pre> |
||
37 | 2 | Tom Clegg | cd ~/arvados/services/keep/src/keep |
38 | 1 | Tom Clegg | GOPATH=~/go go test |
39 | </pre> |
||
40 | |||
41 | You should see something like this: |
||
42 | |||
43 | <pre> |
||
44 | 4 | Tom Clegg | 2014/07/16 09:24:01 GET e4d909c290d0fb1ca068ffaddf22cbd0 |
45 | 2014/07/16 09:24:01 GET e4d909c290d0fb1ca068ffaddf22cbd0 |
||
46 | 2014/07/16 09:24:01 GET e4d909c290d0fb1ca068ffaddf22cbd0 |
||
47 | 2014/07/16 09:24:01 GET e4d909c290d0fb1ca068ffaddf22cbd0 |
||
48 | 2014/07/16 09:24:01 GET e4d909c290d0fb1ca068ffaddf22cbd0 |
||
49 | 2014/07/16 09:24:01 PUT e4d909c290d0fb1ca068ffaddf22cbd0 |
||
50 | 2014/07/16 09:24:01 PUT e4d909c290d0fb1ca068ffaddf22cbd0 |
||
51 | 2014/07/16 09:24:01 PUT e4d909c290d0fb1ca068ffaddf22cbd0 |
||
52 | 2014/07/16 09:24:01 [MockVolume]: checksum mismatch for request e4d909c290d0fb1ca068ffaddf22cbd0 (actual 55ae4d45d2db0793d53f03e805f656e5) |
||
53 | 2014/07/16 09:24:01 e4d909c290d0fb1ca068ffaddf22cbd0: checksum mismatch, no good copy found |
||
54 | 2014/07/16 09:24:01 GetBlock: reading e4d909c290d0fb1ca068ffaddf22cbd0: Bad volume |
||
55 | 2014/07/16 09:24:01 [MockVolume]: Write(e4d909c290d0fb1ca068ffaddf22cbd0): Bad volume |
||
56 | 2014/07/16 09:24:01 GetBlock: reading e4d909c290d0fb1ca068ffaddf22cbd0: Bad volume |
||
57 | 2014/07/16 09:24:01 e4d909c290d0fb1ca068ffaddf22cbd0: MD5 checksum 55ae4d45d2db0793d53f03e805f656e5 did not match request |
||
58 | 2014/07/16 09:24:01 [MockVolume]: checksum mismatch for request e4d909c290d0fb1ca068ffaddf22cbd0 (actual 55ae4d45d2db0793d53f03e805f656e5) |
||
59 | 2014/07/16 09:24:01 e4d909c290d0fb1ca068ffaddf22cbd0: checksum mismatch, no good copy found |
||
60 | 2014/07/16 09:24:01 e4d909c290d0fb1ca068ffaddf22cbd0: could not create directory /tmp/volume_test436651248/e4d: mkdir /tmp/volume_test436651248/e4d: permission denied |
||
61 | 1 | Tom Clegg | PASS |
62 | 4 | Tom Clegg | ok _/home/you/src/arvados/services/keep/src/keep 0.030s |
63 | 1 | Tom Clegg | </pre> |