Commit Graph

5130 Commits

Author SHA1 Message Date
Thomas Eizinger a5d4b2b33c
Migrate to test-plan composite action (#2039)
* Initial migration to test-plan composite action

* Update docs
2023-02-02 08:52:05 -08:00
Marten Seemann 20c975e992
chore: remove license files from the eventbus package (#2042) 2023-02-01 23:51:18 -08:00
Marco Munizaga 753e48e5ce
rcmgr: *: Always close connscope (#2037)
* rcmgr: Fix connection accounting

* Always close conn scope in the case of errors

* circuitv2: fix resource accounting when connection upgrading fails

---------

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2023-02-01 09:59:30 -08:00
Prithvi Shahi 3031bab81f
chore: remove textual roadmap in favor for Starmap (#2036) 2023-01-31 16:20:05 -08:00
Marco Munizaga 34dc11547a
swarm metrics: fix datasource for dashboard (#2024) 2023-01-27 14:38:21 -08:00
Sukun 6b9c11680e
consistently use protocol.ID instead of strings (#2004)
* Change PeerStore interface to use protocol.ID

This reduces the string to protocol.ID translations happening
at various places in the code

* Fix misc cases of protocol.ID conversion

* Merge multistream changes

* Use protocol.ID in network.ConnectionState

* don't update examples

* fix error message tests

* merge new go-multistream changes

* update test-plans go mod

* change transport back to string
2023-01-27 01:39:59 -08:00
Marten Seemann 3919359872
swarm: add a basic metrics tracer (#1973)
* swarm: add very basic metrics for opening and closing connections

* swarm: use a sync.Pool to make metrics collection allocation-free

* swarm: introduce a MetricsTracer interface

* swarm: add the transport to the dial error metric

* swarm: add Grafana dashboard

* swarm: use the prometheus namespace option
2023-01-26 16:18:55 -08:00
Adin Schmahmann d5a280e6f6
Expose muxer ids (#2012)
* docs: remove documentation indicating that mplex is enabled by default

* feat: expose yamux ID as a constant

* feat: expose mplex ID as a constant

* reword muxer config documentation

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2023-01-25 15:53:43 -08:00
Sukun 084de0692a
Clean addresses with peer id before adding to addrbook (#2007)
* Clean addresses with peer id before adding to addrbook

Fixes: https://github.com/libp2p/go-libp2p/issues/2001

* Filter p2p addresses with invalid peerid

Add error reporting from Host.Connect

* Nits

Co-authored-by: Marco Munizaga <git@marcopolo.io>
2023-01-25 15:53:08 -08:00
Marco Munizaga 6a373312c3
feat: ci test-plans: Parse test timeout parameter for interop test (#2014)
* Parse test timeout parameter for interop test

* Update test-plans/cmd/ping/main.go

Co-authored-by: Marten Seemann <martenseemann@gmail.com>

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2023-01-25 15:52:41 -08:00
Marco Munizaga faddf1aa41
Export resource manager errors (#2008) 2023-01-23 18:28:21 -08:00
Marten Seemann e004bd3fc5
peerstore: make it possible to use an empty peer ID (#2006) 2023-01-22 20:28:57 +13:00
Marco Munizaga 5b5eea45d3
Add ci flakiness score to readme (#2002) 2023-01-19 13:46:52 -08:00
Antonio Navarro Perez 9760794920
rcmgr: fix: Ignore zero values when marshalling Limits. (#1998) 2023-01-17 17:51:31 -08:00
Marco Munizaga 638329ddb6
CI: Fast multidimensional Interop tests (#1991)
* Test interop on changes

* Add pull request event

* Nits

* Rm un-needed default

* Use build tag

* Point to master for interop-test

* Point to master for interop-test

* Go mod tidy
2023-01-13 13:50:44 -08:00
Prithvi Shahi a4e16efbbe
feat: add some users to the readme (#1981) 2023-01-12 16:46:54 -08:00
Marten Seemann b3ab45431d
ci: use GitHub token to install protoc (#1996)
* ci: use GitHub token to install protoc

* fix: use github.token instead of secrets.GITHUB_TOKEN

Co-authored-by: Piotr Galar <piotr.galar@gmail.com>
2023-01-12 14:59:36 -08:00
Marten Seemann bdbef49cdb
ci: run go generate as part of the go-check workflow (#1986) 2023-01-11 20:34:34 -08:00
Marten Seemann 58c4cb8553
Merge pull request #1979 from libp2p/google-protobuf
switch to Google's Protobuf library, make protobufs compile with go generate
2023-01-11 20:06:41 -08:00
Marten Seemann f1109c59c1 use Google's Protobuf library instead of GoGo 2023-01-12 16:43:50 +13:00
Marten Seemann 8baf05b71d peerstore: remove gogo-specific Protobuf magic 2023-01-09 09:46:30 +13:00
Marten Seemann 6e2f434578 peerstore: move the protobuf to pstoreds 2023-01-08 16:20:51 +13:00
Marten Seemann 4ad3734091
circuitv2: correctly set the transport in the ConnectionState (#1972) 2023-01-06 21:48:12 -08:00
Marten Seemann 2cae0eab9b
roadmap: remove optimizations of the TCP-based handshake (#1959) 2023-01-06 18:35:53 -08:00
Marten Seemann 2ac8a31112
Merge pull request #1975 from libp2p/identify-remove-delta
identify: remove support for Identify Delta
2023-01-06 18:14:52 -08:00
Marten Seemann 5095f44da2 identify: remove snapshot handling 2023-01-07 14:41:29 +13:00
Marten Seemann 56078a18f7 identify: simply stream handling logic when sending pushes 2023-01-07 14:41:29 +13:00
Marten Seemann aa1f32484a identify: remove support for Identify Delta 2023-01-07 14:41:27 +13:00
Marten Seemann 0e9abdf228 identify: emit EvtPeerProtocolsUpdated for Identify Push as well 2023-01-07 14:39:56 +13:00
Marten Seemann 2a49ff38ba
core: remove introspection package (#1978) 2023-01-06 17:24:28 -08:00
Marten Seemann 1943c649cd
identify: remove old code targeting Go 1.17 (#1964) 2023-01-06 17:23:04 -08:00
Marten Seemann c67d4b86e4
add WebTransport to the list of default transports (#1915) 2023-01-06 17:22:31 -08:00
Marten Seemann a9ec918148
core/crypto: drop all OpenSSL code paths (#1953) 2023-01-06 17:18:13 -08:00
muXxer 09c59cbbfb
chore: use generic LRU cache (#1980) 2023-01-05 12:19:53 -08:00
Marten Seemann fac76291e0 tcp: only register Prometheus counters when metrics are enabled 2023-01-02 13:24:00 +13:00
Marten Seemann e37ca354f1 quic: only register Prometheus counters when metrics are enabled 2023-01-02 13:18:06 +13:00
Marten Seemann 82315917f7
release v0.24.2 (#1969) 2022-12-30 20:36:29 -08:00
Marten Seemann 12131eef23
webtransport: update webtransport-go to v0.4.3 (#1968) 2022-12-29 18:22:11 -08:00
Marten Seemann e59aba2d09
webtransport: initialize a NullResourceManager if none is provided (#1962) 2022-12-29 15:28:09 -08:00
Marten Seemann 47f9ea1306
release v0.24.1 (#1945) 2022-12-11 17:01:03 -08:00
Marten Seemann 735891d229
routed host: return Connect error if FindPeer doesn't yield new addresses (#1946) 2022-12-11 16:59:38 -08:00
Marten Seemann 3f024f703e
chore: update examples to v0.24.0 (#1936) 2022-12-10 14:26:23 -08:00
Marten Seemann 3ecf0b9aa9
webtransport: fix flaky accept queue test (#1938) 2022-12-09 17:00:17 -08:00
Marten Seemann 2c82176c35
quic: fix race condition in TestClientCanDialDifferentQUICVersions (#1937) 2022-12-08 14:46:07 -08:00
Marten Seemann e368799d18
quic: update quic-go to v0.31.1 (#1942) 2022-12-08 13:14:31 -08:00
Marten Seemann d31bf35522
webtransport: update webtransport-go to v0.4.2 (#1941) 2022-12-08 11:51:59 -08:00
Marten Seemann 4c74181d0d
release v0.24.0 (#1934) 2022-12-05 23:10:27 -08:00
Marten Seemann ef603f4dc6
chore: update deps (#1932) 2022-12-05 22:26:08 -08:00
Marten Seemann 881a8008c8
ci: fix path to interop test plan composition file (#1933) 2022-12-05 21:53:56 -08:00
Marco Munizaga 5d22740c38
Disable support for signed/static TLS certificates in WebTransport (#1927) 2022-12-05 13:27:12 -08:00