From e07ffabbe82b3ab1e31a3c76b8b914b7e1596eb5 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Wed, 19 Apr 2023 13:48:07 +0200 Subject: [PATCH] fix(interop): rename `webrtc` to `webrtc-direct` (#166) See https://github.com/multiformats/multiaddr/pull/150#issuecomment-1468791586 for context on discussion. - Renames the `webrtc` transport identifier to `webrtc-direct`. - Re-enables `webrtc-direct` support for rust-libp2p v0.51. Previously disabled in https://github.com/libp2p/test-plans/pull/160. See https://github.com/libp2p/rust-libp2p/pull/3781 for corresponding change on the rust-libp2p side. - Leaves JS v0.41 and v0.42 untouched. To be done in a follow-up alongside JS dependency updates. --- multidim-interop/impl/go/v0.24/main.go | 2 ++ multidim-interop/impl/rust/v0.51/Makefile | 2 +- multidim-interop/src/generator.ts | 12 ++++++------ multidim-interop/versions.ts | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/multidim-interop/impl/go/v0.24/main.go b/multidim-interop/impl/go/v0.24/main.go index 41c18801b..bc093b8c0 100644 --- a/multidim-interop/impl/go/v0.24/main.go +++ b/multidim-interop/impl/go/v0.24/main.go @@ -117,6 +117,8 @@ func main() { case "webtransport": fallthrough case "webrtc": + fallthrough + case "webrtc-direct": skipMuxer = true skipSecureChannel = true } diff --git a/multidim-interop/impl/rust/v0.51/Makefile b/multidim-interop/impl/rust/v0.51/Makefile index d809e3f8a..a63149860 100644 --- a/multidim-interop/impl/rust/v0.51/Makefile +++ b/multidim-interop/impl/rust/v0.51/Makefile @@ -1,5 +1,5 @@ image_name := rust-v0.51 -commitSha := 1a9cf4f7760724032b729c43165716c7ecd842ad +commitSha := 0d5cac0cb595702567e50221fed9ae525b4c6f20 all: image.json diff --git a/multidim-interop/src/generator.ts b/multidim-interop/src/generator.ts index 1d3986920..84a16746d 100644 --- a/multidim-interop/src/generator.ts +++ b/multidim-interop/src/generator.ts @@ -61,7 +61,7 @@ export async function buildTestSpecs(versions: Array): Promise): Promise ( @@ -115,7 +115,7 @@ export async function buildTestSpecs(versions: Array): Promise buildSpec(containerImages, { name: `${test.id1} x ${test.id2} (${test.transport})`, dialerID: test.id1, @@ -172,4 +172,4 @@ function buildSpec(containerImages: { [key: string]: string }, { name, dialerID, function normalizeTransport(transport: string | { name: string, onlyDial: boolean }): { name: string, onlyDial: boolean } { return typeof transport === "string" ? { name: transport, onlyDial: false } : transport -} \ No newline at end of file +} diff --git a/multidim-interop/versions.ts b/multidim-interop/versions.ts index a59a6bff5..800968921 100644 --- a/multidim-interop/versions.ts +++ b/multidim-interop/versions.ts @@ -48,7 +48,7 @@ export const versions: Array = [ { id: "rust-v0.51.0", containerImageID: rustv051.imageID, - transports: ["ws", "tcp", "quic-v1"], + transports: ["ws", "tcp", "quic-v1", "webrtc-direct"], secureChannels: ["tls", "noise"], muxers: ["mplex", "yamux"], },