Commit Graph

537 Commits

Author SHA1 Message Date
Jeromy
be09205310 fixify tests
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
b2b415b57d fix some tests
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
dc2e343a99 add option to disable flushing files structure on writes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Andrew Chin
b6f28dad1b Add a --pin option to ipfs add (allowing --pin=false)
Implements a solution for #1908

This PR replaces #1909

License: MIT
Signed-off-by: Andrew Chin <achin@eminence32.net>
2016-01-12 08:22:55 -08:00
Jeromy
38fab91013 address comments from CR
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Jeromy
6faa70ee59 implement ipfs files command
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:22:55 -08:00
Tommi Virtanen
d83644628b sharness: Stop assuming leveldb Datastore
License: MIT
Signed-off-by: Tommi Virtanen <tv@eagain.net>
2016-01-12 08:22:55 -08:00
Tommi Virtanen
a5f9832937 gofmt generated assets
The generated file went through some changes because of differing
go-bindata versions.

License: MIT
Signed-off-by: Tommi Virtanen <tv@eagain.net>
2016-01-12 08:22:55 -08:00
Jeromy
b12ee40aba implement mark and sweep GC
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

dont GC blocks used by pinner

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

comment GC algo

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

add lock to blockstore to prevent GC from eating wanted blocks

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

improve FetchGraph

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

separate interfaces for blockstore and GCBlockstore

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

reintroduce indirect pinning, add enumerateChildren dag method

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:21:13 -08:00
Jeromy
de50b21562 using multistream muxer
* ID service stream
* make the relay service use msmux
* fix nc tests

Note from jbenet: Maybe we should remove the old protocol/muxer
and see what breaks. It shouldn't be used by anything now.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2016-01-12 08:21:13 -08:00
Tommi Virtanen
e5b8ee4819 pin: Rewrite to store pins in IPFS objects
WARNING: No migration performed! That needs to come in a separate
commit, perhaps amended into this one.

This is the minimal rewrite, only changing the storage from
JSON(+extra keys) in Datastore to IPFS objects. All of the pinning
state is still loaded in memory, and written from scratch on Flush. To
do more would require API changes, e.g. adding error returns.

Set/Multiset is not cleanly separated into a library, yet, as it's API
is expected to change radically.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:21:13 -08:00
Tommi Virtanen
531f0579a4 sharness: Don't assume we know all things that can create garbage
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

sharness: Don't assume we know all things that can create garbage

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:21:13 -08:00
Tommi Virtanen
5b96d4d6b8 sharness: fusermount -u is the documented way to unmount FUSE on Linux
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:17:17 -08:00
Tommi Virtanen
a3de9bf3a0 sharness: Use sed in a cross-platform safe way
OS X sed is documented as "-i SUFFIX", GNU sed as "-iSUFFIX". The one
consistent case seems to be "-iSUFFIX", where suffix cannot empty (or
OS X will parse the next argument as the suffix).

This used to leave around files named `refsout=` on Linux, and was
just confusing.

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-12 08:17:17 -08:00
Christian Couder
1fbbd1de15 Add and use a DOCKER prereq
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-10 20:19:23 +01:00
Christian Couder
d356ed0d53 sharness: add t0300-docker-image.sh
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-10 20:19:23 +01:00
Christian Couder
29ec4c06e4 test/ipfs-test-lib: add docker support
We have to do something special for CircleCI in docker_exec()
because "docker exec" doesn't work on CircleCi:

https://circleci.com/docs/docker#docker-exec

We indeed get "Unsupported: Exec is not supported by the lxc
driver" with CircleCi, when using "docker exec".

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-10 20:19:23 +01:00
Jeromy Johnson
4ba3a754ae Merge pull request #2147 from ipfs/reenable-ipns-test
reenable ipns sharness test now that iptb is fixed
2016-01-02 12:39:33 +01:00
Jeromy
ba33de36e3 reenable ipns sharness test now that iptb is fixed
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-01 19:38:18 -08:00
Jeromy
543f527bca fix typos in quick start doc
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-01 18:15:29 -08:00
Jeromy
7fe0dadcd9 add a test
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-30 11:08:09 -08:00
Jeromy
de702ead33 add sharness test to verify requests look good
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-28 05:01:06 -08:00
Jeromy
d207e8b87c disable auto repo gc tests temporarily
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-12-27 14:55:19 -08:00
Christian Couder
57c4188a98 test/supernode_client/main: fix t.Fatal in a goroutine
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-12-14 22:31:57 +01:00
Juan Benet
4397adf51c Merge pull request #2041 from ipfs/t0080-osx-fix
t0080 improvements
2015-12-12 04:31:18 -05:00
Juan Benet
0f39687fb6 Merge pull request #2019 from ipfs/Dignifiedquire-fix/access-controll-headers
Dignifiedquire fix/access controll headers
2015-12-09 00:55:06 -08:00
Christian Couder
0d7ef453f8 t0080: improve 'ipfs refs --unique' test
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-12-05 08:45:35 +01:00
Christian Couder
715e0c915e t0080: improve last tests
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-12-05 08:20:27 +01:00
Christian Couder
5721a1050c t0020: cleanup dir with bad perms
This is needed on OSX otherwise the trash directory for the
t0020-init.sh test fails to be removed due to a permissions
error.

This fixes https://github.com/ipfs/go-ipfs/issues/2026

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-12-05 07:36:53 +01:00
Lars Gierth
dcc9a63a34 assets: fix gc example
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-12-03 03:25:28 +01:00
Juan Benet
1c53aea2d2 Merge pull request #2000 from nham/object_put_newline
Add newline to end of `ipfs object put` text output.
2015-12-02 03:40:27 -08:00
Jeromy
891a8d7656 no newlines in json objects
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-30 15:23:48 -08:00
Nick Hamann
d49a15f566 Add newline to end of the output for a few commands.
Commands affected:

 - ipfs object put
 - ipfs tar add
 - ipfs resolve
 - ipfs name resolve

License: MIT
Signed-off-by: Nick Hamann <nick@wabbo.org>
2015-11-29 11:50:48 -06:00
dignifiedquire
e09c397aba Try to fix tests
License: MIT
Signed-off-by: Friedel Ziegelmayer <dignifiedquire@gmail.com>
2015-11-25 20:11:20 +01:00
rht
54a9891822 Add gc auto test
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-11-15 18:50:51 +07:00
rht
48a33ffb67 Add fixed period repo GC + test
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-11-10 14:03:29 +07:00
Jeromy
94bdce63a7 vendor logging lib update
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-05 15:57:21 -08:00
Jeromy
0d35cc9aea set data and links nil if not present
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-02 23:38:36 -08:00
Jeromy
c7fb7ce17d cache ipns entries to speed things up a little
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-11-02 12:53:08 -08:00
rht
31115f51a0 Allow ipfs cat on ipns path
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2015-10-31 15:55:47 +07:00
Juan Benet
f703b2c375 Merge pull request #1886 from ipfs/fix/ThatPut
fixing putHandler
2015-10-31 01:03:33 -04:00
Henry
c1847e9f69 putHandler: addressed CR from @jbenet
License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-10-31 01:37:37 +01:00
Juan Benet
a93dbf6d01 Merge pull request #1913 from ipfs/test-ipfs-config
t0021: test 'ipfs config show'
2015-10-30 17:06:33 -04:00
Juan Benet
933b973394 Merge pull request #1912 from ipfs/t0220-bitswap-stat
t0220: add 'ipfs bitswap stat' tests
2015-10-30 17:06:25 -04:00
Juan Benet
d82ff148e5 Merge pull request #1847 from ipfs/sharness-coverage-script
Sharness coverage script
2015-10-30 17:04:37 -04:00
Christian Couder
bbe95b8ad4 t0021: test 'ipfs config show'
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-29 16:26:52 +01:00
Christian Couder
3e57460c87 t0220: show breakage with ipfs bitswap wantlist -p
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-29 15:37:58 +01:00
Christian Couder
1c279b936e t0220: add 'ipfs bitswap stat' tests
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-10-29 15:07:46 +01:00
Henry
b8b4e45665 fixing putHandler for --writable http gateway
I disabled this a long time ago and never refactored it. About time.

License: MIT
Signed-off-by: Henry <cryptix@riseup.net>
2015-10-28 08:11:56 +01:00
Jeromy
c023d187b5 update code to use new logging changes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-27 11:04:56 -07:00