Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce logging #5243

Closed
wants to merge 247 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
247 commits
Select commit Hold shift + click to select a range
fca30e3
introduce logging
drHuangMHT Mar 18, 2024
2f5ce0a
deps: bump opentelemetry dependency (#5181)
jxs Mar 21, 2024
46a043e
deps: bump obi1kenobi/cargo-semver-checks-action from 2.3 to 2.4
dependabot[bot] Mar 21, 2024
4a6d59c
deps: bump wasm-bindgen-test from 0.3.41 to 0.3.42
dependabot[bot] Mar 21, 2024
cdafe0e
deps: bump heck from 0.4.1 to 0.5.0
dependabot[bot] Mar 21, 2024
a579e69
deps: bump reqwest from 0.11.25 to 0.11.26
dependabot[bot] Mar 21, 2024
404a622
chore: address clippy lints and bump ci clippy stable
jxs Mar 25, 2024
b890b29
docs: fix typos in some comments
cuishuang Mar 25, 2024
0687385
fix(websocket-websys): change close code in drop implementation to 1000
sisou Mar 25, 2024
edaa2d8
chore: re-enable mergify for dependabot & trivial (#5264)
jxs Mar 25, 2024
e004e28
deps: bump bs58 from 0.5.0 to 0.5.1
dependabot[bot] Mar 25, 2024
b6f70de
deps: bump reqwest from 0.11.26 to 0.11.27
dependabot[bot] Mar 25, 2024
d41350e
deps: bump regex from 1.10.3 to 1.10.4
dependabot[bot] Mar 25, 2024
81f5d75
deps: bump bytes from 1.5.0 to 1.6.0
dependabot[bot] Mar 25, 2024
c597514
deps: bump smallvec from 1.13.1 to 1.13.2
dependabot[bot] Mar 25, 2024
f05e524
deps: bump the axum group with 1 update
dependabot[bot] Mar 25, 2024
c150c02
deps: bump proc-macro2 from 1.0.78 to 1.0.79
dependabot[bot] Mar 25, 2024
3b5fd35
deps: bump the opentelemetry group with 4 updates
dependabot[bot] Mar 25, 2024
461b787
deps: bump thiserror from 1.0.57 to 1.0.58
dependabot[bot] Mar 25, 2024
5bbec49
deps: bump async-trait from 0.1.77 to 0.1.78
dependabot[bot] Mar 25, 2024
38e2f7a
deps: bump syn from 2.0.52 to 2.0.55
dependabot[bot] Mar 25, 2024
b75c643
deps: bump anyhow from 1.0.80 to 1.0.81
dependabot[bot] Mar 25, 2024
1c5a527
deps: bump trybuild from 1.0.89 to 1.0.90
dependabot[bot] Mar 25, 2024
a372723
deps: bump pin-project from 1.1.4 to 1.1.5
dependabot[bot] Mar 25, 2024
89c684a
fix(kad): compute `jobs_query_capacity` accurately
junekhan Mar 27, 2024
695404d
feat(kad): FIND_NODE for own peer id returns closest peers
guillaumemichel Mar 28, 2024
9805339
feat(dht)!: update republish interval and expiration time defaults
lidel Mar 29, 2024
a543986
chore(deps): bump golang.org/x/net from 0.10.0 to 0.17.0
dependabot[bot] Mar 29, 2024
855ff8c
chore: raise MSRV to 1.75
jxs Mar 29, 2024
098dd02
deps: bump clap from 4.4.16 to 4.5.4
dependabot[bot] Mar 29, 2024
a94e943
fix(upnp): don't panic when gateway is dropped
jxs Mar 29, 2024
5c97692
deps: bump lru from 0.12.2 to 0.12.3
dependabot[bot] Apr 1, 2024
896344f
deps: bump syn from 2.0.55 to 2.0.57
dependabot[bot] Apr 1, 2024
ab4f664
deps: bump trybuild from 1.0.90 to 1.0.91
dependabot[bot] Apr 1, 2024
c34c48d
docs: fix typos in some comments (#5271)
crazeteam Apr 1, 2024
ad510f3
deps: bump web-sys from 0.3.68 to 0.3.69
dependabot[bot] Apr 1, 2024
0cc520b
deps: bump pin-project-lite from 0.2.13 to 0.2.14
dependabot[bot] Apr 1, 2024
1bc6c07
deps: bump async-trait from 0.1.78 to 0.1.79
dependabot[bot] Apr 1, 2024
6130cd6
deps: bump serde_json from 1.0.114 to 1.0.115
dependabot[bot] Apr 1, 2024
7580147
deps: bump js-sys from 0.3.68 to 0.3.69
dependabot[bot] Apr 1, 2024
367d2a1
deps: bump tokio from 1.36.0 to 1.37.0
dependabot[bot] Apr 1, 2024
9560261
deps: bump reqwest from 0.11.27 to 0.12.2
dependabot[bot] Apr 2, 2024
9785dca
deps: bump x509-parser from 0.15.1 to 0.16.0
dependabot[bot] Apr 2, 2024
3d16353
fix(kad): close progress whenever closer in range
maqi Apr 3, 2024
6be653f
chore(deps): update wasm tests go dependencies group
jxs Apr 3, 2024
4a61847
fix(kad): moving changelog entries
guillaumemichel Apr 3, 2024
9af02ca
deps: bump base64 from 0.21.7 to 0.22.0
dependabot[bot] Apr 4, 2024
945209a
fix: update Cargo.lock
jxs Apr 4, 2024
67ebcde
feat(kad): only dial if not connected AND not dialing
joshuef Apr 4, 2024
fdddacc
fix: allow relay to forward unlimited bytes
drHuangMHT Apr 4, 2024
47e19f7
feat(ping): impose `Sync` bound to `ping::Failure::Other`
drHuangMHT Apr 5, 2024
c92966d
deps: Promote tracing to workspace dependency
drHuangMHT Apr 6, 2024
8027c54
deps: bump getrandom from 0.2.12 to 0.2.13
dependabot[bot] Apr 8, 2024
16e5248
deps: bump syn from 2.0.57 to 2.0.58
dependabot[bot] Apr 8, 2024
f1df03e
deps: bump thirtyfour from 0.32.0-rc.10 to 0.32.0
dependabot[bot] Apr 8, 2024
9bb2a87
deps: bump reqwest from 0.12.2 to 0.12.3
dependabot[bot] Apr 8, 2024
042174e
deps: move libp2p-server and metrics example to use axum 0.7
drHuangMHT Apr 11, 2024
bec3037
deps: bump quote from 1.0.35 to 1.0.36
dependabot[bot] Apr 15, 2024
c1891bc
deps: bump async-trait from 0.1.79 to 0.1.80
dependabot[bot] Apr 15, 2024
ec9767a
deps: bump syn from 2.0.58 to 2.0.59
dependabot[bot] Apr 15, 2024
c504eef
deps: bump proc-macro2 from 1.0.79 to 1.0.80
dependabot[bot] Apr 15, 2024
bee8199
deps: promote tokio to workspace dependency
drHuangMHT Apr 15, 2024
33ac975
deps: bump getrandom from 0.2.13 to 0.2.14
dependabot[bot] Apr 17, 2024
9a6eccd
deps: bump either from 1.9.0 to 1.11.0
dependabot[bot] Apr 18, 2024
31457f6
feat(kad): derive Copy for kbucket::key::Key
drHuangMHT Apr 19, 2024
44bc941
chore: fix typos in doc comments
xiaoxianBoy Apr 21, 2024
cde12ee
deps: bump anyhow from 1.0.81 to 1.0.82
dependabot[bot] Apr 22, 2024
d481da7
deps: bump thiserror from 1.0.58 to 1.0.59
dependabot[bot] Apr 22, 2024
41b55d3
deps: bump serde_json from 1.0.115 to 1.0.116
dependabot[bot] Apr 22, 2024
db7c726
deps: bump proc-macro2 from 1.0.80 to 1.0.81
dependabot[bot] Apr 22, 2024
f525705
deps: bump syn from 2.0.59 to 2.0.60
dependabot[bot] Apr 22, 2024
d4dd9d0
deps: bump rmp-serde from 1.1.2 to 1.2.0
dependabot[bot] Apr 22, 2024
0340c52
deps: bump reqwest from 0.12.3 to 0.12.4
dependabot[bot] Apr 22, 2024
cf7b678
fix: update Cargo.lock
jxs Apr 25, 2024
2dcdda4
docs: fix typos in some comments
largemouth Apr 25, 2024
bc24ab9
deps: bump serde from 1.0.197 to 1.0.198
dependabot[bot] Apr 25, 2024
cc432ca
chore: fix typo in ipfs-kad example README.md
CieciaOne Apr 25, 2024
66e56fa
docs: enhance code documentation
DoTheBestToGetTheBest Apr 25, 2024
954c967
deps: promote `futures` to workspace dependency
drHuangMHT Apr 27, 2024
9d86b85
deps: bump parking_lot from 0.12.1 to 0.12.2
dependabot[bot] Apr 29, 2024
6b270f6
deps: bump data-encoding from 2.5.0 to 2.6.0
dependabot[bot] Apr 29, 2024
e5c072c
fix(relay): use `web_time` `Instant` and `SystemTime` versions for wa…
dariusc93 Apr 30, 2024
a91c48f
chore(swarm-derive): lower unreleased version to 0.32.2
jxs May 1, 2024
9331d9e
chore: address clippy lints for Rust 1.78
jxs May 7, 2024
910bf76
deps: bump r7kamura/rust-problem-matchers from 1.4.0 to 1.5.0
dependabot[bot] May 7, 2024
b9353d5
deps: bump num-traits from 0.2.18 to 0.2.19
dependabot[bot] May 8, 2024
d64173a
deps: bump base64 from 0.22.0 to 0.22.1
dependabot[bot] May 8, 2024
adb0d23
deps: bump trybuild from 1.0.91 to 1.0.93
dependabot[bot] May 8, 2024
0ba0b8a
deps: bump tokio-util from 0.7.10 to 0.7.11
dependabot[bot] May 8, 2024
6df2304
deps: bump rmp-serde from 1.2.0 to 1.3.0
dependabot[bot] May 8, 2024
fa55c62
deps: bump serde from 1.0.198 to 1.0.199
dependabot[bot] May 8, 2024
625743b
chore: fix typo at pull_request_template.md
kapenacunmin May 9, 2024
0e11c61
chore: add missing "cbor" feature flag on test
elton-cs May 9, 2024
b88ff17
deps: bump libc from 0.2.153 to 0.2.154
dependabot[bot] May 13, 2024
b37a788
deps: bump proc-macro2 from 1.0.81 to 1.0.82
dependabot[bot] May 13, 2024
95e0fca
deps: bump serde from 1.0.199 to 1.0.201
dependabot[bot] May 13, 2024
c6c09ad
deps: bump trybuild from 1.0.93 to 1.0.95
dependabot[bot] May 13, 2024
6e528ca
deps: bump syn from 2.0.60 to 2.0.63
dependabot[bot] May 13, 2024
64a4cf4
deps: bump rust-embed from 8.3.0 to 8.4.0
dependabot[bot] May 13, 2024
5f04bad
chore: remove default-features on futures
jxs May 13, 2024
65ffb8e
deps: update ring to 0.17.8
jxs May 13, 2024
ae0a187
deps(websocket): update futures-rustls to 0.26.0
jxs May 14, 2024
6061172
chore(deps): bump golang.org/x/net from 0.21.0 to 0.23.0
dependabot[bot] May 14, 2024
1aa016e
feat(quic): allow setting the MTU discovery upper bound
Wiezzel May 14, 2024
1fba389
chore: fix ci wasm tests
jxs May 16, 2024
2ad7a25
deps: bump anyhow from 1.0.82 to 1.0.83
dependabot[bot] May 16, 2024
451bcb6
deps: bump serde_json from 1.0.116 to 1.0.117
dependabot[bot] May 16, 2024
35f7f23
fix: Revert "deps: bump libc from 0.2.153 to 0.2.154"
oblique May 17, 2024
80f06d8
fix(webtransport-websys): handle exceptions in WebTransport::close
zvolin May 17, 2024
6c2eaca
deps(tls): upgrade rustls to 0.23
jxs May 18, 2024
e77a8ff
chore: remove chrome installation from CI wasm tests
jxs May 19, 2024
dca5b88
deps: bump thiserror from 1.0.59 to 1.0.60
dependabot[bot] May 19, 2024
b1530f3
deps: bump socket2 from 0.5.6 to 0.5.7
dependabot[bot] May 19, 2024
6276b0e
deps: bump thiserror from 1.0.60 to 1.0.61
dependabot[bot] May 20, 2024
9254fff
deps: bump trybuild from 1.0.95 to 1.0.96
dependabot[bot] May 20, 2024
9f7149d
deps: bump syn from 2.0.63 to 2.0.65
dependabot[bot] May 20, 2024
6f94459
deps: bump libc from 0.2.153 to 0.2.155
dependabot[bot] May 20, 2024
06c92d7
deps: bump proc-macro2 from 1.0.82 to 1.0.83
dependabot[bot] May 20, 2024
7b28c66
deps: bump either from 1.11.0 to 1.12.0
dependabot[bot] May 20, 2024
f99301a
deps: bump serde from 1.0.201 to 1.0.202
dependabot[bot] May 20, 2024
ad7ad5b
deps: bump instant from 0.1.12 to 0.1.13
dependabot[bot] May 20, 2024
6aaf284
deps: bump anyhow from 1.0.83 to 1.0.86
dependabot[bot] May 22, 2024
94fef37
deps(quic): update quinn to 0.11 and libp2p-tls to 0.4.0
retrohacker May 23, 2024
b83d3ce
chore(webtransport-websys): Change logs to debug level
oblique May 26, 2024
bf3e268
deps: bump getrandom from 0.2.14 to 0.2.15
dependabot[bot] May 27, 2024
5b419a8
deps: bump syn from 2.0.65 to 2.0.66
dependabot[bot] May 27, 2024
b57c85c
deps: bump quinn from 0.11.0 to 0.11.1
dependabot[bot] May 27, 2024
a8888a7
deps: bump proc-macro2 from 1.0.83 to 1.0.84
dependabot[bot] May 27, 2024
75288ca
deps: bump rustls from 0.23.5 to 0.23.8
dependabot[bot] May 28, 2024
38f8f21
fix(interop-tests): Update chrome container
oblique May 30, 2024
8c291fe
deps: bump tj-actions/glob from 21 to 22
dependabot[bot] Jun 1, 2024
796705c
chore: fix some typos in comment
NinaLua Jun 1, 2024
914e9c8
deps: deduplicate dependencies
onur-ozkan Jun 1, 2024
d8a3e45
deps: bump parking_lot from 0.12.2 to 0.12.3
dependabot[bot] Jun 1, 2024
fe4f55e
deps: bump proc-macro2 from 1.0.84 to 1.0.85
dependabot[bot] Jun 3, 2024
83facf3
deps: bump serde from 1.0.202 to 1.0.203
dependabot[bot] Jun 3, 2024
8607888
deps: bump async-io from 2.3.2 to 2.3.3
dependabot[bot] Jun 3, 2024
1987d96
deps: bump tokio from 1.37.0 to 1.38.0
dependabot[bot] Jun 3, 2024
3185fb9
deps: bump zeroize from 1.7.0 to 1.8.1
dependabot[bot] Jun 3, 2024
2c5a979
deps: bump the opentelemetry group across 1 directory with 4 updates
dependabot[bot] Jun 3, 2024
68301b8
fix(request-response): Report dial IO errors to the user
oblique Jun 4, 2024
af42122
fix(request-response): Report failure when streams are at capacity
oblique Jun 4, 2024
9dcc172
deps: promote tracing-subscriber to workspace level
drHuangMHT Jun 4, 2024
3da7d91
fix(webrtc-utils): read buffer only if empty message
DougAnderson444 Jun 5, 2024
01f7b40
fix: add example metrics's `tracing::info`
elecbug Jun 5, 2024
8f42576
chore: move rcgen to workspace dependency
jxs Jun 6, 2024
b1d94c2
chore: update deny.toml
jxs Jun 7, 2024
88635ea
chore: Use `libp2p-tls` from workspace
oblique Jun 8, 2024
f54423a
deps: use `web-time` instead of `instant`
dariusc93 Jun 8, 2024
3b61e57
chore: remove one `std::`
elecbug Jun 8, 2024
927428f
chore: Fixes versions and changelogs
oblique Jun 9, 2024
78fac65
deps: bump clap from 4.5.4 to 4.5.6
dependabot[bot] Jun 10, 2024
cc1f777
deps: bump regex from 1.10.4 to 1.10.5
dependabot[bot] Jun 10, 2024
75483e8
deps: bump rustls from 0.23.8 to 0.23.9
dependabot[bot] Jun 10, 2024
60e32c9
fix(ping): Fix panic in WASM caused by retrying on dial upgrade errors
oblique Jun 10, 2024
65658f5
deps: bump quinn from 0.11.1 to 0.11.2
dependabot[bot] Jun 11, 2024
28dd3b2
deps: bump futures-bounded from 0.2.3 to 0.2.4
dependabot[bot] Jun 11, 2024
c44ed01
chore: fix some comments
todaymoon Jun 12, 2024
9708b63
chore(tutorials): fix typo
hjorthjort Jun 12, 2024
fc9b1ad
chore(transports): remove duplicate word
taikoonwang Jun 12, 2024
5089299
fix: require rand feature when generating ecdsa key
Rjected Jun 12, 2024
7fa6684
chore: address clippy beta lints
jxs Jun 12, 2024
af5f0d3
deps: bump taiki-e/cache-cargo-install-action from 1 to 2
dependabot[bot] Jun 12, 2024
fb6bd36
deps: bump stun from 0.5.1 to 0.6.0
dependabot[bot] Jun 12, 2024
b3aa10d
deps: bump redis from 0.23.3 to 0.24.0
dependabot[bot] Jun 12, 2024
362c3d3
deps: bump sysinfo from 0.29.11 to 0.30.5
dependabot[bot] Jun 13, 2024
87b9394
deps: bump the hickory-dns group with 3 updates
dependabot[bot] Jun 13, 2024
43524e7
feat(swarm): add `peer_id` to `ListenFailure`
nathanielc Jun 13, 2024
a35e269
feat(tcp): make TCP_NODELAY the default
jxs Jun 13, 2024
a8a4957
chore: Update cargo semver
umgefahren Jun 17, 2024
0b1733d
refactor: remove redundant async signature
dariusc93 Jun 18, 2024
32e917f
fix(kad): correctly handle `NoKnownPeers` error when bootstrap
stormshield-frb Jun 18, 2024
605f208
feat(identify): add connection_id in event
stormshield-frb Jun 20, 2024
e28de77
feat(kad): Return multiaddrs alognside peer IDs
Wiezzel Jun 21, 2024
3759e19
fix: update Cargo.lock
jxs Jun 25, 2024
d1025d2
fix(kad): changelog
guillaumemichel Jun 25, 2024
df59f4f
deps: bump docker/build-push-action from 5 to 6
dependabot[bot] Jun 25, 2024
63313f4
chore(kad): remove unrequired generics
jxs Jun 27, 2024
23eb4f8
deps(ci): update cache-cargo-install-action
jxs Jul 4, 2024
36c2f94
feat(kad): improve automatic bootstrap
stormshield-frb Jul 4, 2024
693d7b7
feat(swarm): Show task `spawn` paths in tokio-console
oblique Jul 4, 2024
02fc027
fix(swarm): eliminating protocol cloning when nothing is happening
jakubDoka Jul 5, 2024
4e4b594
chore(swarm): reword CHANGELOG.md
jxs Jul 6, 2024
02fa7c8
feat: Add `ConnectionError` to `FromSwarm::ConnectionClosed`
dariusc93 Jul 9, 2024
c19c140
fix(webocket): Avoid panic when polling quicksink after errors
lexnv Jul 9, 2024
8e28edf
deps: bump obi1kenobi/cargo-semver-checks-action from 2.4 to 2.5
dependabot[bot] Jul 15, 2024
e2e98ad
fix: rendezvous identify example
EdwardJES Jul 16, 2024
1617abb
fix(tls): fix rustls panic due to critical libp2p extension
arpankapoor Jul 18, 2024
a749a41
fix(relay): Add resource limits to `CircuitReq` to be set
Prabhat1308 Jul 19, 2024
879d594
fix: update Cargo.lock
jxs Jul 24, 2024
4a16b61
deps: bump obi1kenobi/cargo-semver-checks-action from 2.5 to 2.6
dependabot[bot] Jul 25, 2024
055b179
docs(README): Add Ceylon to the notable users section.
dewmal Jul 29, 2024
41e2d5d
fix(relay): wake the relay Listener on close
stormshield-frb Jul 29, 2024
06b5847
chore: address clippy beta lints
jxs Jul 30, 2024
5b4c43c
chore: Update cargo semver binary
umgefahren Aug 1, 2024
5c11f4a
docs(swarm): doc DialError::Denied
jxs Aug 2, 2024
d733dfe
fix(websocket-websys): Unsubscribe from websocket events on drop
oblique Aug 2, 2024
53eb339
docs: remove myself as a maintainer
thomaseizinger Aug 2, 2024
079b2d6
refactor(*): Transport redesign
umgefahren Aug 3, 2024
4de8b83
deps: bump EmbarkStudios/cargo-deny-action from 1 to 2
dependabot[bot] Aug 5, 2024
732ade6
chore: remove RUSTFLAG from docs workflow
guillaumemichel Aug 5, 2024
823acd6
docs: As implied by #5517 make sure everything still builds on docs.rs
umgefahren Aug 6, 2024
98da34a
feat(websocket): Allow wss connections on IP addresses
oblique Aug 7, 2024
417968e
feat(kad): configurable bucket size
guillaumemichel Aug 8, 2024
ddda3be
chore: add Gui as a maintainer
guillaumemichel Aug 8, 2024
848e2e9
feat(autonat): Implement AutoNATv2
umgefahren Aug 8, 2024
7b2a77e
chore(metrics): Add `/tls/ws` in protocol stack tests
oblique Aug 8, 2024
4725f46
feat(websocket,websocket-websys): Add support for `/tls/ws`
oblique Aug 8, 2024
0c143ff
chore: prepare libp2p 0.54 release
jxs Aug 9, 2024
2357b04
fix(swarm): release libp2p-swarm-derive 0.35.0
jxs Aug 9, 2024
c34668e
chore(swarm): add PR number to 0.45.1 release
jxs Aug 10, 2024
0ca1388
fix(quic): release libp2p-quic 0.11.1
jxs Aug 10, 2024
8f5f268
chore: fix some comments
timesince Aug 13, 2024
539bdd9
Create funding.json (#5553)
dhuseby Aug 13, 2024
0861e39
chore: Fix identity changelog link
nazar-pc Aug 13, 2024
d9ee266
feat(kad): New provider record update strategy
Mivik Aug 13, 2024
41f67c9
chore(metrics): release 0.15.0
jxs Aug 19, 2024
d7beb55
chore(libp2p): release 0.54.1
jxs Aug 19, 2024
4dfc45b
refactor: ping tutorial using tokio
P1R Aug 21, 2024
f0cbd4f
chore(ci): update Rust stable version
jxs Aug 22, 2024
de8cba9
feat(kad): emit `ToSwarm::NewExternalAddrOfPeer` (#5549)
PanGan21 Aug 27, 2024
aa9317f
fix: Change `__Nonexhaustive` to `__Invalid` and update web-sys (#5569)
Prabhat1308 Aug 27, 2024
56b6c62
feat(kad): expose a kad query facility allowing dynamic num_results (…
maqi Aug 27, 2024
64c6eb2
chore: fix spelling issues (#5522)
nnsW3 Aug 27, 2024
e63975d
feat(allow-block-list): add getters and return results (#5572)
stormshield-frb Aug 28, 2024
cefd22b
feat(kad): add `mode` getter on `Behaviour` (#5573)
stormshield-frb Aug 29, 2024
95f40ff
chore: add funding.json (#5581)
AgeManning Aug 30, 2024
f38fb5c
chore(examples): remove unused dependency from rendezvous (#5580)
P1R Aug 30, 2024
f0589c8
chore(ci): update Dockerfiles Rust version (#5587)
jxs Sep 3, 2024
93169cc
fix(gossipsub): Attempt to publish to at least mesh_n peers (#5578)
jxs Sep 3, 2024
5137e4e
refactor(examples): use tokio instead of async-std in identify exampl…
P1R Sep 3, 2024
3837e33
feat(identify): add hide_listen_addrs config option (#5507)
b-zee Sep 5, 2024
cdc9638
chore: parameterise s3 build cache setup (#5586)
galargh Sep 13, 2024
a2a2816
fix(autonat): reject inbound dial request from peer if its not connec…
Eligioo Sep 13, 2024
fd4e1e1
chore(ci): only run interop tests on commits to master (#5604)
jxs Sep 20, 2024
c6cf7fe
fix(ci): address cargo-deny advisories (#5596)
jxs Sep 24, 2024
f3e0e55
chore(ci): address beta clippy lints (#5606)
jxs Sep 25, 2024
8ceadaa
fix(swarm): don't report `NewExternalAddrCandidate` if already confir…
stormshield-frb Sep 26, 2024
89d78dd
chore(autonat-v2): fix dial_back_to_non_libp2p test (#5621)
jxs Oct 4, 2024
b83dd95
chore: update interop test run condition (#5611)
guillaumemichel Oct 4, 2024
7669b16
deps: update metrics example dependencies (#5617)
jxs Oct 4, 2024
fcff3f8
refactor(examples): use tokio instead of async-std in relay-server (#…
P1R Oct 4, 2024
93ad28c
fix(server): removing dependency on libp2p-lookup (#5610)
guillaumemichel Oct 4, 2024
9a45db3
chore: update igd-next to 0.15.1 (#5625)
dariusc93 Oct 8, 2024
d3228ad
deps: bump Swatinem/rust-cache from 2.7.3 to 2.7.5 (#5633)
dependabot[bot] Oct 14, 2024
812a7cd
feat: make runtime features optional in swarm-test (#5551)
hanabi1224 Oct 15, 2024
fd3c353
Merge branch 'tracing-log-stderr' of https://github.com/drHuangMHT/ru…
drHuangMHT Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 17 additions & 15 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,22 +52,24 @@ pull_request_rules:
message: Approvals have been dismissed because the PR was updated after the `send-it` label was applied.
changes_requested: false

# - name: Approve trivial maintainer PRs
# conditions:
# - base=master
# - label=trivial
# - author=@libp2p/rust-libp2p-maintainers
# actions:
# review:
- name: Approve trivial maintainer PRs
conditions:
- base=master
- label=trivial
- author=@libp2p/rust-libp2p-maintainers
actions:
review:
type: APPROVE

# - name: Approve dependabot PRs of semver-compatible updates
# conditions:
# - author=dependabot[bot]
# - or:
# - title~=bump [^\s]+ from ([1-9]+)\..+ to \1\. # For major >= 1 versions, only approve updates with the same major version.
# - title~=bump [^\s]+ from 0\.([\d]+)\..+ to 0\.\1\. # For major == 0 versions, only approve updates with the same minor version.
# actions:
# review:
- name: Approve dependabot PRs of semver-compatible updates
conditions:
- author=dependabot[bot]
- or:
- title~=bump [^\s]+ from ([1-9]+)\..+ to \1\. # For major >= 1 versions, only approve updates with the same major version.
- title~=bump [^\s]+ from 0\.([\d]+)\..+ to 0\.\1\. # For major == 0 versions, only approve updates with the same minor version.
actions:
review:
type: APPROVE

queue_rules:
- name: default
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Please write a summary of your changes and why you made them.
This section will appear as the commit message after merging.
Please craft it accordingly.
For a quick primer on good commit mesages, check out this blog post: https://cbea.ms/git-commit/
For a quick primer on good commit messages, check out this blog post: https://cbea.ms/git-commit/

Please include any relevant issues in here, for example:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cache-factory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
shared-key: stable-cache

Expand Down
69 changes: 30 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ jobs:
with:
fetch-depth: 0

- uses: r7kamura/rust-problem-matchers@2c2f1016021a7455a6b5b4bbae31145f3b3cd83a #v1.4.0
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
shared-key: stable-cache
save-if: false
Expand All @@ -57,20 +57,20 @@ jobs:
cargo metadata --format-version=1 --no-deps | \
jq -e -r '.packages[] | select(.name == "'"$CRATE"'") | .dependencies | all(.name != "libp2p")'

- uses: taiki-e/cache-cargo-install-action@924d49e0af41f449f0ad549559bc608ee4653562 # v1
- uses: taiki-e/cache-cargo-install-action@v2
with:
tool: tomlq

- name: Extract version from manifest
run: |
CRATE_VERSION=$(cargo metadata --format-version=1 --no-deps | jq -e -r '.packages[] | select(.name == "'"$CRATE"'") | .version')

echo "CRATE_VERSION=$CRATE_VERSION" >> $GITHUB_ENV

- name: Enforce version in `workspace.dependencies` matches latest version
if: env.CRATE != 'libp2p'
run: |
SPECIFIED_VERSION=$(tomlq "workspace.dependencies.$CRATE.version" --file ./Cargo.toml)
SPECIFIED_VERSION=$(tq "workspace.dependencies.$CRATE.version" --file ./Cargo.toml)

echo "Package version: $CRATE_VERSION";
echo "Specified version: $SPECIFIED_VERSION";
Expand Down Expand Up @@ -107,28 +107,19 @@ jobs:
wasm_tests:
name: Run all WASM tests
runs-on: ubuntu-latest
env:
CHROMEDRIVER_VERSION: '114.0.5735.90'
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown

- uses: taiki-e/cache-cargo-install-action@v1
- uses: taiki-e/cache-cargo-install-action@v2
with:
tool: wasm-pack@0.12.0

- name: Install Google Chrome
run: |
curl -o /tmp/google-chrome-stable_amd64.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROMEDRIVER_VERSION}-1_amd64.deb
sudo dpkg -i /tmp/google-chrome-stable_amd64.deb

- name: Install chromedriver
uses: nanasess/setup-chromedriver@v2
with:
chromedriver-version: ${{ env.CHROMEDRIVER_VERSION }}

- name: Run all tests
run: ./wasm-tests/run-all.sh
Expand Down Expand Up @@ -156,9 +147,9 @@ jobs:
with:
target: ${{ matrix.target }}

- uses: r7kamura/rust-problem-matchers@2c2f1016021a7455a6b5b4bbae31145f3b3cd83a #v1.4.0
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
key: ${{ matrix.target }}
save-if: ${{ github.ref == 'refs/heads/master' }}
Expand All @@ -181,9 +172,9 @@ jobs:
with:
toolchain: ${{ env.MSRV }}

- uses: r7kamura/rust-problem-matchers@2c2f1016021a7455a6b5b4bbae31145f3b3cd83a #v1.4.0
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

Expand All @@ -202,9 +193,9 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- uses: r7kamura/rust-problem-matchers@2c2f1016021a7455a6b5b4bbae31145f3b3cd83a #v1.4.0
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
key: ${{ matrix.features }}
save-if: ${{ github.ref == 'refs/heads/master' }}
Expand All @@ -219,9 +210,9 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- uses: r7kamura/rust-problem-matchers@2c2f1016021a7455a6b5b4bbae31145f3b3cd83a #v1.4.0
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

Expand All @@ -234,7 +225,7 @@ jobs:
fail-fast: false
matrix:
rust-version: [
1.75.0, # current stable
1.80.0, # current stable
beta,
]
steps:
Expand All @@ -245,9 +236,9 @@ jobs:
toolchain: ${{ matrix.rust-version }}
components: clippy

- uses: r7kamura/rust-problem-matchers@2c2f1016021a7455a6b5b4bbae31145f3b3cd83a #v1.4.0
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

Expand All @@ -261,9 +252,9 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- uses: r7kamura/rust-problem-matchers@2c2f1016021a7455a6b5b4bbae31145f3b3cd83a #v1.4.0
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
save-if: ${{ github.ref == 'refs/heads/master' }}

Expand All @@ -280,9 +271,9 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- uses: r7kamura/rust-problem-matchers@2c2f1016021a7455a6b5b4bbae31145f3b3cd83a #v1.4.0
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
shared-key: stable-cache
save-if: false
Expand All @@ -295,7 +286,7 @@ jobs:
cargo check --manifest-path "$toml";
done

- uses: taiki-e/cache-cargo-install-action@v1
- uses: taiki-e/cache-cargo-install-action@v2
with:
tool: wasm-pack@0.12.0

Expand All @@ -317,9 +308,9 @@ jobs:
RUSTFLAGS: ''
steps:
- uses: actions/checkout@v4
- run: wget -q -O- https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.27.0/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz | tar -xz -C ~/.cargo/bin
- run: wget -q -O- https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.33.0/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz | tar -xz -C ~/.cargo/bin
shell: bash
- uses: obi1kenobi/cargo-semver-checks-action@48f4ef7da6d907d69d18249e0ba79aa98c61b9db # v2
- uses: obi1kenobi/cargo-semver-checks-action@7272cc2caa468d3e009a2b0a9cc366839348237b # v2.6

rustfmt:
runs-on: ubuntu-latest
Expand All @@ -330,7 +321,7 @@ jobs:
with:
components: rustfmt

- uses: r7kamura/rust-problem-matchers@2c2f1016021a7455a6b5b4bbae31145f3b3cd83a #v1.4.0
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- name: Check formatting
run: cargo fmt -- --check
Expand All @@ -342,7 +333,7 @@ jobs:

- uses: dtolnay/rust-toolchain@stable

- uses: r7kamura/rust-problem-matchers@2c2f1016021a7455a6b5b4bbae31145f3b3cd83a #v1.4.0
- uses: r7kamura/rust-problem-matchers@9fe7ca9f6550e5d6358e179d451cc25ea6b54f98 #v1.5.0

- name: Ensure `full` feature contains all features
run: |
Expand Down Expand Up @@ -374,12 +365,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5

- run: cargo install --version 0.10.0 pb-rs --locked

- name: Glob match
uses: tj-actions/glob@v21
uses: tj-actions/glob@v22
id: glob
with:
files: |
Expand All @@ -400,13 +391,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
- run: cargo metadata --locked --format-version=1 > /dev/null

cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1
- uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check advisories bans licenses sources
10 changes: 2 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- 'master'
tags:
- 'libp2p-server-**'
pull_request:

jobs:
server:
Expand All @@ -30,15 +29,10 @@ jobs:
images: ghcr.io/${{ github.repository }}-server

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./misc/server/Dockerfile
push: ${{ ! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} # Only push image if we have the required permissions, i.e. not running from a fork
cache-from: ${{ ! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' && type=s3,mode=max,bucket=libp2p-by-tf-aws-bootstrap,region=us-east-1,prefix=buildCache,name=rust-libp2p-server }}
cache-to: ${{ ! github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' && type=s3,mode=max,bucket=libp2p-by-tf-aws-bootstrap,region=us-east-1,prefix=buildCache,name=rust-libp2p-server }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
env:
AWS_ACCESS_KEY_ID: ${{ vars.TEST_PLANS_BUILD_CACHE_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TEST_PLANS_BUILD_CACHE_KEY }}
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
run: cargo +nightly doc --no-deps --workspace -F full
env:
RUSTDOCFLAGS: "--cfg docsrs"
RUSTFLAGS: "--cfg docsrs"
- name: Add index file
run: |
mkdir host-docs
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/interop-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Interoperability Testing
on:
pull_request:
push:
branches:
- "master"
Expand All @@ -12,6 +11,7 @@ concurrency:
jobs:
run-transport-interop:
name: Run transport interoperability tests
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ${{ fromJSON(github.repository == 'libp2p/rust-libp2p' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }}
strategy:
matrix:
Expand All @@ -24,21 +24,23 @@ jobs:
- name: Build ${{ matrix.flavour }} image
run: ./scripts/build-interop-image.sh
env:
AWS_ACCESS_KEY_ID: ${{ vars.TEST_PLANS_BUILD_CACHE_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TEST_PLANS_BUILD_CACHE_KEY }}
AWS_BUCKET_NAME: ${{ vars.S3_LIBP2P_BUILD_CACHE_BUCKET_NAME }}
AWS_ACCESS_KEY_ID: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_LIBP2P_BUILD_CACHE_AWS_SECRET_ACCESS_KEY }}
FLAVOUR: ${{ matrix.flavour }}

- name: Run ${{ matrix.flavour }} tests
uses: libp2p/test-plans/.github/actions/run-transport-interop-test@master
with:
test-filter: ${{ matrix.flavour }}-rust-libp2p-head
extra-versions: ${{ github.workspace }}/interop-tests/${{ matrix.flavour }}-ping-version.json
s3-cache-bucket: libp2p-by-tf-aws-bootstrap
s3-access-key-id: ${{ vars.TEST_PLANS_BUILD_CACHE_KEY_ID }}
s3-secret-access-key: ${{ secrets.TEST_PLANS_BUILD_CACHE_KEY }}
s3-cache-bucket: ${{ vars.S3_LIBP2P_BUILD_CACHE_BUCKET_NAME }}
s3-access-key-id: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_ACCESS_KEY_ID }}
s3-secret-access-key: ${{ secrets.S3_LIBP2P_BUILD_CACHE_AWS_SECRET_ACCESS_KEY }}
worker-count: 16
run-holepunching-interop:
name: Run hole-punch interoperability tests
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ${{ fromJSON(github.repository == 'libp2p/rust-libp2p' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }}
steps:
- uses: actions/checkout@v4
Expand All @@ -50,7 +52,7 @@ jobs:
with:
test-filter: rust-libp2p-head
extra-versions: ${{ github.workspace }}/hole-punching-tests/version.json
s3-cache-bucket: libp2p-by-tf-aws-bootstrap
s3-access-key-id: ${{ vars.TEST_PLANS_BUILD_CACHE_KEY_ID }}
s3-secret-access-key: ${{ secrets.TEST_PLANS_BUILD_CACHE_KEY }}
s3-cache-bucket: ${{ vars.S3_LIBP2P_BUILD_CACHE_BUCKET_NAME }}
s3-access-key-id: ${{ vars.S3_LIBP2P_BUILD_CACHE_AWS_ACCESS_KEY_ID }}
s3-secret-access-key: ${{ secrets.S3_LIBP2P_BUILD_CACHE_AWS_SECRET_ACCESS_KEY }}
worker-count: 16
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
## Main APIs

- [`libp2p-core` CHANGELOG](core/CHANGELOG.md)
- [`libp2p-identity` CHANGELOG](identity/CHANGELOG.md)
- [`libp2p-swarm` CHANGELOG](swarm/CHANGELOG.md)
- [`libp2p-swarm-derive` CHANGELOG](swarm-derive/CHANGELOG.md)

Expand All @@ -13,7 +14,6 @@
- [`libp2p-floodsub` CHANGELOG](protocols/floodsub/CHANGELOG.md)
- [`libp2p-gossipsub` CHANGELOG](protocols/gossipsub/CHANGELOG.md)
- [`libp2p-identify` CHANGELOG](protocols/identify/CHANGELOG.md)
- [`libp2p-identity` CHANGELOG](protocols/identity/CHANGELOG.md)
- [`libp2p-kad` CHANGELOG](protocols/kad/CHANGELOG.md)
- [`libp2p-mdns` CHANGELOG](protocols/mdns/CHANGELOG.md)
- [`libp2p-ping` CHANGELOG](protocols/ping/CHANGELOG.md)
Expand Down
Loading
Loading