-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat(hole-punch): add hole-punch interoperability test suite #304
feat(hole-punch): add hole-punch interoperability test suite #304
Conversation
Don't be fooled by green CI, it is actually failing :D (But was working locally) |
This avoids IP address conflicts.
Now we actually have passing tests! |
@marten-seemann This is ready to have a go-peer added! I am curious to learn whether the go-peer also observed a weird RTT via the TCP connection. That would tell us whether this is an issue with our network setup or a bug in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
➜ hole-punch-interop git:(feat/hole-punch-tests) npm run test
> libp2p hole-punch [email protected] test
> ts-node src/*.test.ts && ts-node testplans.ts
Running 2 tests
Running test spec: rust-v0.52 x rust-v0.52 (quic)
Running test spec: rust-v0.52 x rust-v0.52 (tcp)
Expected RTT of direct connection to be ~200ms but was 401ms
0 failures:
Run complete
The amount of code duplication to the existing interop tests is unfortunate. That said, the duplication might just be easier here than a bad abstraction.
I have two ideas to deal with this:
|
97c9545
to
14e33b5
Compare
@Menduist Would you have time to write a |
Hey everyone! This has been ready for additions of other languages for a while. Instead of having it sit here, my suggestion would be to merge it as is and activate it in Other languages are then free to add their implementation at their own pace. Any objections @mxinden @marten-seemann @MarcoPolo @achingbrain @maschad @Menduist (not sure who else to tag?)? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am in favor of moving forward here. What do others think?
Sorry, just seen the message, didn't realize this was already ready for integration |
I am planning to merge this in ~24h unless there are any concerns raised! |
Related: libp2p/test-plans#304. Pull-Request: #4549. Co-authored-by: diegomrsantos <[email protected]>
How to review this
src/generator.ts
testplans.ts
Most of the other files like
helpers/cache.ts
are a 1-to-1 copy frommultidim-interop
.Follow-ups