Commit Graph

816 Commits

Author SHA1 Message Date
Łukasz Magiera
9aab19ea35 object-patch: Support linking to non-dagpb objects
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-06 20:59:34 +01:00
Whyrusleeping
39f0f5f796
Merge pull request #4443 from ipfs/fix/4408
make repo size test pass deterministically
2017-12-03 18:05:26 +01:00
Steven Allen
ba680b10da make sure the repo size is greater than the size of the symlink
Before, we'd check to make sure the repo, when checked through a symlink, is at
least as large as the repo *before* we checked it through the symlink. However,
this assumes that the repo can't shrink.

Really, this test exists to ensure we measure the repo size itself instead of
the size of the symlink; this commit changes the test to reflect this.

This test fails when 54d7e03303 is reverted.

fixes #4408

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-01 09:56:03 -08:00
Whyrusleeping
66bde41384
Merge pull request #4047 from vyzo/ipns-pubsub
namesys/pubsub: pubsub Publisher and Resolver
2017-11-30 13:41:38 +01:00
Kevin Atkinson
d2696ed498 Increase verboseness of t0088-repo-stat-symlink.sh test.
Top help track down random test failures.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-11-28 13:45:27 -05:00
vyzo
e45df729be namesys/pubsub: publisher and resolver
Commits:
namesys: pubsub Publisher and Resolver
namesys/pubsub: pacify code climate.
namesys/pubsub: timeout for rendezvous
namesys/pubsub: filter self in bootstrap connections
namesys/pubsub: Publish to the correct topic

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: unit  test

Commits:
namesys/pubsub: test
namesys/pubsub_test: pacify code climate
namesys/pubsub: update test to use extant mock routing

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: integrate namesys pubsub

namesys: integrate pubsub resolvers
namesys/pubsub_test: tweak delays
- trying to make travis happy.
namesys/pubsub: fix duplicate bootstraps
- subscription key is topic, not ipnskey.
namesys/pubsub: no warning needed on cancellation
namesys/pubsub: warning for receive errors
- and more informative error messages at that.
namesys/pubsub_test: smaller test
- make it work with seemingly low fdlimits in travis/macosx.
  also, more informative test failures.
namesys/pubsub: add delay to let pubsub perform handshake
namesys/pubsub: update gx imports
namesys/pubsub_test: preconnect publisher, reduce delays
- preconnects the publisher to the receivers in order to avoid bootstrap
  flakiness with connectivity problems in travis.
  reduces sleeps to 1s for flood propagation (3s seems excessive with 5 hosts).
namesys/pubsub: drop named return values in resolveOnce
- per review comment.
namesys/pubsub: check errors
namesys/pubsub: store bytes in resolver datastore
namesys/pubsub: resolver Cancel
- for canceling subscriptions, pre whyrusleeping's request.
namesys/pubsub: fix resolution without /ipns prefix
- also improve the logging a bit.
namesys/pubsub: don't resolve own keys through pubsub
namesys/pubsub: signal ErrResolveFailed on resolution failure
namesys/pubsub: use sync datastore, resolver lock only for subs
namesys/pubsub_test: coverage for Cancel

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: parallelize dht and pubsub publishing

Commits:
namesys/pubsub: code cosmetics
namesys: parallelize publishing with dht and pubsub
namesys/pubsub: periodically reprovide topic rendezvous
namesys/pubsub: cancelation for rendezvous goroutine
namesys/pubsub: log ipns record seqno on publish

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: error checking

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: --enable-namesys-pubsub option and management

Commits:
package.json: update go-libp2p-blankhost
namesys: fix stale package imports
update go-testutil
namesys/pubsub: reduce bootstrap provide period to 8hr
namesys/pubsub: try to extract the key from id first
option to enable ipns pubsub: --enable-namesys-pubsub
ipfs name pubsub management subcommands
corehttp/gateway_test: mockNamesys needs to implement GetResolver
pacify code climate

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: pubsub sharness test

test/sharness: test for ipns pubsub
namesys/pubsub: return boolean indicator on Cancel
package.json: remove duplicate entry for go-testutil
update gx deps, testutil to 1.1.12
fix jenkins failure: use tabs in t0183-namesys-pubsub
t0183: use 4 spaces for tabification

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: update for new command interface

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>

namesys/pubsub: fix sharness test for broken MacOS echo

echo -n "" should print -n, but hey it's a mac.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-11-21 14:55:54 -08:00
Łukasz Magiera
697afddbcc object: --quiet flag to put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-11-21 19:41:00 +01:00
keks
0d9d21875c compatible to js-ipfs-api
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:42 +01:00
Łukasz Magiera
2ebf8d0482 Update badgerds to 1.1.3
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-11-12 05:34:31 +01:00
Whyrusleeping
5923540d37 Merge pull request #4305 from leerspace/fix/repo-stat-sym-link
handle sym links in when calculating repo size
2017-10-25 19:52:44 +01:00
Unknown
40a9036af8 set exec bit on sharness test
setting the executable bit on sharness test

License: MIT
Signed-off-by: John Reed <john@re2d.xyz>
2017-10-23 07:50:47 -05:00
Unknown
54d7e03303 gofmt fix and sharness test
gofmt fixes to fsrepo.go

The sharness test checks that IPFS_PATHS that are symbolically linked to another directory are returning an appropriate size

License: MIT
Signed-off-by: John Reed <john@re2d.xyz>
2017-10-21 18:22:27 -05:00
Jeromy Johnson
005d243cd3 Merge pull request #4320 from ipfs/fix/gateway-seeker
gateway: fix seeker can't seek on specific files
2017-10-20 13:15:32 +01:00
Kevin Atkinson
3003f93854 Fix "files stat" to work on raw nodes.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 16:08:10 -04:00
Kevin Atkinson
798afedf8d Make --hash and related option local to sub-commands that use them.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
00a3b1df21 Address C.R. in t0250-files-api.sh.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
b5b61f7527 Rename "files update" to "files chcid".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
47c198ceb8 Enhance sharness tests.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
f2fbfdf291 mfs: inherit CID prefix from from parent directory
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
a3bd2c23b3 Add "--raw-leaves" option to "ipfs files"
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 13:00:24 -04:00
Łukasz Magiera
e71dce5dfb gateway: fix seeker can't seek on specific files
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-18 20:10:22 +02:00
Łukasz Magiera
0f935ef136 sharness: make t0180-p2p less racy
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-16 23:19:03 +02:00
Steven Allen
603ecf62e3 add sharness test for deprecated supernode option
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-16 09:27:24 -07:00
Steven Allen
613508a0d3 add raw support to the dag put command.
`dag get` still doesn't properly support raw output but that's a bigger issue.

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-10 19:58:23 -07:00
Łukasz Magiera
7b7513565e sharness: fix OSX build
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-04 13:39:14 +02:00
Łukasz Magiera
6a40c37b94 sharness: 2 space indent
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-04 13:39:14 +02:00
Łukasz Magiera
fdccfea029 sharness: fix indent in few more places
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-04 13:35:07 +02:00
Łukasz Magiera
9d14b47fef sharness: test sharness indent
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-04 13:35:07 +02:00
Łukasz Magiera
83f001bd96 sharness: use tabs for indent
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-04 13:35:07 +02:00
Jeromy Johnson
4c392928b4 Merge pull request #4246 from ipfs/kevina/stat-no-max-storage
"repo stat": Don't crash when Datastore.StorageMax is not defined
2017-10-03 17:42:53 +03:00
Łukasz Magiera
eb7da51203 dag: Support multiple files in put
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-09-20 14:30:06 +02:00
Kevin Atkinson
f156f63eed "repo stat": Don't crash when Datastore.StorageMax is not defined
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-18 15:44:07 -04:00
Lars Gierth
e2a3cd3b66 docker: switch from musl to glibc
The Dockerfile now has two stages: build and assembly.
This allows for a full-fledged debian build container,
while still resulting in a super-thin busybox image.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-09-13 15:49:34 +02:00
Lars Gierth
e089e55f37 sharness: add /ws multinode test
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-09-05 21:03:38 -07:00
why
2c300026ae fix t0024 on osx
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-09-03 18:43:18 -07:00
Jeromy
0b0ddefcaf fix EOF quoting
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-09-03 17:29:17 -07:00
Kevin Atkinson
7b5027f084 add basic tests for Spec config change
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-03 14:08:52 -07:00
Kevin Atkinson
2df7727be8 bump repo version, remove support for old config
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-03 14:08:52 -07:00
Jeromy Johnson
ce1ca6ab87 Merge pull request #4172 from ipfs/fix/test/t0170-query
test: query test might work sometimes, mark it as 'might fail'
2017-08-31 16:29:49 -07:00
Kevin Atkinson
2fbb4515d9 Fix "ipfs ls" to once again work on arbitrary dag objects.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-08-30 00:27:54 -04:00
Jakub Sztandera
bc8d72cfce
test: query test might work sometimes, mark it as 'might fail'
Currently it is 'expect failure' and if it works on occasion it will
fail the CI build

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-08-28 19:03:09 +02:00
Jeromy Johnson
5f26f00465 Merge pull request #4127 from ipfs/feat/dns-bootstrap
bootstrap: add /dnsaddr nodes
2017-08-25 15:23:31 -07:00
Łukasz Magiera
ffc9abb8b8 reprovide: fix ipfs bitswap reprovide when interval set to 0
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-20 18:23:09 +02:00
Lars Gierth
568910408b bootstrap: add /dnsaddr nodes, remove half of /ip4,/ip6 nodes
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-08-17 16:22:38 +02:00
Jeromy Johnson
94b832df86 Merge pull request #4133 from ipfs/feat/improve-dag-api
Improve dag API
2017-08-16 15:22:23 -07:00
vyzo
6f54181f66 ipfs swarm addrs listen command, fix t0060-daemon
Necessary for meaningful semantics in the presence of address filtering.

License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
98da0853f4 test/sharness: extended circuit relay test
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
vyzo
1f40c5210d test/sharness: circuit relay test
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
Jeromy Johnson
dea24aedc3 Merge pull request #4113 from ipfs/feat/reprovider-starts
Reprovider strategies
2017-08-15 17:13:23 -07:00
Jeromy Johnson
9ea02e9fdd Merge pull request #4123 from sherodtaylor/feature/tour/remove-tour
remove tour command from ipfs
2017-08-15 17:06:36 -07:00