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

fix(versions): disable webrtc tests #160

Merged
merged 1 commit into from
Apr 4, 2023
Merged

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Mar 30, 2023

This commit disables the WebRTC tests for rust-libp2p v0.50.0 and v0.51.0 and chromium-js v0.41.0 and v0.42.0. Neither of these support the new /webrtc-direct (see multiformats/multiaddr#150 for context on rename).

The missing support is blocking libp2p/rust-libp2p#3688 namely to upgrade to using /webrtc-direct. (Note that this is only blocking CI. Users can already use /webrtc-direct with the latest released rust-libp2p.) More concretely the latest rust-libp2p master sends a /webrtc-direct address as the listener to the dialer. The dialer (i.e. the versions listed above) do not support /webrtc-direct and thus fail.

We will backport /webrtc-direct support to the rust-libp2p v0.51.0 interop binary and then re-enable it here. I assume we can not do the same in js-libp2p as it is released as a breaking change. @achingbrain is that correct?

Instead of disabling the versions with missing support for /webrtc-direct we could as well patch our interoperability test logic, e.g. send both /webrtc and /webrtc-direct addresses. For the sake of simplicity, I am proposing simply disabling the versions for now.

@achingbrain @MarcoPolo @thomaseizinger do you have thoughts on this? Would you prefer a patch to the interop test binary logic?

Pull request updating js-libp2p-webrtc to support /webrtc-direct: libp2p/js-libp2p-webrtc#100

This commit disables the WebRTC tests for rust-libp2p v0.50.0 and v0.51.0 and
chromium-js v0.41.0 and v0.42.0. Neither of these support the new
`/webrtc-direct` (see
multiformats/multiaddr#150 for
context on rename).

The missing support is blocking libp2p/rust-libp2p#3688
namely to upgrade to using `/webrtc-direct`. (Note that this is only blocking
CI. Users can already use `/webrtc-direct` with the latest released
rust-libp2p.)

We will backport `/webrtc-direct` support to the rust-libp2p `v0.51.0` interop
binary and then re-enable it here. I assume we can do the same for js-libp2p v0.42.0.

Instead of disabling the versions with missing support for `/webrtc-direct` we
could as well patch our interoperability test logic. For the sake of simplicity,
I am proposing simply disabling the versions for now.
@thomaseizinger
Copy link
Contributor

Is this because we are sending the address as a string and not as a binary? Because I thought that we didn't change the binary representation.

@thomaseizinger
Copy link
Contributor

Instead of disabling the versions with missing support for /webrtc-direct we could as well patch our interoperability test logic, e.g. send both /webrtc and /webrtc-direct addresses.

This would first need a patch to all repos to actually try multiple addresses right?

Copy link
Contributor

@MarcoPolo MarcoPolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. I’ll update the js tests once the rust impls are in

@mxinden mxinden merged commit 134a873 into libp2p:master Apr 4, 2023
@mxinden
Copy link
Member Author

mxinden commented Apr 4, 2023

Is this because we are sending the address as a string and not as a binary? Because I thought that we didn't change the binary representation.

Documenting out-of-band discussion here. Yes, due to us using string representation. Long term I would be in favor of moving to binary representation. We agree that simply disabling is the best way forward.

mxinden added a commit to mxinden/test-plans that referenced this pull request Apr 12, 2023
See multiformats/multiaddr#150 (comment)
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 libp2p#160. See
  libp2p/rust-libp2p#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.
MarcoPolo pushed a commit to mxinden/test-plans that referenced this pull request Apr 13, 2023
This commit disables the WebRTC tests for rust-libp2p v0.50.0 and v0.51.0 and
chromium-js v0.41.0 and v0.42.0. Neither of these support the new
`/webrtc-direct` (see
multiformats/multiaddr#150 for
context on rename).

The missing support is blocking libp2p/rust-libp2p#3688
namely to upgrade to using `/webrtc-direct`. (Note that this is only blocking
CI. Users can already use `/webrtc-direct` with the latest released
rust-libp2p.)

We will backport `/webrtc-direct` support to the rust-libp2p `v0.51.0` interop
binary and then re-enable it here.

Instead of disabling the versions with missing support for `/webrtc-direct` we
could as well patch our interoperability test logic. For the sake of simplicity,
I am proposing simply disabling the versions for now.
mxinden added a commit that referenced this pull request Apr 19, 2023
See multiformats/multiaddr#150 (comment)
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 #160. See
  libp2p/rust-libp2p#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.
mxinden added a commit to mxinden/test-plans that referenced this pull request Apr 25, 2023
Copy of `multidim-interop/impl/js/v0.42` plus version adjustments + reenable
WebRTC (see libp2p#160).
mxinden added a commit that referenced this pull request May 5, 2023
Copy of `multidim-interop/impl/js/v0.42` plus version adjustments + reenable
WebRTC (see #160).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants