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

Add back go-libp2p v0.36 and v0.37 to interop tests #615

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions transport-interop/impl/go/v0.36/Makefile
Original file line number Diff line number Diff line change
@@ -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-*
1 change: 1 addition & 0 deletions transport-interop/impl/go/v0.36/version.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
da6028d5ba79a65c670ded3d4e0745712cab3e012f24ec38aa771bf58745471a go-libp2p-0.36.5.zip
31 changes: 31 additions & 0 deletions transport-interop/impl/go/v0.37/Makefile
Original file line number Diff line number Diff line change
@@ -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-*
1 change: 1 addition & 0 deletions transport-interop/impl/go/v0.37/version.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4c6e3548c4a75f6bceabe14bae455b78fd29ddfeaa05747cda913683ae274d40 go-libp2p-0.37.2.zip
36 changes: 36 additions & 0 deletions transport-interop/versionsInput.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
]