Commit Graph

5144 Commits

Author SHA1 Message Date
Marco Munizaga 704321763e
Add sleep to fix flaky test (#2129) 2023-02-24 09:54:20 -08:00
Marco Munizaga 29785d22b3
basic_host: Fix flaky tests (#2136) 2023-02-24 09:53:42 -08:00
Marco Munizaga e3a16dd2a9
swarm: Check context once more before dialing (#2139) 2023-02-24 09:53:09 -08:00
Marten Seemann 9712390c6f
chore: update examples to v0.26.0 (#2134) 2023-02-23 14:53:11 -08:00
Marten Seemann a415d56066
release v0.26.0 (#2133) 2023-02-23 00:19:49 -08:00
Sukun f7bf9d85bb
identify: add more detailed metrics (#2126)
* add identify metrics

metrics added:
address count
protocol count
peer push support

* address review changes

* update dashboards
2023-02-22 23:29:57 -08:00
Marco Munizaga b74205d265
autorelay: refactor relay finder and start autorelay after identify (#2120)
* Refactor relay_finder and start autorelay after identify

* Clock fork

* Remove multiple timers and use a single rate limiting chan for findNodes

* Remove clock fork

* Rename

* Use scheduledWork.nextAllowedCallToPeerSource.Add(rf.conf.minInterval)

* Fix flaky test that relied on time
2023-02-22 21:51:59 -08:00
Marco Munizaga 640632419e
don't use the time value from the time.Ticker channel (#2127) 2023-02-22 20:47:02 -08:00
Marco Munizaga 90aedbddaa
Wrap conn with metrics (#2131) 2023-02-22 18:21:29 -08:00
Prithvi Shahi 7c762f1cb6
chore: update changelog for 0.26.0 (#2132) 2023-02-22 18:04:55 -08:00
Marten Seemann c03190e1ca
chore: update quic-go to v0.33.0 (#2124) 2023-02-22 14:04:31 -08:00
Marco Munizaga cb452294d5
circuitv2: Update proto files to proto3 (#2121) 2023-02-22 14:01:56 -08:00
Marco Munizaga 92492262a7
swarm: remove parallel tests from swarm tests (#2130) 2023-02-22 14:01:02 -08:00
Marten Seemann 90c99c3a7f
circuitv2: add a relay option to disable limits (#2125) 2023-02-22 13:57:20 -08:00
Marco Munizaga a8b1d51cb4
quic: fix stalled virtual listener (#2122)
* quic: Fix stalled listener

* Undo time fix

* Move check inside case
2023-02-22 10:01:49 -08:00
Sukun b2f119901f
swarm: add early muxer selection to swarm metrics (#2119)
* add early muxer selection to swarm metrics

* add pie chart for current early muxer connections
2023-02-21 22:06:06 -08:00
Sukun a491074d89
metrics: add options to disable metrics and to set Prometheus registerer (#2116)
* provided a WithRegisterer option for metrics

* provide a libp2p.Option to setup metrics
2023-02-20 22:48:17 -08:00
Sukun d9004d21b4
swarm: add ip_version to metrics (#2114)
* add ip_version to swarm metrics

* use "unknown" as a default for the IP version

---------

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2023-02-18 15:11:18 -08:00
Marco Munizaga 32f2f25529 Revert mistaken "Bump timeout"
This reverts commit f00c9507c3.
2023-02-17 23:04:59 +00:00
Marco Munizaga f00c9507c3 Bump timeout 2023-02-17 23:00:49 +00:00
Marten Seemann cec8c6584b
remove all circuit v1 related code (#2107)
* autorelay: remove support for circuit v1 nodes

* circuitv2: remove v1 backwards compatibility

* remove circuitv1 implementation only used for testing

* remove circuitv1 protocol implementation
2023-02-16 21:39:36 -08:00
Marten Seemann d686dbc79e
quic: don't send detailed error messages when closing connections (#2112) 2023-02-16 21:39:02 -08:00
Sukun 9f12163a3d
metrics: add no alloc metrics for eventbus, swarm, identify (#2108)
* add noalloc tests for identify, eventbus and swarm metrics

* add no cover buildtag
2023-02-16 19:57:44 -08:00
Marten Seemann 6c60c00673
chore: fix typo in Changelog (#2111)
* chore: fix typo in Changelog

* fix autonat dashboard loc

---------

Co-authored-by: Prithvi Shahi <shahi.prithvi@gmail.com>
2023-02-16 19:53:53 -08:00
Prithvi Shahi 35c8300400
chore: update changelog (#2109) 2023-02-16 12:47:01 -08:00
Prithvi Shahi d42a06d1e6
chore: unify dashboard location (#2110) 2023-02-16 12:46:43 -08:00
Sukun 3dcb4b503d
autonat: add metrics (#2086)
* add autonat metrics

* add benchmarks

* use increase instead of sum by with rate in dashboard

* add interface assertion

* add no alloc test

* update dashboard

* autonat: minor dashboard tweaks

---------

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2023-02-15 22:10:38 -08:00
Sukun 22954b389e
relaymanager: do not start new relay if one already exists (#2093)
* do not start new relay if one already exists

* Update p2p/host/relaysvc/relay.go

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

* test by emitting events

* fix race condition

* increase timeout

---------

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2023-02-15 21:13:20 -08:00
Sukun 84f2278766
autonat: don't emit reachability changed events on address change (#2092)
* don't emit events unless reachability changed

* remove nil address check

* fix test assertion

* speed up test

---------

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2023-02-15 14:42:09 -08:00
Prithvi Shahi 6e9dd01629
chore: update release.md (#2090) 2023-02-15 14:03:18 -08:00
Prithvi Shahi 7d20a45bff
chore: modify changelog entries (#2101) 2023-02-14 17:29:07 -08:00
Marco Munizaga e8d6f671a0
Introduce a changelog (#2084) 2023-02-14 15:49:56 -08:00
Sukun 0a40e7c0af
use atomic.Int32 and atomic.Int64 (#2096) 2023-02-14 12:52:55 -08:00
Sukun 3d9cc0176f
change atomic.Value to atomic.Pointer (#2088) 2023-02-13 18:47:34 -08:00
Marco Munizaga a857d40ee6
interop-tests: use new action with s3 caching (#2076)
* Use new test action

* Use master
2023-02-13 16:12:48 -08:00
Sukun ee07b39ad9
use atomic.Bool instead of int32 operations (#2089) 2023-02-13 15:08:28 -08:00
web3-bot 3a66ff89a1
sync: update CI config files (#2073)
* bump go.mod to Go 1.19 and run go fix

* stop using the deprecated io/ioutil package

* bump go.mod to Go 1.19 and run go fix

* bump go.mod to Go 1.19 and run go fix

* bump go.mod to Go 1.19 and run go fix

* stop using the deprecated io/ioutil package

* bump go.mod to Go 1.19 and run go fix

* stop using the deprecated io/ioutil package

* update .github/workflows/go-test.yml

* update .github/workflows/go-check.yml

* update .github/workflows/release-check.yml

* various fixes

* stop using deprecated math/rand.Read

---------

Co-authored-by: web3-bot <web3-bot@users.noreply.github.com>
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2023-02-12 01:18:10 -08:00
Marco Munizaga 985683722c
chore: update examples to v0.25.1 (#2080) 2023-02-11 13:57:03 -08:00
Marco Munizaga 5741b6c9bb
v0.25.1 (#2082) 2023-02-09 19:08:39 -08:00
Marco Munizaga 91d3a10912
chore: update go-multistream (#2081)
* Update go-multistream

* Mod tidy in test-plans
2023-02-09 16:39:14 -08:00
Marco Munizaga 5811309d22
Start host in mocknet (#2078) 2023-02-09 15:55:27 -08:00
Marco Munizaga f0af39e7b7
Release v0.25.0 (#2077) 2023-02-09 08:38:51 -08:00
Marten Seemann 5f8fe94f90
identify: add some basic metrics (#2069) 2023-02-09 16:33:35 +11:00
Marten Seemann a8d6111ba9
p2p/test/quic: use contexts with a timeout for Connect calls (#2070) 2023-02-09 16:32:27 +11:00
Marco Munizaga f4fc85de03
feat!: rcmgr: Change LimitConfig to use LimitVal type (#2000)
* rcmgr: Change LimitConfig to use LimitVal type

* Nits

* Remove DefaultReifiedLimits

* Use pointers for optional ResourceLimits

* Reify a nil pointer with defaults

* Fix maxints

* Move helper

* Return nil if everything is default

* Check for nil pointer

* Change terms

* Add IsDefault helper

* Use values instead of pointers for PartialLimitConfig

* Remove references to reify

* Unmarshal 0 limits as block all

* ResourceLimits can build on Limits interface objs

* Convert max int to unlimited

* Remove ToLimitConfigWithDefaults

* Rename to ToPartialLimitConfig
2023-02-08 17:48:58 -08:00
Marten Seemann 235f25b487
identify: refactor sending of Identify pushes (#1984)
* identify: cache the snapshot

* identify: refactor sending of Identify pushes

* identify: fix concurrency when sending pushes

* identify: fix timestamp handling

* identify: remove unneeded pushSemaphore

* identify: improve logging

* identify: use a sequence number instead of a timestamp

* identify: start with an empty snapshot

* identify: wait until we've actually finished setting up
2023-02-08 14:44:33 -08:00
Marten Seemann ad2f6d0223
chore: update webtransport-go to v0.5.1 (#2072) 2023-02-09 10:43:12 +13:00
Marco Munizaga 2f7aff277d
Update interop to match spec (#2049) 2023-02-08 08:35:55 -08:00
Marten Seemann 635cc650cf
chore: git-ignore various flavors of qlog files (#2064) 2023-02-07 21:10:50 -08:00
Marten Seemann 313b080ea4
rcmgr: add libp2p prefix to all metrics (#2063) 2023-02-06 19:58:12 -08:00