fb5c863d88
* plan/ping: fix test & use go 1.17 * plan/ping: fix dedup path * ping-interop: prepare base module and build script * ping-interop/go-v0.11: introduce legacy ping test (fix original) * ci: add interop reusable workflow * ci: add testground endpoint config * ping-interop: rewrite with new testground build config feature * ping-interop: add v0.20 version * ping-interop: fix build parameters * ci: add ping-interop-go runner * ci: use self hosted runner * ping-interop: name with the current git branch * ping-interop: use external proxy & drop build cache * ping-interop: support dependencies changes in go master * ping-interop: using longer timeout with regulars runners * ping-interop: move to ping * README: add ping/go update intructions * ci: rename compatibility test * ci: add support for forks * ping: add doc * REMOVEME: use a test setup * ping: update libp2p versions * ping: add security compat * ping: smaller compat surface |
||
---|---|---|
.github | ||
dht | ||
nodes-connectivity | ||
ping | ||
pubsub | ||
.gitignore | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
README.md
Testground test plans for libp2p
This repository contains Testground test plans for libp2p components.
How to add a new version to ping/go
When a new version of libp2p is released, we want to make it permanent in the ping/go
test folder.
- In the
ping/_compositions/go-cross-versions.toml
file,- Find the group for the latest version (
v0.20
for example) and copy it into a new group (v0.21
for example). - Update the
selectors
(go tags) andmodfile
options. Update thebuild_base_image
if needed.
- Find the group for the latest version (
- In the
ping/go
folder,- Add a new compatibility shim in
compat/
if needed, or add your new selector to the latest shim (seecompat/libp2p.v0.17.go
for example). - Create the new mod and sum files (
go.v0.21.mod
for example). Assuming you're updating fromv$A
tov$B
, a simple way to do this is to:cp go.v$A.mod go.v$B.mod; cp go.v$A.sum go.v$B.sum
ln -s go.v$B.mod go.mod; ln -s go.v$B.sum go.sum
(you may also use this for local development, these files are ignored by git)- update the
go-libp2p
version, go version, and update the code if needed. - then
go get -tags v$B && go mod tidy
- Add a new compatibility shim in
License
Dual-licensed: MIT, Apache Software License v2, by way of the Permissive License Stack.