Commit Graph

4835 Commits

Author SHA1 Message Date
Juan Batiz-Benet
26cdd9957f fix vendor path.
We need to have a test case that fails when any dep path is not
vendored. (until we use gx fully that is, and vendor everything
with it)

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-10-04 02:59:25 -04:00
Juan Benet
d4938c9b0c Merge pull request #1777 from rht/test/add
Add trickle and chunker test
2015-10-03 19:40:31 -04:00
Juan Benet
979bcc8108 Merge pull request #1772 from ipfs/shell-quote
Shell quote
2015-10-03 19:34:43 -04:00
Juan Benet
d4ca23d349 Merge pull request #1785 from ipfs/improve-t0100
t0100: swap test_cmp arguments
2015-10-03 19:34:16 -04:00
Juan Benet
3e8f7bd3ff Merge pull request #1786 from ipfs/improve-t0120
Improve t0120
2015-10-03 19:34:09 -04:00
Christian Couder
69c2340e06 t0120: add missing &&
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-04 00:08:16 +02:00
Christian Couder
9b316e8c66 t0120: swap test_cmp arguments
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-04 00:06:17 +02:00
Christian Couder
3c3a9c974a t0100: swap test_cmp arguments
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-04 00:02:17 +02:00
Juan Benet
47a353de6a Merge pull request #1781 from ipfs/improve-t0240
Improve t0240
2015-10-03 18:00:22 -04:00
Juan Benet
513b75a889 Merge pull request #1783 from ipfs/improve-t0051
t0051: swap test_cmp arguments
2015-10-03 17:58:50 -04:00
Juan Benet
3eea954a78 Merge pull request #1784 from ipfs/improve-t0081
t0081: swap test_cmp arguments
2015-10-03 17:58:31 -04:00
Juan Benet
1b795013ca Merge pull request #1773 from ipfs/feat/no-symlink
replace imports with absolute path instead of using symlink
2015-10-03 17:56:34 -04:00
Juan Benet
0e382c9548 Merge pull request #1780 from ipfs/dev-notes
add some notes on how to hack on go-ipfs
2015-10-03 17:55:56 -04:00
Christian Couder
5686762055 t0081: swap test_cmp arguments
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 23:49:01 +02:00
Christian Couder
088aa1a623 ipfs-test-lib: clarify and simplify shellquote()
Let's first add a comment to explain why the wrapper printf()
is needed.

Then let's replace the last instructions by quotes inside the
wrapper printf() first argument, and let's also put there the
eventual space so that we can remove the printf on the above
line.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 23:35:44 +02:00
Jeromy
8f0623255d replace imports with absolute path instead of using symlink
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-03 14:30:50 -07:00
Christian Couder
8f102d2cbd t0051: swap test_cmp arguments
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 23:26:20 +02:00
Christian Couder
880f378932 t0240: swap 'resolve' and 'expected'
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 22:46:10 +02:00
Christian Couder
0f7f0495a6 t0240: use test_seq instead of seq
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 22:42:41 +02:00
Christian Couder
e6890e1b63 t0240: improve ipfsi()
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 22:33:12 +02:00
Jeromy
9f4c5e9d0a add some notes on how to hack on go-ipfs
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-03 14:17:49 -04:00
Christian Couder
4cab9fe37e ipfs-test-lib: fix shellquote() on Mac OS
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 16:06:40 +02:00
Christian Couder
d352b0421b Add t0015-basic-sh-functions.sh
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-03 12:27:01 +02:00
rht
32d9bd76f3 sharness: add trickle and chunker test
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-03 09:03:09 +07:00
rht
220b9d22ae Move test add cat offline into t0040
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-03 08:48:22 +07:00
Juan Benet
7e69146933 Merge pull request #1775 from ipfs/fix/ipns-old-record
fix publish fail on prexisting bad record
2015-10-02 18:08:56 -04:00
Jeromy
b34d41e01e fix publish fail on prexisting bad record
dont error out if prexisting record is bad, just grab its sequence number
and continue on with the publish.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-02 14:59:31 -07:00
Juan Benet
5b2d2ebdd6 Merge pull request #1739 from ipfs/ipns/patches
Ipns/patches
2015-10-01 15:55:36 -04:00
Jeromy
3b9ad30005 Addressing comments from CR
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 22:50:50 -07:00
Jeromy
e5512b4115 make publish more configurable and add test for repub
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:44 -07:00
Jeromy
e202c6592f vendor in iptb and kingpin
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-30 11:03:02 -07:00
Jeromy
815a031f59 Implement ipns republisher
This commit adds a very basic process that will periodically go through
a list of given ids and republish the values for their ipns entries.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:47 -07:00
Jeromy
235a9ec5fc Fix dht queries
Queries previously would sometimes only query three (alpha value) peers
before halting the operation. This PR changes the number of peers
grabbed from the routing table to start a query to K.

Dht nodes would also not respond with enough peers, as per the kademlia
paper, this has been changed to from 4 to 'K'.

The query mechanism itself also was flawed in that it would pull all the
peers it had yet to query out of the queue and 'start' the query for
them. The concurrency rate limiting was done inside the 'queryPeer'
method after the goroutine was spawned. This did not allow for peers
receiver from query replies to be properly queried in order of distance.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:47 -07:00
Jeromy
cfcc3d6a1b ipns record selection via sequence numbers
This commit adds a sequence number to the IpnsEntry protobuf
that is used to determine which among a set of entries for the same key
is the 'most correct'.

GetValues has been added to the routing interface to retrieve a set of
records from the dht, for the caller to select from.

GetValue (singular) will call GetValues, select the 'best' record, and
then update that record to peers we received outdated records from.
This will help keep the dht consistent.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-29 09:47:41 -07:00
Juan Benet
81c64768c5 Merge pull request #1760 from MichaelMure/missing_new_line
Add a new line in the output of ipfs log level
2015-09-27 21:57:16 -04:00
Michael Muré
f9af496ae8 Add a new line in the output of ipfs log level
License: MIT
Signed-off-by: Michael Muré <mure.michael@gmail.com>
2015-09-27 19:08:23 +02:00
Juan Benet
0020918465 Merge pull request #1759 from rht/cleanup-coreunix
Cleanup coreunix cat
2015-09-27 10:49:22 -04:00
rht
a7f43de5f2 Cleanup coreunix cat
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-09-27 17:13:34 +07:00
Juan Benet
ce20cf9954 Merge pull request #1755 from sroerick/patch-1
added docker file permission instructions.
2015-09-27 04:11:02 -04:00
Roerick Sweeney
4a0725fe2e added docker file permission instructions again
I screwed up my initial commit, so here goes again. That's what i get for using the github gui...

I added the instructions to make the ipfs_data and ipfs_staging globally readable, which prevents permission errors.

It may be better to limit permissions in some way, to prevent potential security risks.

License: MIT
Signed-off-by: sroerick sweeney@roerick.me
2015-09-27 02:06:53 -06:00
Juan Benet
a26ad22434 Merge pull request #1757 from ipfs/shell-quote
ipfs-test-lib: add shellquote()
2015-09-27 03:29:37 -04:00
Christian Couder
1bd182055b ipfs-test-lib: add shellquote()
This function can be usefull in many places.

See for example:

https://github.com/ipfs/go-ipfs/pull/1742

Git has `git rev-parse --sq-quote` that does the same thing.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-09-27 09:11:25 +02:00
Juan Benet
08e06764c8 Merge pull request #1742 from ipfs/test/gz
Sharness: add test for compression level
2015-09-26 18:36:36 -04:00
sroerick
279328c26b added docker file permission instructions. 2015-09-25 19:59:32 -06:00
Juan Benet
7244c0443a Merge pull request #1743 from ipfs/dht-key-escape
allow for dht keys to be escaped
2015-09-25 19:54:05 -04:00
Juan Benet
4ac2c46c6a Merge pull request #1752 from ipfs/feat/stat-count
allow bitswap stat to return total number of bytes wasted
2015-09-25 18:51:31 -04:00
Juan Benet
d3b873ccca Merge pull request #1753 from ipfs/fix/api-file
write correct address to api file
2015-09-25 18:43:41 -04:00
Jeromy
c3e72377b2 write correct address to api file
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-25 15:34:54 -07:00
Jeromy
0c7421643d allow bitswap stat to output wasted bytes
bitswap stat can now track bytes that are wasted by receiving duplicate
blocks.

ps, gitcop smells

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-25 14:40:46 -07:00
Juan Benet
5b9811371c Merge pull request #1749 from mjanczyk/master
Fix #1661 IPFS crashes on windows after first run
2015-09-25 16:07:37 -04:00