Commit Graph

943 Commits

Author SHA1 Message Date
Jeromy Johnson
29c80d76b4 Merge pull request #3698 from ipfs/fix/repo-migration-musl
WIP: fsrepo: fix musl detection for migrations
2017-02-20 20:40:45 -08:00
Jeromy
14daf0a459 print out all daemon stderr files when iptb stop fails
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-19 16:25:28 -08:00
Jeromy
c817f09b8a
add tests to make sure docker requests correct migrations version
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-17 08:37:27 +01:00
Lars Gierth
26770b7ebb
fsrepo: fix musl detection for migrations
The ldd command used for detection doesn't seem to have a
--version flag on Alpine Linux. It would print the expected
output, but instead of stdout, it would print it on stderr.

The musl detection code would only scan stdout for mentions
of "musl", and would thus *not* download the musl version
of the fs-repo-migrations executable.

This manifested in the well-known "fs-repo-migrations: not found"
error, which you get when executing something that was linked
against a different libc than the one present on the system.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-02-17 08:37:26 +01:00
Jeromy Johnson
765fb0f612 Merge pull request #3523 from ipfs/feat/ipv6-bootstrap
bootstrap: add a few /ip6 nodes
2017-02-16 17:00:37 -08:00
Jeromy Johnson
e5def26b92 Merge pull request #3687 from ipfs/feat/sub-obj-dag-get
Feat/sub obj dag get
2017-02-16 15:51:34 -08:00
Kevin Atkinson
6867c87bcf Add back removed test.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-02-15 17:35:29 -05:00
Kevin Atkinson
4b566ede96 Add tests for recursively pinning a dag (i.e. large file).
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-02-15 16:51:40 -05:00
Jeromy
cb611c8873 allow for sub-object resolution in dag get
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-13 19:15:17 -08:00
Jeromy
b4eeff2d84 update go-multihash and bubble up deps
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-12 12:25:41 -08:00
Jakub Sztandera
dd63187826
make: make default rule 'aggregate' in sharness
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
Jakub Sztandera
a2e3aa5d78
make: fix standalone sharness run
The comparison was wrong

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
Jakub Sztandera
f77d01a965
make: add dummy makefile in sharness directory
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
Jakub Sztandera
f630222580
make: rework makefiles for non-recursive make and add sharness coverage
This commit introduces non-recursive Makefile infrastructure that replaces current Makefile infrastructure.
It also generally cleanups the Makefiles, separates them into nicer sub-modules and centralizes common operations into single definitions.

It allows to depend on any target that is defined in the makefile, this means that for example `gx install` is called once when `make build test_expensive_sharness` is called instead of 4 or 5 times.

It also makes the dependencies much cleaner and allows for reuse of modules. For example sharness coverage collection (WIP) uses sharness target with amended PATH, previously it might have been possible but not without wiring in the coverage collection into sharness make runner code.

Yes, it is more complex but not much more. There are few rules that have to be followed and few complexities added but IMHO it is worth it.

How to NR-make:
1. If make is to generate some file via a target, it MUST be defined in Rules.mk file in the directory of the target.
2. `Rules.mk` file MUST have `include mk/header.mk` statement as the first line and `include mk/footer.mk` statement as the last line (apart from project root `Rules.mk`).
3. It then MUST be included by the closest `Rules.mk` file up the directory tree.
4. Inside a `Rules.mk` special variable accessed as `$(d)` is defined. Its value is current directory, use it so if the `Rules.mk` file is moved in the tree it still works without a problem. Caution: this variable is not available in the recipe part and MUST NOT be used. Use name of the target or prerequisite to extract it if you need it.
5. Make has only one global scope, this means that name conflicts are a thing. Names SHOULD  follow `VAR_NAME_$(d)` convention. There are exceptions from this rule in form of well defined global variables. Examples: General lists `TGT_BIN`, `CLEAN`; General targets: `TEST`, `COVERAGE`; General variables: `GOFLAGS`, `DEPS_GO`.
3. Any rules, definitions or variables that fit some family SHOULD be defined in `mk/$family.mk` file and included from project root `Rules.mk`

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-12 01:18:40 +01:00
Jeromy
c5f0f7f77c fix printing out of binary escaped data for test
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-09 10:31:18 -08:00
Jeromy
85a06abacc Fix marshaling of null cbor arrays
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>

Fix non-canonical imports via dag put

License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-08 16:24:31 -08:00
Jeromy
c00c142bf9 dag/get: fix link formatting in json output
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-06 10:36:57 -08:00
Jeromy Johnson
4add5b8a9a Merge pull request #3631 from ipfs/lgierth-patch-1
migrations: update dist.ipfs.io path
2017-01-27 14:59:13 -08:00
Jeromy
7fc9c30168 close file before removing it in check writeable
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-01-26 22:43:54 -08:00
Jeromy
f28ba8559b remove error for not having an upgrade
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-01-26 09:12:34 -08:00
Jeromy
8c3f78055e add test check for pinning cbor objects
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-21 10:47:19 -08:00
Jeromy
29c530ac0e update to the correct ipld cbor code
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-21 10:47:19 -08:00
Jeromy
e5bc81ad94 don't select README or SHARDING file for random corruption in t0086
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-01-21 10:19:50 -08:00
Jeromy
1366795f31 Change repo version to 5, use new flatfs sharding
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-19 14:59:12 -08:00
Jeromy Johnson
75cce80b5c Merge pull request #3571 from ipfs/feat/better-enum-async
rewrite enumerate children async to be less fragile
2017-01-17 10:14:49 -08:00
Jeromy
397a35a33a update test to print error from EnumerateChildren
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-12 13:51:53 -08:00
Jeromy Johnson
3faf8974ec Merge pull request #3581 from ipfs/kevina/keystore
"ipfs key list": include the hash of the key id in addition to the name
2017-01-11 08:44:53 -08:00
Jeromy
a3b38e8be8 Add a test for the keystore
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-11 04:23:58 -08:00
Jeromy Johnson
8f165f305d Merge pull request #3582 from ipfs/deps/negotiate-lazy-fix
update go-libp2p with negotiate lazy fixes
2017-01-11 03:32:20 -08:00
Jakub Sztandera
e8be741c7f test: add simple multinode test for multiplex feature
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-01-10 14:52:04 -08:00
Jeromy
30aacd1b0a update go-libp2p with negotiate lazy fixes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-10 14:52:00 -08:00
Jakub Sztandera
df67f3d1bd
test: add test for invalid routing option
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-01-10 19:07:58 +01:00
Jeromy
7c0149d048 set the agent version based on version string
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-06 06:37:47 -08:00
Jeromy Johnson
87f8bfd31b Merge pull request #3539 from ipfs/feat/update-identify
update libp2p for identify configuration updates
2017-01-05 08:19:59 -08:00
Jeromy Johnson
d83a911254 Merge pull request #3562 from ipfs/kevina/minor-cr-0.4.5
Clean up minor issues in 0.4.5 cr.
2017-01-05 07:18:12 -08:00
Kevin Atkinson
78ff01757f Fix typo and formatting issues.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-04 17:26:08 -05:00
Kevin Atkinson
980e341489 Add tests for "ls --resolve-type=false".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-04 15:08:01 -05:00
Kevin Atkinson
6cc0903d25 Fix "ipfs ls" so it works correctly with raw leaves.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-03 21:20:04 -05:00
Kevin Atkinson
3526c26f31 Add test for adding directory with --raw-leaves option.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-02 21:19:03 -05:00
Jeromy
d8f257c264 update libp2p for identify configuration updates
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-27 02:13:59 -08:00
Jeromy Johnson
99d72c2781 Merge pull request #3515 from ipfs/fix/sharness/osx
Fixes nc on macOS not closing socket when the stdin sends EOF
2016-12-21 11:21:08 -08:00
Jakub Sztandera
abb4d1760b
sharness: don't run go-ipfs instance with default config
It conflicts with already running instance on the Dev's machine so
running this test requires disabling the normal ipfs.

The launch of ipfs here doesn't test much as we compare the config,
after initing from it and we also launch from default config in many
other cases (with few variables changed to not conflict with already
running standalone ipfs instance).

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-21 10:29:38 +01:00
Lars Gierth
9f71de8fcc bootstrap: add a few /ip6 nodes
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-18 05:52:56 +01:00
Jeromy
8e23482c7e Add a test for dag get with a path
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-17 13:36:56 -08:00
Jakub Sztandera
20665fc5e3
Fixes nc on macOS not closing socket when the stdin sends EOF
Uses `-d` option that is supported both by BSD and GNU nc.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-16 21:10:53 +01:00
Jeromy
4373bf9d75 merkledag: fix json marshalling of pbnode
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-14 13:11:49 -08:00
Jeromy Johnson
e893fb90b7 Merge pull request #3484 from ipfs/fix/pubsub-peers-cmd
cmd/pubsub: fix peers command topic filtering
2016-12-09 12:08:45 -08:00
Jeromy
f104b8ae57 cmd/pubsub: fix peers command topic filtering
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-08 21:26:09 -08:00
Jeromy
cf6e3219b6 cmd/block: add selection of multihash parameters to block put command
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-07 16:36:00 -08:00
Jeromy Johnson
0c413de87f Merge pull request #3432 from keks/feat/pubsub-sharness
add sharness test for pubsub
2016-12-04 21:29:45 -08:00