Commit Graph

2027 Commits

Author SHA1 Message Date
Henrique Dias
535d35e161
chore: restore exec perms for t0116-gateway-cache.sh and fixtures (#10085) 2023-08-18 09:34:42 +02:00
Marcin Rataj
733b01a37b
fix(gw): useful IPIP-402 CARs on not found errors (#10084)
Co-authored-by: Henrique Dias <hacdias@gmail.com>
2023-08-18 06:54:08 +00:00
Amir Mohammad Fakhimi
ced348366c
feat: add zsh completions (#10040)
Co-authored-by: Henrique Dias <hacdias@gmail.com>
2023-08-17 16:43:27 +02:00
Kay
f12b372af9
style: gofumpt and godot [skip changelog] (#10081) 2023-08-17 14:02:08 +02:00
Jorropo
b4f415088f chore: bump boxo for verifcid breaking changes
This is a Q&D fix to get kubo building again, this is completely equivalent to what we used to have.
I'll submit a patch that DI the verifcid.Allowlist interface with fx later but this is needed to unblock something else.
2023-08-17 13:41:30 +02:00
Jorropo
f805b9fcda feat: allow users to optin again into mplex
This is a partial revert of 7220409394.

Closes #9958
2023-08-15 14:53:44 +02:00
Jorropo
7220409394 feat: remove Mplex
Mplex does not implement backpressure, our implementation will randomly reset streams if buffers overflow instead of risking deadlocks.

In the past we had a bug where kubo nodes would prefer mplex over yamux. Turning off mplex make our connections to thoses nodes negociate yamux.

Closes #9958
2023-08-15 11:35:45 +02:00
Jorropo
b8e393056c chore: bump go-libp2p v0.29.2 2023-08-08 14:26:58 +02:00
Jorropo
4cd49cfca8 chore: bump go-libp2p v0.29.1 2023-08-04 18:31:58 +02:00
Laurent Senta
7977f26e86
chore: remove sharness tests ported to conformance testing (#9999)
* test(t0112): drop test ported to conformance

* test(t0113): drop test ported to conformance

* test(t0114): drop test ported to conformance

* test(t0114): drop test ported to conformance

* test(t0115): drop test ported to conformance

* test(t0122): drop test ported to conformance

* test(t0123): drop test ported to conformance

* test(t0117): drop test ported to conformance

* test(t0124): drop test ported to conformance

* test(t0114): simplify tests

* test(t0112): drop test ported to conformance

* test(t0116): drop test ported to conformance

* t0114: restore tests flagged by lidel

* t0112: restore

* t0116: restore dirindex check

* t0109: restore file

* t0115: restore full file

* t0114: restored rest of file

* fix: kill the iptb cluster
2023-08-02 19:15:27 +02:00
Jorropo
5a0a9ede15 chore: bump boxo to v0.11.0 for release 2023-07-27 12:08:19 +02:00
Jorropo
6be6630e4e libp2p: stop reporting ProtocolVersion 2023-07-26 14:48:19 +02:00
Marco Munizaga
649283bb6c chore: update go-libp2p to v0.29.0 2023-07-26 14:48:19 +02:00
Marten Seemann
c08313f032 chore: update go-libp2p to v0.28.1
Co-authored-by: Jorropo <jorropo.pgm@gmail.com>
2023-07-26 14:48:19 +02:00
Henrique Dias
a8c63537f2
feat(gateway): support for ipip-412 parameters 2023-07-24 11:09:09 +02:00
Henrique Dias
394d72db4c refactor: replace boxo/ipld/car by ipld/go-car 2023-06-29 16:10:49 +02:00
Henrique Dias
dae41836c0 chore: bump to boxo master 2023-06-29 13:05:08 +02:00
Marcin Rataj
3da4e5b409
fix(gateway): include CORS on subdomain redirects (#9994) 2023-06-27 11:11:21 +00:00
Henrique Dias
5156f21162
feat(ipns): records with V2-only signatures (#9932) 2023-06-20 14:24:31 +02:00
Jorropo
f3ca75947f chore: bump go-libp2p-kad-dht for deadlock fix 2023-06-20 07:56:19 +02:00
Henrique Dias
8bba03d8bf
chore: bump boxo to 0.10.1 (#9970) 2023-06-19 15:07:33 +02:00
Jorropo
82fd9ec329
cmds/dag/import: pin roots by default (#9966)
This is a partial revert of b685355ca8.
Closes #9765 with compromise agreed in https://github.com/ipfs/kubo/issues/9765#issuecomment-1593117410
2023-06-15 16:41:59 +02:00
Jorropo
44c5ec0505 chore: update dht and libp2p for identify stream block
Streams used to be blocked on ping IO because we didn't handled the DHT ping check asynchronously.

Include fixes from libp2p/go-libp2p-kad-dht#851
Fixes #9957
2023-06-15 12:57:54 +02:00
Rod Vagg
b685355ca8
feat!: dag import - don't pin roots by default (#9926)
* feat!: dag import - don't pin roots by default

Fixes: https://github.com/ipfs/kubo/issues/9765

* test(ipip-402): dag import

this adds basic regression test that guards behavior
around partial cars with or without pinning

* docs(ipip-402): ipip and dag import changelog

---------

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-06-14 20:45:34 +00:00
Henrique Dias
18db5935ef
fix: more stable prometheus test (#9944) 2023-06-13 14:43:57 +02:00
Jorropo
b55cd72657 fix: print rcmgr to logger 2023-06-12 16:25:22 +02:00
Henrique Dias
e2128107f6 Revert "feat: adds secp256k1 keypair type to key gen command, adds test cases"
This reverts commit 67e1a173fc.
2023-06-12 15:44:12 +02:00
Jorropo
8138e00024 chore: last dependency update for v0.21-rc1 2023-06-12 15:26:05 +02:00
Henrique Dias
ad9e208ad6
chore: bump to boxo 0.10 (#9928) 2023-06-09 12:29:07 +02:00
Henrique Dias
2716cd987f
feat(gateway): support for IPIP-402 CAR params (#9914) 2023-06-08 17:32:18 +02:00
Jorropo
30f5e54e19 chore: update dependencies ahead of 0.21 release 2023-06-08 14:02:26 +02:00
Jorropo
e7294cbdff feat: warn users who are falling behind reprovides
Fixes: #9704
Fixes: #9702
Fixes: #9703
Fixes: #9419
2023-06-08 10:05:30 +02:00
Jorropo
5de86ab047 chore: migrate test/dependencies to boxo 2023-06-08 10:05:30 +02:00
Arthur Gavazza
726eabead4
feat: add deduplication ratio to 'ipfs dag stat' (#9787) 2023-06-06 15:17:45 +02:00
Henrique Dias
eb265f7cd8
fix(gateway)!: no duplicate payload during subdomain redirects (#9913)
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-06-02 08:14:19 +02:00
Nikhilesh Susarla
6eef0b4eef
fix: 'ipfs routing findpeer' explicitly fails when searching for self (#9903) 2023-06-01 12:19:29 +02:00
Henrique Dias
dfd244816a
feat(gateway): human error pages, dag-cbor/dag-json preview (#9904)
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-05-31 23:43:11 +00:00
imthe1
67e1a173fc feat: adds secp256k1 keypair type to key gen command, adds test cases 2023-05-31 19:05:05 +02:00
Henrique Dias
c10b804449
feat: Gateway.DeserializedResponses config flag (#9789)
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-05-30 00:59:34 +02:00
Henrique Dias
e3126eb3e0
chore: upgrade boxo and fix test function signature (#9896) 2023-05-25 15:36:33 +02:00
Lucas Molas
63561f3baf
feat(bootstrap): save connected peers as backup bootstrap peers (#8856)
* feat(bootstrap): save connected peers as backup temporary bootstrap ones
* fix: do not add duplicated oldSavedPeers, not using tags, reuse
randomizeList
* test: add regression test
* chore: add changelog

---------

Co-authored-by: Henrique Dias <hacdias@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2023-05-25 14:39:49 +02:00
Jorropo
da28fbc65a chore: use assert.NoError instead of assert.Nil for errors 2023-05-16 15:42:54 +02:00
Henrique Dias
65b8d530b0
test: add streaming delegated routing test (#9874) 2023-05-16 14:05:22 +02:00
Henrique Dias
13c379604f
fix(gateway): redirect /ipns/b58mh to /ipns/cidb36 (#9785) 2023-05-16 13:09:39 +02:00
Henrique Dias
0e7331c952
feat: update boxo with routing streaming 2023-05-10 08:14:48 +00:00
Henrique Dias
c178c51835
fix: deadlock on retrieving WebTransport addresses (#9857)
Co-authored-by: Marco Polo <git@marcopolo.io>
2023-05-08 16:11:03 +02:00
Laurent Senta
a6f446a4ba
test: deterministic ipns fixtures during sharness gateway tests (#9667) 2023-05-03 15:01:13 +02:00
Gus Eggert
3a15a0fc55
test: fix Docker tests in GH Actions (#9812)
GH Actions recently changed their Docker build implementation and it
has a different output than previously, causing the tests that parse
its output to fail.

This switches the test to not parse Docker build output. The parsing
was used to extract the image ID while still showing logs. A better
way to show logs and still know the image ID is to tag it, which is
what this now does.

This also renames the Docker tests so that they run earlier. This
takes better advantage of the fact that the sharness tests are run in
parallel. Since the Docker test are quite long, and are at the end of
the list, the test runner is not running other tests in parallel while
the Docker tests are running.
2023-04-12 09:03:11 +02:00
Gus Eggert
03a98280e3 test: port twonode test to Go, remove multinode test
The multinode test is effectively the same as the twonode test. There
are some problems with it too: it *looks* like it's testing the
Websocket transport with the "listentype,ws" IPTB attribute, but that
attribute doesn't actually exist in ipfs/iptb-plugins, so it does
nothing, so that test actually just runs the same test twice (Yamux
disabled). Furthermore, this is just the same test as in the mplex
twonode test. So this just removes the useless multinode test
entirely.

Also, this removes the part of the twonode test that checks the amount
of data transferred over Bitswap. This is an implementation detail of
Bitswap, it's not appropriate to test this in an end-to-end test as it
depends on algorithmic details of how Bitswap works, and has nothing
to do with transports. This is probably more appropriate as a perf or
benchmark test of Bitswap.

This also moves equivalent functionality from jbenet/go-random-files
into the testutils package. This just copies the code and modifies it
slightly for better ergonomics.
2023-04-10 14:57:15 -04:00
Marten Seemann
3c363eb658 update go-libp2p to v0.27.0 2023-04-06 23:15:33 +02:00