From e78cb972c5126f8666e67965d384345b3b2a0a4b Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Wed, 19 Feb 2025 10:14:52 -0800 Subject: [PATCH] Add go-libp2p v0.37 and v0.36 to transport interop test (#615) We still have a couple notable users on these versions, so try to keep testing them. This comes with an increase runtime for these interop tests, so we may remove this in the near future. --- transport-interop/impl/go/v0.36/Makefile | 31 +++++++++++++++++ transport-interop/impl/go/v0.36/version.lock | 1 + transport-interop/impl/go/v0.37/Makefile | 31 +++++++++++++++++ transport-interop/impl/go/v0.37/version.lock | 1 + transport-interop/versionsInput.json | 36 ++++++++++++++++++++ 5 files changed, 100 insertions(+) create mode 100644 transport-interop/impl/go/v0.36/Makefile create mode 100644 transport-interop/impl/go/v0.36/version.lock create mode 100644 transport-interop/impl/go/v0.37/Makefile create mode 100644 transport-interop/impl/go/v0.37/version.lock diff --git a/transport-interop/impl/go/v0.36/Makefile b/transport-interop/impl/go/v0.36/Makefile new file mode 100644 index 00000000..0074fec8 --- /dev/null +++ b/transport-interop/impl/go/v0.36/Makefile @@ -0,0 +1,31 @@ +image_name := go-v0.36 +version := 0.36.5 + +all: image.json + +image.json: verify-checksum go-libp2p-${version} + cd go-libp2p-${version} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f test-plans/PingDockerfile . + docker image inspect ${image_name} -f "{{.Id}}" | \ + xargs -I {} echo "{\"imageID\": \"{}\"}" > $@ + +go-libp2p-${version}: go-libp2p-${version}.zip + unzip -o go-libp2p-${version}.zip + +go-libp2p-${version}.zip: + wget -O $@ "https://github.com/libp2p/go-libp2p/archive/v${version}.zip" + +# Run `make version.lock` to generate this lock file. This file should be commited. +# This locks the exact contents of the specified version. This lets us use the +# human readable name while still making sure the contents don't change. +version.lock: go-libp2p-${version}.zip + shasum -a 256 go-libp2p-${version}.zip > $@ + +verify-checksum: go-libp2p-${version}.zip + shasum -a 256 -c version.lock + +.PHONY: clean all verify-checksum + +clean: + rm image.json + rm go-libp2p-*.zip + rm -rf go-libp2p-* diff --git a/transport-interop/impl/go/v0.36/version.lock b/transport-interop/impl/go/v0.36/version.lock new file mode 100644 index 00000000..95568a63 --- /dev/null +++ b/transport-interop/impl/go/v0.36/version.lock @@ -0,0 +1 @@ +da6028d5ba79a65c670ded3d4e0745712cab3e012f24ec38aa771bf58745471a go-libp2p-0.36.5.zip diff --git a/transport-interop/impl/go/v0.37/Makefile b/transport-interop/impl/go/v0.37/Makefile new file mode 100644 index 00000000..d348f5b6 --- /dev/null +++ b/transport-interop/impl/go/v0.37/Makefile @@ -0,0 +1,31 @@ +image_name := go-v0.37 +version := 0.37.2 + +all: image.json + +image.json: verify-checksum go-libp2p-${version} + cd go-libp2p-${version} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f test-plans/PingDockerfile . + docker image inspect ${image_name} -f "{{.Id}}" | \ + xargs -I {} echo "{\"imageID\": \"{}\"}" > $@ + +go-libp2p-${version}: go-libp2p-${version}.zip + unzip -o go-libp2p-${version}.zip + +go-libp2p-${version}.zip: + wget -O $@ "https://github.com/libp2p/go-libp2p/archive/v${version}.zip" + +# Run `make version.lock` to generate this lock file. This file should be commited. +# This locks the exact contents of the specified version. This lets us use the +# human readable name while still making sure the contents don't change. +version.lock: go-libp2p-${version}.zip + shasum -a 256 go-libp2p-${version}.zip > $@ + +verify-checksum: go-libp2p-${version}.zip + shasum -a 256 -c version.lock + +.PHONY: clean all verify-checksum + +clean: + rm image.json + rm go-libp2p-*.zip + rm -rf go-libp2p-* diff --git a/transport-interop/impl/go/v0.37/version.lock b/transport-interop/impl/go/v0.37/version.lock new file mode 100644 index 00000000..ab793f86 --- /dev/null +++ b/transport-interop/impl/go/v0.37/version.lock @@ -0,0 +1 @@ +4c6e3548c4a75f6bceabe14bae455b78fd29ddfeaa05747cda913683ae274d40 go-libp2p-0.37.2.zip diff --git a/transport-interop/versionsInput.json b/transport-interop/versionsInput.json index de298d21..ad9031ec 100644 --- a/transport-interop/versionsInput.json +++ b/transport-interop/versionsInput.json @@ -298,5 +298,41 @@ "muxers": [ "yamux" ] + }, + { + "id": "go-v0.37", + "transports": [ + "tcp", + "ws", + "wss", + "quic-v1", + "webtransport", + "webrtc-direct" + ], + "secureChannels": [ + "tls", + "noise" + ], + "muxers": [ + "yamux" + ] + }, + { + "id": "go-v0.36", + "transports": [ + "tcp", + "ws", + "wss", + "quic-v1", + "webtransport", + "webrtc-direct" + ], + "secureChannels": [ + "tls", + "noise" + ], + "muxers": [ + "yamux" + ] } ]