Commit Graph

454 Commits

Author SHA1 Message Date
Gus Eggert
f855bfe6ef
feat: add basic gateway tracing (#8595)
* add deprecation warning when tracer plugins are loaded
* add response format attribute to span in gateway handler
* add note about tracing's experimental status in godoc
* add nil check for TTL when adding name span attrs
* add basic sharness test for integration with otel collector
* add nil check in UnixFSAPI.processLink
* test: sharness check all json objs for swarm span
* add env var docs to docs/environment-variables.md
* chore: pin the otel collector version
* add tracing spans per response type (#8841)
* docs: tracing with jaeger-ui

Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-04-04 19:24:05 +02:00
Lucas Molas
282ac7f1f5
fix(cli): ipfs add with multiple files of same name (#8493) 2022-04-03 10:40:38 -04:00
Marcin Rataj
a61c53f87f
feat(cmds): document deprecated RPC API commands (#8802)
* feat(cmds): add deprecated and experimental status

Added programmatic state annotation introduced in
https://github.com/ipfs/go-ipfs-cmds/pull/225
for already deprecated / experimental commands.

* chore: go-ipfs-cmds v0.7.0

Co-authored-by: Lucas Molas <schomatis@gmail.com>
2022-03-22 20:46:32 +01:00
Hector Sanjuan
943187d001 ErrNotFound changes: bubble tagged libraries.
Additionally fixes tests for new error message which went from

`ipld: <cid> not found`

to

`<cid> not found`
2022-03-19 00:16:45 +01:00
Jorropo
09aed2d63b
Merge pull request #8757 from ipfs/feat/err-not-found
Bubble ErrNotFound improvements.

The is a really nice UX improvement because it know tell you which ipld block is missing instead of a generic "not found".
2022-03-18 00:42:40 +01:00
Jorropo
7c2033f215 chore: update deps
The commits has been moved from the PR to master to avoid the deps breaking when github is gonna GC the PR commits.
2022-03-18 00:28:29 +01:00
Lucas Molas
519863ecab fix(core/node): unwrap fx error in node construction 2022-03-16 19:32:31 -03:00
Laurent Senta
8d549f03f3 fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
Laurent Senta
c9cf47dad5 config: remove go-ipfs-config code 2022-03-04 09:45:16 +01:00
Hector Sanjuan
7bb3bfbc33 Bubble ErrNotFound improvements 2022-03-02 18:29:29 +01:00
dependabot[bot]
5922eab08f
chore(deps): bump go.uber.org/fx from 1.15.0 to 1.16.0 (#8681)
Bumps [go.uber.org/fx](https://github.com/uber-go/fx) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/uber-go/fx/releases)
- [Changelog](https://github.com/uber-go/fx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/fx/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: go.uber.org/fx
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 09:16:30 -05:00
Adin Schmahmann
ebf86718c8 chore: update go-path 2022-02-11 09:19:20 -05:00
Thibault Meunier
a93907a40f
feat: DNS.MaxCacheTTL for DNS-over-HTTPS resolvers (#8615)
* feat: Add MaxCacheTTL option for DNS-over-HTTPS resolvers
* Update libp2p/go-doh-resolver dependencies to support Options
* feat: Add `DNS.MaxCacheTTL` config documentation
* docs: DNS.MaxCacheTTL
* chore: go-ipfs-config@v0.19.0
Co-authored-by: Gus Eggert <gus@gus.dev>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
2022-02-10 22:26:14 +01:00
dependabot[bot]
556c03848f
chore(deps): bump go.uber.org/zap from 1.19.1 to 1.21.0 (#8721)
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.19.1 to 1.21.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.19.1...v1.21.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-10 11:54:23 -05:00
Adin Schmahmann
1a040b016d
Merge pull request #6816 from ipfs/feat/mh-backed-datastore
feat: switch to raw multihashes for blocks
2021-12-13 15:37:16 -05:00
Adin Schmahmann
9913183038 chore: update go-ipfs-blockstore 2021-12-09 12:07:09 -05:00
Adin Schmahmann
615fb80d37 chore: update go-ipld-prime 2021-12-08 12:46:03 -05:00
Gus Eggert
024e84adec fix: update go-ds-flatfs to v0.5.1
Fixes #8579
2021-12-03 15:08:41 -05:00
Hector Sanjuan
b55a9435d5 Bump go-filestore and go-blockstore dependencies 2021-12-02 09:50:55 -05:00
Adin Schmahmann
d83e3149c5 chore: update deps 2021-11-30 14:45:43 -05:00
Mohsin Zaidi
ecd2628a16
Integrate go-dag-jose plugin (#8569)
* feat(dag-jose): integrate `go-dag-jose` plugin
* test(dag-jose): sharness test for dag-jose plugin

Co-authored-by: Eric Myhre <hash@exultant.us>
2021-11-30 10:58:15 -08:00
dependabot[bot]
4fb4c2dd48 chore(deps): bump github.com/gabriel-vasile/mimetype from 1.1.2 to 1.4.0
Bumps [github.com/gabriel-vasile/mimetype](https://github.com/gabriel-vasile/mimetype) from 1.1.2 to 1.4.0.
- [Release notes](https://github.com/gabriel-vasile/mimetype/releases)
- [Commits](https://github.com/gabriel-vasile/mimetype/compare/v1.1.2...v1.4.0)

---
updated-dependencies:
- dependency-name: github.com/gabriel-vasile/mimetype
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 19:18:52 -05:00
Adin Schmahmann
52c177ced9
feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563)
* plumb through go-datastore context changes

* update go-libp2p to v0.16.0
* use LIBP2P_TCP_REUSEPORT instead of IPFS_REUSEPORT
* use relay config
* making deprecation notice match the go-ipfs-config key
* docs(config): circuit relay v2
* docs(config): fix links and headers
* feat(config): Internal.Libp2pForceReachability

This switches to config that supports setting and reading
Internal.Libp2pForceReachability OptionalString flag

* use configuration option for static relays

* chore: go-ipfs-config v0.18.0

https://github.com/ipfs/go-ipfs-config/releases/tag/v0.18.0

* feat: circuit v1 migration prompt when Swarm.EnableRelayHop is set (#8559)
* exit when Swarm.EnableRelayHop is set
* docs: Experimental.ShardingEnabled migration

This ensures existing users of global sharding experiment get notified
that the flag no longer works + that autosharding happens automatically.

For people who NEED to keep the old behavior (eg. have no time to
migrate today) there is a note about restoring it with
`UnixFSShardingSizeThreshold`.

* chore: add dag-jose code to the cid command output

* add support for setting automatic unixfs sharding threshold from the config
* test: have tests use low cutoff for sharding to mimic old behavior
* test: change error message to match the current error
* test: Add automatic sharding/unsharding tests (#8547)
* test: refactored naming in the sharding sharness tests to make more sense

* ci: set interop test executor to convenience image for Go1.16 + Node
* ci: use interop master

Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Gus Eggert <gus@gus.dev>
Co-authored-by: Lucas Molas <schomatis@gmail.com>
2021-11-29 19:58:05 +01:00
Rod Vagg
9e8b6e5b50
chore: replace go-merkledag walk with go-ipld-prime traversal for dag export (#8506)
* chore: replace go-merkledag walk with go-ipld-prime traversal for dag export

This is "safe" now because we can limit duplicate block loads like
go-merkledag does and won't get trapped taking a long time for complex
DAGs. We can do this while we're using an exhaustive selector (like
ExploreAll here) but will need an alternative strategy when we go for
arbitrary selectors.
2021-10-26 14:07:31 -04:00
Marcin Rataj
8b7432d6e8
chore: go-ipfs-files v0.0.9 (#8488)
Closes #8445
Closes #8406
2021-10-05 23:53:52 +02:00
Adin Schmahmann
85e30b9b36 fuse: load unixfs adls as their dagpb substrates 2021-09-27 17:50:44 -04:00
Adin Schmahmann
5471092d85 chore: update go-path 2021-09-27 15:50:23 -04:00
Marten Seemann
4969ed2b17 chore: update go-libp2p to v0.15.0 2021-09-27 11:12:42 -04:00
Daniel Martí
d6127b062c make json, cbor, and git codecs error on empty input 2021-09-23 13:01:50 -04:00
Adin Schmahmann
0bd3d068f6 chore: update deps 2021-08-19 16:50:59 -04:00
Marten Seemann
c95d6ca08c update go-libp2p to v0.15.0-rc.1 2021-08-19 18:05:04 +02:00
Adin Schmahmann
7448340d20
support bitswap configurability (#8268)
* feat: extract Bitswap fx initialization to its own file
* chore: bump go-bitswap dependency
* feat: bump go-ipfs-config dependency and utilize the new Internal.Bitswap configuration options. Add documentation around the new OptionalInteger config type as well as the Internal.Bitswap options.
* docs(docs/config.md): move the table of contents towards the top of the document and update it

Co-authored-by: Petar Maymounkov <petarm@gmail.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
Co-authored-by: Gus Eggert <877588+guseggert@users.noreply.github.com>
2021-08-18 14:15:16 -04:00
Hannah Howard
f63a997c35
IPLD Prime In IPFS: Target Merge Branch (#7976)
* feat: switch to using go-ipld-prime for codecs, path resolution, and the `dag put/get` commands
* fix: `dag put/get` not roundtripping due to an extra new line being added (https://github.com/ipfs/go-ipfs/issues/3503)

More detailed information is in the CHANGELOG.md file. Very high level:
* IPLD codecs (and their plugins) must use go-ipld-prime
* Added support for the dag-json codec
* `dag get/put` use IPLD codec names from the multicodec table
* `dag get` defaults to dag-json output instead of json, but may output with other codecs
* Data model pathing can be achieved using the /ipld prefix. For example, you can use `/ipld/QmFoo/Links/0/Hash` to traverse through a DagPB node
* With `dag get/put` the DagPB field names have been changed to match the ones in the protobuf listed in the specification

Co-authored-by: hannahhoward <hannah@hannahhoward.net>
Co-authored-by: Daniel Martí <mvdan@mvdan.cc>
Co-authored-by: acruikshank <acruikshank@example.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
Co-authored-by: Will Scott <will.scott@protocol.ai>
Co-authored-by: Will Scott <will@cypherpunk.email>
Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
Co-authored-by: Eric Myhre <hash@exultant.us>
2021-08-17 13:32:49 -04:00
dependabot[bot]
88367e38e7
build(deps): bump go.uber.org/zap from 1.16.0 to 1.19.0
Bumps [go.uber.org/zap](https://github.com/uber-go/zap) from 1.16.0 to 1.19.0.
- [Release notes](https://github.com/uber-go/zap/releases)
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/uber-go/zap/compare/v1.16.0...v1.19.0)

---
updated-dependencies:
- dependency-name: go.uber.org/zap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-12 11:26:26 +00:00
Petar Maymounkov
cab67f6b66
point ipfs to pinner that syncs on every pin (#8231)
Pinner upgrades and fixes. Faster reindexing. Syncing while reindexing. Syncing on every pin operation. Logging all pin operations.

Co-authored-by: gammazero <gammazero@users.noreply.github.com>
2021-07-29 10:27:05 -07:00
dependabot[bot]
848cf690b5
build(deps): bump github.com/ipfs/go-fs-lock from 0.0.6 to 0.0.7
Bumps [github.com/ipfs/go-fs-lock](https://github.com/ipfs/go-fs-lock) from 0.0.6 to 0.0.7.
- [Release notes](https://github.com/ipfs/go-fs-lock/releases)
- [Commits](https://github.com/ipfs/go-fs-lock/compare/v0.0.6...v0.0.7)

---
updated-dependencies:
- dependency-name: github.com/ipfs/go-fs-lock
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-22 15:08:42 +00:00
Marten Seemann
d2ec458e6f update go-libp2p to v0.14.4 2021-07-17 09:41:04 +02:00
Adin Schmahmann
9599ad5d7d chore: update deps 2021-07-16 09:35:06 -07:00
Adin Schmahmann
ffe7578ddf fix: downgrade mimetype dependency 2021-06-30 11:03:17 -07:00
Steven Allen
d48d035317
Merge pull request #8124 from ipfs/dependabot/go_modules/github.com/coreos/go-systemd/v22-22.3.2
build(deps): bump github.com/coreos/go-systemd/v22 from 22.3.1 to 22.3.2
2021-06-24 17:37:44 -07:00
Marten Seemann
df70cff96c update go-libp2p to v0.14.3 2021-06-23 20:17:19 -07:00
Adin Schmahmann
f6641d1766 chore: switch tar-utils dep to ipfs org 2021-06-22 14:35:55 -07:00
Adin Schmahmann
95eebe4817 chore: update deps 2021-06-21 10:18:39 -07:00
dependabot[bot]
8d3c9c3110 build(deps): bump github.com/libp2p/go-libp2p from 0.14.0 to 0.14.2
Bumps [github.com/libp2p/go-libp2p](https://github.com/libp2p/go-libp2p) from 0.14.0 to 0.14.2.
- [Release notes](https://github.com/libp2p/go-libp2p/releases)
- [Commits](https://github.com/libp2p/go-libp2p/compare/v0.14.0...v0.14.2)

---
updated-dependencies:
- dependency-name: github.com/libp2p/go-libp2p
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-17 12:34:19 -07:00
dependabot[bot]
1ab632a00a build(deps): bump github.com/libp2p/go-libp2p-discovery
Bumps [github.com/libp2p/go-libp2p-discovery](https://github.com/libp2p/go-libp2p-discovery) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/libp2p/go-libp2p-discovery/releases)
- [Commits](https://github.com/libp2p/go-libp2p-discovery/compare/v0.5.0...v0.5.1)

---
updated-dependencies:
- dependency-name: github.com/libp2p/go-libp2p-discovery
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-17 12:33:03 -07:00
Marten Seemann
58aa218b90 update QUIC 2021-06-17 12:30:11 -07:00
Adin Schmahmann
9c8b1019e5 chore: update go-libp2p-yamux 2021-05-27 14:02:54 -07:00
Adin Schmahmann
3746c2d630 chore: update deps 2021-05-27 11:40:09 -07:00
dependabot[bot]
482d7ed532 build(deps): bump github.com/libp2p/go-doh-resolver from 0.3.0 to 0.3.1
Bumps [github.com/libp2p/go-doh-resolver](https://github.com/libp2p/go-doh-resolver) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/libp2p/go-doh-resolver/releases)
- [Commits](https://github.com/libp2p/go-doh-resolver/compare/v0.3.0...v0.3.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-20 12:19:32 -07:00
dependabot[bot]
6a029a48ab build(deps): bump github.com/ipfs/go-bitswap from 0.3.3 to 0.3.4
Bumps [github.com/ipfs/go-bitswap](https://github.com/ipfs/go-bitswap) from 0.3.3 to 0.3.4.
- [Release notes](https://github.com/ipfs/go-bitswap/releases)
- [Commits](https://github.com/ipfs/go-bitswap/compare/v0.3.3...v0.3.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-19 10:38:10 -07:00