From 5bfec5ffde445335337b17bf5355ab5fd3332a7c Mon Sep 17 00:00:00 2001 From: Sukun Date: Fri, 23 Feb 2024 20:35:36 +0530 Subject: [PATCH] chore: add go-libp2p v0.32 and v0.33 (#346) --- transport-interop/impl/go/v0.32/Makefile | 31 ++++++++++++++++++++ transport-interop/impl/go/v0.32/version.lock | 1 + transport-interop/impl/go/v0.33/Makefile | 31 ++++++++++++++++++++ transport-interop/impl/go/v0.33/version.lock | 1 + transport-interop/versions.ts | 12 ++++++++ 5 files changed, 76 insertions(+) create mode 100644 transport-interop/impl/go/v0.32/Makefile create mode 100644 transport-interop/impl/go/v0.32/version.lock create mode 100644 transport-interop/impl/go/v0.33/Makefile create mode 100644 transport-interop/impl/go/v0.33/version.lock diff --git a/transport-interop/impl/go/v0.32/Makefile b/transport-interop/impl/go/v0.32/Makefile new file mode 100644 index 0000000..d17cbc2 --- /dev/null +++ b/transport-interop/impl/go/v0.32/Makefile @@ -0,0 +1,31 @@ +image_name := go-v0.32 +version := 0.32.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.32/version.lock b/transport-interop/impl/go/v0.32/version.lock new file mode 100644 index 0000000..a2ed248 --- /dev/null +++ b/transport-interop/impl/go/v0.32/version.lock @@ -0,0 +1 @@ +2169e11c42c71e57398930c9d334e437fb1958b9acd9afdf20a6cce30040588f go-libp2p-0.32.2.zip diff --git a/transport-interop/impl/go/v0.33/Makefile b/transport-interop/impl/go/v0.33/Makefile new file mode 100644 index 0000000..1f7c3af --- /dev/null +++ b/transport-interop/impl/go/v0.33/Makefile @@ -0,0 +1,31 @@ +image_name := go-v0.33 +version := 0.33.0 + +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.33/version.lock b/transport-interop/impl/go/v0.33/version.lock new file mode 100644 index 0000000..4316e81 --- /dev/null +++ b/transport-interop/impl/go/v0.33/version.lock @@ -0,0 +1 @@ +6ec52eaeaf89648848c5844507c6d0db1afb9643eb9499d53242231df939ad0f go-libp2p-0.33.0.zip diff --git a/transport-interop/versions.ts b/transport-interop/versions.ts index 3c134f0..0c6d322 100644 --- a/transport-interop/versions.ts +++ b/transport-interop/versions.ts @@ -110,6 +110,18 @@ export const versions: Array = [ secureChannels: ["noise"], muxers: ["mplex", "yamux"], }, + { + id: "go-v0.33", + transports: ["tcp", "ws", "quic-v1", "webtransport", "webrtc-direct"], + secureChannels: ["tls", "noise"], + muxers: ["yamux"], + }, + { + id: "go-v0.32", + transports: ["tcp", "ws", "quic-v1", "webtransport", "webrtc-direct"], + secureChannels: ["tls", "noise"], + muxers: ["yamux"], + }, { id: "go-v0.31", transports: ["tcp", "ws", "quic-v1", "webtransport"],