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

Update t0 v0.33.1 #2

Draft
wants to merge 232 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
90b3b0a
examples: update go-libp2p to v0.27.1 (#2254)
marten-seemann Apr 14, 2023
6c57225
swarm: remove unused variable in addrDial (#2257)
sukunrt Apr 20, 2023
8195d59
quic: fix race condition when generating random holepunch packet (#2263)
marten-seemann Apr 27, 2023
994ac33
githooks: add a githook to check that the test-plans go.mod is tidied…
marten-seemann Apr 28, 2023
2e2417b
nat: remove unused NAT method from the Mapping interface
marten-seemann Apr 3, 2023
2940f5b
nat: rename NewMapping to AddMapping, remove unused Mapping return value
marten-seemann Apr 3, 2023
2f7bd5d
nat: use a single Go routine to renew NAT mappings
marten-seemann Apr 3, 2023
b195e26
natmgr: remove unused Ready method
marten-seemann Apr 8, 2023
9a22437
nat: properly remove port mapping
marten-seemann Apr 8, 2023
2a9a938
nat: replace alloc-heavy nat.Mapping with explicit GetMapping method
marten-seemann Apr 8, 2023
f67db22
move more of the NAT mapping logging to the NAT manager
marten-seemann Apr 8, 2023
c04fe5d
remove ugly private mockgen workaround
marten-seemann Apr 12, 2023
ee4276c
webtransport: initialize the certmanager when creating the transport …
marten-seemann May 4, 2023
86150de
Revert "webtransport: initialize the certmanager when creating the tr…
MarcoPolo May 5, 2023
d708b87
webtransport: only add cert hashes if we already started listening (#…
marten-seemann May 5, 2023
5aa5859
tests: add docks for debugging flaky tests (#2216)
sukunrt May 8, 2023
02a1a02
chore: add interop testing to release checklist (#2269)
p-shahi May 9, 2023
97315c0
ci: run interop tests on self-hosted runners (#2281)
marten-seemann May 9, 2023
5d4b739
quic: prioritise listen connections for reuse (#2262)
sukunrt May 9, 2023
713b216
websocket: switch back to the gorilla library (#2280)
marten-seemann May 11, 2023
a0ff265
swarm: log unexpected listener errors (#2277)
MarcoPolo May 11, 2023
1066b74
tests: add comprehensive end-to-end tests for connection gating (#2200)
marten-seemann May 11, 2023
c198023
examples: fix flaky multipro TestMain (#2289)
sukunrt May 15, 2023
9dadf97
net/mock: mimic Swarm's event and notification behavior in MockNet (#…
Wondertan May 16, 2023
cc3a04c
update webtransport-go to v0.5.3 (#2298)
marten-seemann May 18, 2023
d5556a1
metrics: add instance filter to all dashboards (#2301)
sukunrt May 20, 2023
4b7d43b
identify: don't send default protocol version (#2303)
marten-seemann May 24, 2023
c33df57
transport integration tests: add tests for resource manager (#2285)
MarcoPolo Jun 1, 2023
2407bd0
update go-nat to v0.2.0, use context on AddMapping and RemoveMapping …
marten-seemann Jun 2, 2023
bd031d0
identify: filter received addresses based on the node's remote addres…
marten-seemann Jun 2, 2023
a652353
swarm: Dedup addresses to dial (#2322)
MarcoPolo Jun 2, 2023
e2ec448
feat:add contexts to all peerstore methods (#2312)
chaitanyaprem Jun 3, 2023
32f4cc9
identify: don't save signed peer records (#2325)
marten-seemann Jun 3, 2023
1c1b94e
revert "feat:add contexts to all peerstore methods (#2312)" (#2328)
marten-seemann Jun 3, 2023
585ba62
swarm: implement smart dialing logic (#2260)
sukunrt Jun 4, 2023
1774e99
holepunch: add metrics (#2246)
sukunrt Jun 5, 2023
0537441
swarm: improve documentation for the DefaultDialRanker (#2336)
marten-seemann Jun 6, 2023
da86ab8
chore: add 0.28.0 changelog (#2335)
p-shahi Jun 7, 2023
6b5095c
swarm: cleanup address filtering logic (#2333)
sukunrt Jun 7, 2023
b5785f1
swarm: make smart-dialing opt in (#2340)
sukunrt Jun 8, 2023
79a521d
changelog: improve description of smart dialing (#2342)
marten-seemann Jun 8, 2023
f11037a
Clear stream scope if we error (#2345)
MarcoPolo Jun 9, 2023
f2824aa
chore: update deps (#2332)
marten-seemann Jun 9, 2023
80e14fc
swarm: use RLock for DialBackoff reads (#2354)
sukunrt Jun 12, 2023
cd18f8a
swarm: fix stale DialBackoff comment (#2353)
sukunrt Jun 12, 2023
494353a
nat: add HasDiscoveredNAT method for checking NAT environments (#2358)
sukunrt Jun 12, 2023
7771eae
release v0.28.0 (#2344)
sukunrt Jun 12, 2023
425e8b1
docs: fix some comments errors (#2356)
sysvm Jun 13, 2023
b21298c
chore: Update .github/workflows/stale.yml [skip ci]
web-flow Jun 14, 2023
0fa942a
rcmgr: fix link to dashboards in README (#2363)
marten-seemann Jun 14, 2023
9e1e7a9
examples: update go-libp2p to v0.28.0 (#2366)
sukunrt Jun 15, 2023
4f0d962
test: document why InstantTimer is required (#2351)
sukunrt Jun 15, 2023
df3bab6
webtransport: close the challenge stream after the Noise handshake (#…
Jorropo Jun 15, 2023
4991144
transport tests: many streams and lots of data (#2296)
MarcoPolo Jun 15, 2023
6e90371
dashboards: finish metrics effort (#2362)
marten-seemann Jun 16, 2023
39920bf
metrics: add example for metrics and dashboard (#2232)
MarcoPolo Jun 16, 2023
4d28844
fix: in the swarm move Connectedness emit after releasing conns (#2373)
Jorropo Jun 16, 2023
796160f
identify: set stream deadlines for Identify and Identify Push streams…
marten-seemann Jun 19, 2023
a9ec45e
metrics: make it possible to spin up Grafana using docker-compose (#2…
marten-seemann Jun 21, 2023
1e43dbb
rcmgr: register prometheus metrics with the libp2p registerer (#2370)
sukunrt Jun 21, 2023
df27ca9
rcmgr: test snapshot defaults and that we keep consistent defaults (#…
MarcoPolo Jun 21, 2023
2a1fb39
network: don't allocate in DedupAddrs (#2395)
marten-seemann Jun 27, 2023
2f66131
basichost / blankhost: wrap errors (#2331)
Wondertan Jun 27, 2023
c704018
swarm: implement blackhole detection (#2320)
sukunrt Jun 27, 2023
ad83377
rcmgr: move StatsTraceReporter to rcmgr package (#2388)
sukunrt Jun 28, 2023
ab6ea8c
identify: use zero-alloc slice sorting function (#2396)
marten-seemann Jun 28, 2023
4d7354e
chore: Update .github/workflows/stale.yml [skip ci]
web-flow Jun 28, 2023
cee2c61
metrics: provide separate docker-compose files for OSX and Linux (#2397)
marten-seemann Jun 28, 2023
a199af9
docs: fix some comments (#2391)
sysvm Jun 28, 2023
9ae8c3a
swarm: implement Happy Eyeballs ranking (#2365)
sukunrt Jun 28, 2023
1b3ea96
transport tests: remove mplex tests (#2402)
marten-seemann Jun 30, 2023
d368394
metrics: deduplicate code in examples (#2404)
MarcoPolo Jul 1, 2023
48e94b1
chore: remove outdated info in README and link to libp2p-implementers…
p-shahi Jul 1, 2023
6a5abc7
rcmgr: enable metrics by default (#2389) (#2409)
MarcoPolo Jul 6, 2023
803c110
docs: Add a Github workflow for checking dead links (#2406)
SahibYar Jul 6, 2023
b8922ea
net/mock: support ConnectionGater in MockNet (#2297)
ajsutton Jul 7, 2023
03e9821
swarm: make black hole detection configurable (#2403)
sukunrt Jul 7, 2023
5f52c38
identify: disable racy TestLargeIdentifyMessage with race detector (#…
marten-seemann Jul 10, 2023
98fc435
swarm: change relay dial delay to 500ms (#2421)
sukunrt Jul 10, 2023
a639f22
holepunch: skip racy TestDirectDialWorks (#2419)
sukunrt Jul 10, 2023
d24d818
transport integration tests: make TestMoreStreamsThanOurLimits less f…
MarcoPolo Jul 10, 2023
222ac43
swarm: enable smart dialing by default (#2420)
sukunrt Jul 10, 2023
24f0b43
update go-multiaddr to v0.10.1, use Unique function from there (#2407)
marten-seemann Jul 10, 2023
6263bf9
identify: filter nat64 well-known prefix ipv6 addresses (#2392)
sukunrt Jul 11, 2023
a2b5ce1
autonat: fix typo in WithSchedule option comment (#2425)
bryanchriswhite Jul 13, 2023
7a14b9a
quic: Update to quic-go v0.36.2 (#2424)
MarcoPolo Jul 13, 2023
b12ff22
chore: update deps ahead of the v0.29 release (#2427)
marten-seemann Jul 14, 2023
f97fc6c
swarm: deprecate libp2p.DialRanker option (#2430)
sukunrt Jul 14, 2023
0673bc9
webtransport: reject listening on a multiaddr with a certhash (#2426)
MarcoPolo Jul 14, 2023
5fbf7fa
Release version v0.29.0 (#2431)
MarcoPolo Jul 14, 2023
a3a38c9
basichost: remove invalid comment (#2435)
sukunrt Jul 19, 2023
ffe51de
examples: fix description of command line flags for pubsub (#2400)
downIoads Jul 28, 2023
0738e2f
examples: update go-libp2p to v0.29.0 (#2432)
MarcoPolo Aug 1, 2023
b013b9e
chore: add notable project requirement (#2453)
p-shahi Aug 2, 2023
056ff1d
core/crypto: restrict RSA keys to <= 8192 bits (#2454)
MarcoPolo Aug 3, 2023
67590fc
update quic-go to v0.36.3, fixing RSA key size vulnerability (#2455)
marten-seemann Aug 3, 2023
4fecbd3
swarm: don't open new streams over transient connections (#2450)
sukunrt Aug 3, 2023
a5986ef
chore: delete templates [skip ci] (#2470)
web3-bot Aug 11, 2023
d97929e
chore: update golang-lru to v2.0.4, fixing semver violation (#2448)
marten-seemann Aug 12, 2023
e5e5728
update go-multiaddr to v0.11.0 (#2467)
marten-seemann Aug 14, 2023
9ec8719
identify: fix sorting of observed addresses (#2476)
marten-seemann Aug 14, 2023
39c3d45
peerstore: deprecate the database-backed peerstore (#2475)
marten-seemann Aug 15, 2023
7505304
swarm: remove leftover TODO (#2474)
marten-seemann Aug 15, 2023
efd009a
metrics: add links to public dashboards (#2486)
sukunrt Aug 15, 2023
0950f11
quic: drop support for QUIC draft-29 (#2487)
MarcoPolo Aug 16, 2023
3302ffe
swarm: remove unnecessary reqno for pending request tracking (#2460)
sukunrt Aug 16, 2023
1f1cf0c
webtransport: check for UDP multiaddr component in address matcher (#…
Jorropo Aug 16, 2023
3e2296a
basichost: use byte representation of WebTransport multiaddr as map k…
Jorropo Aug 16, 2023
0116a8e
tests: add a CertHashes testcase in TestInferWebtransportAddrsFromQui…
Jorropo Aug 16, 2023
beeac11
cleanup: add continue in case of failure in the (*BasicHost).Addrs ce…
Jorropo Aug 16, 2023
d6af4c2
quic: update quic-go to v0.37.5 (#2497)
marten-seemann Aug 17, 2023
b413817
use standard library sha256 implementation for Go 1.21 (#2309)
Jorropo Aug 17, 2023
09334f8
transport tests: refactor workers in TestMoreStreamsThanOurLimits (#2…
MarcoPolo Aug 17, 2023
83ad98b
muxer: remove support for mplex (#2498)
marten-seemann Aug 18, 2023
f36c8da
chore: remove unused and outdated package-list.json (#2499)
marten-seemann Aug 18, 2023
edfa3f9
transport tests: add deadline tests (#2286)
MarcoPolo Aug 19, 2023
1738b26
ci: copy new Unified CI templates and bump go.mod to Go 1.20 (#2471)
web3-bot Aug 19, 2023
b33ff3f
update dependencies ahead of the v0.30 release (#2504)
marten-seemann Aug 20, 2023
43dc942
release v0.30.0 (#2505)
marten-seemann Aug 21, 2023
59902c7
chore: be more descriptive about where public dashboards come from (#…
p-shahi Aug 22, 2023
178b454
metrics: update dashboard names from libp2p to go-libp2p (#2512)
sukunrt Aug 23, 2023
05d104e
examples: update go-libp2p to v0.30.0 (#2507)
marten-seemann Aug 24, 2023
0ab4b2c
quic: don't claim to be able to dial draft-29 in CanDial (#2520)
marten-seemann Aug 25, 2023
c42a6ee
update quic-go to v0.38.1 (#2506)
marten-seemann Aug 25, 2023
471bea4
core: add ErrPeerIDMismatch error type to replace ad-hoc errors (#2451)
aschmahmann Aug 25, 2023
0bb4a0a
swarm: return errors on filtered addresses when dialing (#2461)
sukunrt Aug 25, 2023
fb17182
swarm: fix Unwrap for DialError, implement Unwrap for TransportError …
sukunrt Aug 25, 2023
9c71997
swarm: return a more meaningful error when dialing QUIC draft-29 (#2524)
marten-seemann Aug 25, 2023
f1f72d2
ci: limit interop tests runs to core folders (#2513)
p-shahi Aug 26, 2023
3135799
identify: disable racy test when running with race detector (#2526)
marten-seemann Aug 26, 2023
51d12cb
host: disable black hole detection on autonat dialer (#2529)
sukunrt Aug 28, 2023
8047eec
Import and adapt code from go-libp2p-http
hsanjuan Oct 18, 2017
42ddb93
Increase coverage
hsanjuan Oct 18, 2017
34c91c0
Make Listener, Conn and Addr private.
hsanjuan Oct 19, 2017
c83e3f9
gx publish 0.0.10
hsanjuan Jun 27, 2018
3320c8f
Reset streams when no reading is going to be done anymore
hsanjuan Jun 27, 2018
e1571b1
Reset streams: do not close server while reading
hsanjuan Jun 27, 2018
c0236c2
Do not reset streams on close immediately. Close first. The reset aft…
hsanjuan Jun 28, 2018
e5230c8
migrate to consolidated types.
raulk May 26, 2019
5b7c7c3
Update README links and copyright
hsanjuan Jun 6, 2019
377c557
Pass context to dial and do not hardcode it
hsanjuan Sep 27, 2019
1d06565
feat: use go-libp2p-core 0.7.0 stream interfaces
Stebalien Nov 2, 2020
9d0d5b7
fix staticcheck
marten-seemann May 19, 2021
25a1aa9
test: wait for inner goroutine to finish
Stebalien Jul 21, 2021
f5c31d1
Update to latest libp2p
hsanjuan Jun 20, 2022
d9c36b1
Expose some read-only methods on the underlying Stream interface (#67)
dirkmc Aug 18, 2022
734a468
update go-libp2p to v0.22.0 (#73)
nisainan Sep 2, 2022
51512e4
feat: Implement HTTP spec (#2438)
MarcoPolo Aug 29, 2023
081dc35
p2p/http: cache json wellknown mappings in the .well-known handler (#…
Jorropo Aug 29, 2023
9ebf043
swarm: track dial cancellation reason (#2532)
sukunrt Aug 30, 2023
46e4973
reuseport: use DialContext instead of Dial to fail quickly (#2541)
sukunrt Aug 30, 2023
5b67542
dashboards: improve naming for black hole panel (#2539)
sukunrt Aug 30, 2023
1ebfa40
release v0.31.0 (#2543)
p-shahi Aug 30, 2023
0b6c6dc
chore: update examples to v0.31 (#2544)
p-shahi Aug 31, 2023
5d92b68
libp2phttp: don't initialise ServeMux if not nil (#2548)
sukunrt Sep 1, 2023
a73b98a
basichost: handle the SetProtocol error in NewStream (#2555)
marten-seemann Sep 4, 2023
a4f8dae
swarm: don't dial unspecified addresses (#2560)
sukunrt Sep 7, 2023
c7a9beb
examples: stop using deprecated peer.ID.Pretty (#2563)
Icarus9913 Sep 11, 2023
4cfb53c
upgrader: drop support for multistream simultaneous open (#2557)
marten-seemann Sep 12, 2023
1006ab7
add WebRTC Direct transport implementation (#2337)
marten-seemann Sep 12, 2023
f5fdbce
mock: use go.uber.org/mock (#2540)
sukunrt Sep 14, 2023
d471860
core/peer: remove deprecated Encode function (#2566)
marten-seemann Sep 14, 2023
31e686c
core/peer: remove deprecated ID.Pretty method (#2565)
marten-seemann Sep 14, 2023
601d70d
websocket: don't resolve /dnsaddr addresses (#2571)
marten-seemann Sep 14, 2023
4775dd3
swarm: fix DialPeer behaviour for transient connections (#2547)
sukunrt Sep 18, 2023
77dddea
webrtc: fail Write early if deadline has exceeded before the call (#2…
sukunrt Sep 21, 2023
397f3e5
webrtc: put buffer back to pool (#2574)
sukunrt Sep 22, 2023
41ca2d0
webrtc: fix deadlock on connection close (#2580)
sukunrt Sep 25, 2023
e730472
update gomock to v0.3.0 (#2581)
marten-seemann Sep 25, 2023
2d72c5f
config: warn if connmgr limits conflict with rcmgr (#2527)
piersy Sep 25, 2023
c214d36
quicreuse: remove QUIC metrics tracer (#2582)
marten-seemann Sep 27, 2023
61cd953
interop: fix redis env var (#2585)
sukunrt Sep 27, 2023
017fd98
libp2phttp: don't strip `/` suffix when mounting handler (#2552)
sukunrt Oct 10, 2023
be96e18
Fix typos in comments and a test failure message (#2600)
vuittont60 Oct 10, 2023
1d6ee31
swarm: add loopback to low timeout filter (#2595)
dennis-tra Oct 12, 2023
73a23c8
webrtc: correctly report incoming packet address on muxed connection …
sukunrt Oct 12, 2023
63c5543
docs: fix typos (#2604)
tomkysar Oct 15, 2023
62d22b9
swarm: wait for transient connections to upgrade for NewStream (#2542)
sukunrt Oct 15, 2023
a6998c1
Fix missing deprecation tag (#2605)
librick Oct 16, 2023
d4f0358
tcp: fix build on riscv64 (#2590)
marten-seemann Oct 17, 2023
f393ce3
webrtc: fix race in TestMuxedConnection (#2607)
sukunrt Oct 18, 2023
2f0b25f
swarm: use happy eyeballs ranking for TCP dials (#2573)
sukunrt Oct 19, 2023
4698d50
circuitv2: don't check ASN for private addrs (#2611)
sukunrt Oct 19, 2023
c894e51
swarm: cleanup stream handler goroutine (#2610)
sukunrt Oct 20, 2023
78b2a17
swarm: use typed atomics (#2612)
marten-seemann Oct 21, 2023
ae06390
test/basichost: fix flaky test due to rcmgr (#2613)
marten-seemann Oct 21, 2023
56ac96e
quic: update quic-go to v0.39.1, set a static resumption token genera…
marten-seemann Oct 22, 2023
ef22d48
ci: migrate to renamed interop test action (#2617)
thomaseizinger Oct 24, 2023
61db386
swarm: fix recursive resolving of DNS multiaddrs (#2564)
marten-seemann Oct 25, 2023
8558cfe
webrtc: fix race in TestRemoveConnByUfrag (#2620)
sukunrt Oct 26, 2023
3cc5b02
identify: don't filter dns addresses based on remote addr type (#2553)
sukunrt Oct 26, 2023
f482eaa
chore: update dependencies for v0.32 release (#2621)
sukunrt Oct 27, 2023
664130e
chore: update js-libp2p examples repo (#2624)
sukunrt Oct 27, 2023
41cc9c8
release v0.32.0 (#2625)
sukunrt Oct 27, 2023
9411a62
swarm: fix timer Leak in the dial loop (#2636)
Jorropo Nov 6, 2023
2776421
release v0.32.1 (#2637)
sukunrt Nov 7, 2023
1fcb797
Update docs from RSA to Ed25519 (#2606)
librick Nov 11, 2023
c1b5ea8
examples: remove unused 'SetStreamHandler' (#2598)
joohhnnn Nov 11, 2023
d79c32f
chore: update examples to v0.32 (#2626)
sukunrt Nov 12, 2023
1b11554
ci: ignore protoc version comment on go generate (#2631)
galargh Nov 14, 2023
c6b087e
pstoremanager: fix race condition when removing peers from peer store…
marten-seemann Nov 17, 2023
b8e0ef4
chore: add resource manager dashboard to docker-compose (#2641)
burdiyan Nov 18, 2023
42a0705
chore: fix typos (#2608)
shuoer86 Nov 18, 2023
06b56eb
swarm: fix grafana dashboard templating (#2640)
burdiyan Nov 27, 2023
4f921ee
tcp: fix build on loong64 (#2655)
wojiushixiaobai Dec 1, 2023
7e54f05
rcmgr: fix connmgr connection limit conflict warning (#2648)
sukunrt Dec 1, 2023
2761f43
webrtc: clarify that there is no reuseport functionality (#2652)
sukunrt Dec 2, 2023
275bd61
security: remove separate licenses for Noise and TLS (#2663)
marten-seemann Dec 7, 2023
52df22a
chore: update go security policy url (#2665)
sukunrt Dec 9, 2023
c6047a0
chore: update go-libp2p-asn-util (#2673)
Jorropo Dec 19, 2023
74d9031
chore: fix typos in comment (#2674)
bodhi-crypo Dec 29, 2023
0fcff35
examples: call NewStream from only one side (#2677)
Halimao Dec 29, 2023
82ea5eb
chore: update chat-with-mdns example readme (#2678)
Halimao Dec 31, 2023
dc58a40
chore: remove unnecessary conversions (#2680)
estensen Jan 9, 2024
3375c19
webrtc: fix flaky TestMaxInFlightRequests (#2682)
sukunrt Jan 9, 2024
8e98b8c
defaults: do TLS by default for encryption (#2650)
Jorropo Jan 24, 2024
3a0b806
chore: fix typos (#2689)
keienWang Jan 25, 2024
78279a9
chore(p2p/host): fix typos (#2683)
fakefraud Jan 25, 2024
d379119
chore: update go-multiaddr 0.12.2 (#2691)
Jorropo Jan 26, 2024
88897ba
chore: Update .github/workflows/stale.yml [skip ci]
web-flow Jan 31, 2024
94c595b
libp2phttp: fix flaky ExampleHost_listenOnHTTPTransportAndStreams (#2…
sukunrt Feb 1, 2024
2b314cc
chore: fix typos (#2694)
GoodDaisy Feb 5, 2024
3675efe
docs: fix broken link in README
keienWang Feb 6, 2024
a182e2f
chore(cfg): Add config.yml for new issues (#2688)
dhuseby Feb 6, 2024
c3b71e8
chore: testify fix got, expected transpositions (#2666)
dozyio Feb 14, 2024
ba4942f
chore: drop support for go1.20 (#2708)
sukunrt Feb 18, 2024
ba7f0e2
chore: remove unused GenerateEKeyPair function (#2711)
sukunrt Feb 19, 2024
8563ed1
quic: upgrade quic-go to v0.41.0 (#2710)
sukunrt Feb 20, 2024
71e865b
webrtc: wait for FIN_ACK before closing data channels (#2615)
sukunrt Feb 21, 2024
04458a2
chore: update deps for v0.33 (#2713)
sukunrt Feb 21, 2024
be32484
release v0.33.0 (#2715)
sukunrt Feb 21, 2024
7969f00
Update quic-go to v0.42.0. Release v0.33.1 (#2741)
MarcoPolo Mar 18, 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
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .githooks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Git Hooks

This directory contains useful Git hooks for working with go-libp2p.

Install them by running
```bash
git config core.hooksPath .githooks
```
13 changes: 13 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

pushd ./test-plans > /dev/null
go mod tidy
if [[ -n $(git diff --name-only -- "go.mod" "go.sum") ]]; then
echo "go.mod / go.sum in test-plans not tidied"
errored=true
fi
popd > /dev/null

if [ "$errored" = true ]; then
exit 1
fi
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: Technical Questions
url: https://github.com/libp2p/go-libp2p/discussions/new?category=q-a
about: Please ask technical questions in the go-libp2p Github Discusions forum.
- name: Community-wide libp2p Discussion
url: https://discuss.libp2p.io
about: Discussions and questions about the libp2p community.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ about: 'Start a new libp2p release.'
- [ ] [go-libp2p-kad-dht](https://github.com/libp2p/go-libp2p-kad-dht/)
- [ ] [go-libp2p-pubsub](https://github.com/libp2p/go-libp2p-pubsub) (In case of breaking changes.)
- [ ] [ipfs/kubo](https://github.com/ipfs/kubo)
- [ ] Add new release to interop tester in [test-plans](https://github.com/libp2p/test-plans/)
- [ ] Make required changes to the release process.
11 changes: 0 additions & 11 deletions .github/workflows/automerge.yml

This file was deleted.

81 changes: 17 additions & 64 deletions .github/workflows/go-check.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,20 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

on: [push, pull_request]
name: Go Checks

on:
pull_request:
push:
branches: ["master","release-v0[0-9][0-9]"]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true

jobs:
unit:
runs-on: ubuntu-latest
name: All
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- id: config
uses: protocol/.github/.github/actions/read-config@master
- uses: actions/setup-go@v3
with:
go-version: 1.20.x
- name: Run repo-specific setup
uses: ./.github/actions/go-check-setup
if: hashFiles('./.github/actions/go-check-setup') != ''
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@4970552d932f48b71485287748246cf3237cebdf # 2023.1 (v0.4.0)
- name: Check that go.mod is tidy
uses: protocol/[email protected]
with:
run: |
go mod tidy
if [[ -n $(git ls-files --other --exclude-standard --directory -- go.sum) ]]; then
echo "go.sum was added by go mod tidy"
exit 1
fi
git diff --exit-code -- go.sum go.mod
- name: gofmt
if: success() || failure() # run this step even if the previous one failed
run: |
out=$(gofmt -s -l .)
if [[ -n "$out" ]]; then
echo $out | awk '{print "::error file=" $0 ",line=0,col=0::File is not gofmt-ed."}'
exit 1
fi
- name: go vet
if: success() || failure() # run this step even if the previous one failed
uses: protocol/[email protected]
with:
run: go vet ./...
- name: staticcheck
if: success() || failure() # run this step even if the previous one failed
uses: protocol/[email protected]
with:
run: |
set -o pipefail
staticcheck ./... | sed -e 's@\(.*\)\.go@./\1.go@g'
- name: go generate
uses: protocol/[email protected]
if: (success() || failure()) && fromJSON(steps.config.outputs.json).gogenerate == true
with:
run: |
git clean -fd # make sure there aren't untracked files / directories
go generate -x ./...
# check if go generate modified or added any files
if ! $(git add . && git diff-index HEAD --exit-code --quiet); then
echo "go generated caused changes to the repository:"
git status --short
exit 1
fi
go-check:
uses: pl-strflt/uci/.github/workflows/[email protected]
with:
go-generate-ignore-protoc-version-comments: true
90 changes: 17 additions & 73 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -1,76 +1,20 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

on: [push, pull_request]
name: Go Test

on:
pull_request:
push:
branches: ["master","release-v0[0-9][0-9]"]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
cancel-in-progress: true

jobs:
unit:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu", "windows", "macos" ]
go: ["1.19.x","1.20.x"]
env:
COVERAGES: ""
runs-on: ${{ fromJSON(vars[format('UCI_GO_TEST_RUNNER_{0}', matrix.os)] || format('"{0}-latest"', matrix.os)) }}
name: ${{ matrix.os }} (go ${{ matrix.go }})
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- id: config
uses: protocol/.github/.github/actions/read-config@master
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- name: Go information
run: |
go version
go env
- name: Use msys2 on windows
if: matrix.os == 'windows'
shell: bash
# The executable for msys2 is also called bash.cmd
# https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#shells
# If we prepend its location to the PATH
# subsequent 'shell: bash' steps will use msys2 instead of gitbash
run: echo "C:/msys64/usr/bin" >> $GITHUB_PATH
- name: Run repo-specific setup
uses: ./.github/actions/go-test-setup
if: hashFiles('./.github/actions/go-test-setup') != ''
- name: Run tests
if: contains(fromJSON(steps.config.outputs.json).skipOSes, matrix.os) == false
uses: protocol/[email protected]
with:
# Use -coverpkg=./..., so that we include cross-package coverage.
# If package ./A imports ./B, and ./A's tests also cover ./B,
# this means ./B's coverage will be significantly higher than 0%.
run: go test -v -shuffle=on -coverprofile=module-coverage.txt -coverpkg=./... ./...
- name: Run tests (32 bit)
# can't run 32 bit tests on OSX.
if: matrix.os != 'macos' &&
fromJSON(steps.config.outputs.json).skip32bit != true &&
contains(fromJSON(steps.config.outputs.json).skipOSes, matrix.os) == false
uses: protocol/[email protected]
env:
GOARCH: 386
with:
run: |
export "PATH=$PATH_386:$PATH"
go test -v -shuffle=on ./...
- name: Run tests with race detector
# speed things up. Windows and OSX VMs are slow
if: matrix.os == 'ubuntu' &&
contains(fromJSON(steps.config.outputs.json).skipOSes, matrix.os) == false
uses: protocol/[email protected]
with:
run: go test -v -race ./...
- name: Collect coverage files
shell: bash
run: echo "COVERAGES=$(find . -type f -name 'module-coverage.txt' | tr -s '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV
- name: Upload coverage to Codecov
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
with:
files: '${{ env.COVERAGES }}'
env_vars: OS=${{ matrix.os }}, GO=${{ matrix.go }}
go-test:
uses: libp2p/uci/.github/workflows/[email protected]
with:
go-versions: '["1.21.x", "1.22.x"]'
21 changes: 17 additions & 4 deletions .github/workflows/interop-test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
name: Interoperability Testing
on:
workflow_dispatch:
pull_request:
paths:
- 'config/**'
- 'core/**'
- 'internal/**'
- 'p2p/**'
- 'test-plans/**'
push:
branches:
- "master"
paths:
- 'config/**'
- 'core/**'
- 'internal/**'
- 'p2p/**'
- 'test-plans/**'

jobs:
run-multidim-interop:
name: Run multidimensional interoperability tests
runs-on: ubuntu-22.04
run-transport-interop:
name: Run transport interoperability tests
runs-on: ${{ fromJSON(vars['INTEROP_TEST_RUNNER_UBUNTU'] || '"ubuntu-22.04"') }}
steps:
- uses: actions/checkout@v3
- name: Build image
run: docker build -t go-libp2p-head -f test-plans/PingDockerfile .
- uses: libp2p/test-plans/.github/actions/run-interop-ping-test@master
- uses: libp2p/test-plans/.github/actions/run-transport-interop-test@master
with:
test-filter: go-libp2p-head
extra-versions: ${{ github.workspace }}/test-plans/ping-version.json
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Markdown Link Checking
on:
pull_request:
push:
branches:
- "master"

jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes' # show only broken links
use-verbose-mode: 'yes'
config-file: .github/workflows/markdown-links-config.json # for removing any false positives
22 changes: 22 additions & 0 deletions .github/workflows/markdown-links-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"ignorePatterns": [
{
"pattern": "^http://localhost"
},
{
"pattern": "^https://twitter.com/"
},
{
"pattern": "^https://opensource.org/"
}
],
"aliveStatusCodes": [200],
"httpHeaders": [
{
"urls": ["https://docs.github.com/"],
"headers": {
"Accept-Encoding": "*"
}
}
]
}
18 changes: 12 additions & 6 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

name: Release Checker

on:
pull_request_target:
paths: [ 'version.json' ]
types: [ opened, synchronize, reopened, labeled, unlabeled ]
workflow_dispatch:

permissions:
contents: write
pull-requests: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release-check:
uses: protocol/.github/.github/workflows/release-check.yml@master
with:
go-version: 1.20.x
uses: pl-strflt/uci/.github/workflows/[email protected]
14 changes: 10 additions & 4 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

name: Releaser

on:
push:
paths: [ 'version.json' ]
workflow_dispatch:

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.sha }}
cancel-in-progress: true

jobs:
releaser:
uses: protocol/.github/.github/workflows/releaser.yml@master
uses: pl-strflt/uci/.github/workflows/releaser.yml@v0.0
25 changes: 6 additions & 19 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,12 @@ name: Close and mark stale issue

on:
schedule:
- cron: '0 0 * * *'
- cron: '0 0 * * *'

permissions:
issues: write
pull-requests: write

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days.'
close-issue-message: 'This issue was closed because it is missing author input.'
stale-issue-label: 'kind/stale'
any-of-labels: 'need/author-input'
exempt-issue-labels: 'need/triage,need/community-input,need/maintainer-input,need/maintainers-input,need/analysis,status/blocked,status/in-progress,status/ready,status/deferred,status/inactive'
days-before-issue-stale: 6
days-before-issue-close: 7
enable-statistics: true
uses: pl-strflt/.github/.github/workflows/[email protected]
Loading
Loading