Skip to content

Commit e78cb97

Browse files
authoredFeb 19, 2025··
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.
1 parent 874550e commit e78cb97

File tree

5 files changed

+100
-0
lines changed

5 files changed

+100
-0
lines changed
 
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
image_name := go-v0.36
2+
version := 0.36.5
3+
4+
all: image.json
5+
6+
image.json: verify-checksum go-libp2p-${version}
7+
cd go-libp2p-${version} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f test-plans/PingDockerfile .
8+
docker image inspect ${image_name} -f "{{.Id}}" | \
9+
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
10+
11+
go-libp2p-${version}: go-libp2p-${version}.zip
12+
unzip -o go-libp2p-${version}.zip
13+
14+
go-libp2p-${version}.zip:
15+
wget -O $@ "https://github.com/libp2p/go-libp2p/archive/v${version}.zip"
16+
17+
# Run `make version.lock` to generate this lock file. This file should be commited.
18+
# This locks the exact contents of the specified version. This lets us use the
19+
# human readable name while still making sure the contents don't change.
20+
version.lock: go-libp2p-${version}.zip
21+
shasum -a 256 go-libp2p-${version}.zip > $@
22+
23+
verify-checksum: go-libp2p-${version}.zip
24+
shasum -a 256 -c version.lock
25+
26+
.PHONY: clean all verify-checksum
27+
28+
clean:
29+
rm image.json
30+
rm go-libp2p-*.zip
31+
rm -rf go-libp2p-*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
da6028d5ba79a65c670ded3d4e0745712cab3e012f24ec38aa771bf58745471a go-libp2p-0.36.5.zip
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
image_name := go-v0.37
2+
version := 0.37.2
3+
4+
all: image.json
5+
6+
image.json: verify-checksum go-libp2p-${version}
7+
cd go-libp2p-${version} && IMAGE_NAME=${image_name} ../../../../dockerBuildWrapper.sh -f test-plans/PingDockerfile .
8+
docker image inspect ${image_name} -f "{{.Id}}" | \
9+
xargs -I {} echo "{\"imageID\": \"{}\"}" > $@
10+
11+
go-libp2p-${version}: go-libp2p-${version}.zip
12+
unzip -o go-libp2p-${version}.zip
13+
14+
go-libp2p-${version}.zip:
15+
wget -O $@ "https://github.com/libp2p/go-libp2p/archive/v${version}.zip"
16+
17+
# Run `make version.lock` to generate this lock file. This file should be commited.
18+
# This locks the exact contents of the specified version. This lets us use the
19+
# human readable name while still making sure the contents don't change.
20+
version.lock: go-libp2p-${version}.zip
21+
shasum -a 256 go-libp2p-${version}.zip > $@
22+
23+
verify-checksum: go-libp2p-${version}.zip
24+
shasum -a 256 -c version.lock
25+
26+
.PHONY: clean all verify-checksum
27+
28+
clean:
29+
rm image.json
30+
rm go-libp2p-*.zip
31+
rm -rf go-libp2p-*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4c6e3548c4a75f6bceabe14bae455b78fd29ddfeaa05747cda913683ae274d40 go-libp2p-0.37.2.zip

‎transport-interop/versionsInput.json

+36
Original file line numberDiff line numberDiff line change
@@ -298,5 +298,41 @@
298298
"muxers": [
299299
"yamux"
300300
]
301+
},
302+
{
303+
"id": "go-v0.37",
304+
"transports": [
305+
"tcp",
306+
"ws",
307+
"wss",
308+
"quic-v1",
309+
"webtransport",
310+
"webrtc-direct"
311+
],
312+
"secureChannels": [
313+
"tls",
314+
"noise"
315+
],
316+
"muxers": [
317+
"yamux"
318+
]
319+
},
320+
{
321+
"id": "go-v0.36",
322+
"transports": [
323+
"tcp",
324+
"ws",
325+
"wss",
326+
"quic-v1",
327+
"webtransport",
328+
"webrtc-direct"
329+
],
330+
"secureChannels": [
331+
"tls",
332+
"noise"
333+
],
334+
"muxers": [
335+
"yamux"
336+
]
301337
}
302338
]

0 commit comments

Comments
 (0)
Please sign in to comment.