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(ping/rust): Implemented 0.50 changes #83

Closed
wants to merge 3 commits into from

Conversation

umgefahren
Copy link

As requested by @thomaseizinger, this changes the test plans to take the removed APIs into account. See libp2p/rust-libp2p#3170 for details.

Copy link
Contributor

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Thanks!

@thomaseizinger
Copy link
Contributor

@mxinden I can't merge this myself, please have a look!

Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Thanks for the patch @umgefahren!

ping/rust/src/bin/testplan_0500.rs Show resolved Hide resolved
@umgefahren
Copy link
Author

umgefahren commented Nov 30, 2022

19a8de2 is not correct. Since it's called in an async_std block Tokio is the wrong executor and might lead to a runtime panic if I'm correct. In other words: If Tokio is correct, we should also use Tokio::main

@mxinden
Copy link
Member

mxinden commented Nov 30, 2022

19a8de2 is not correct. Since it's called in an async_std block Tokio is the wrong executor and might lead to a runtime panic if I'm correct. In other words: If Tokio is correct, we should also use Tokio::main

You are absolutely right @umgefahren. My bad. Sorry for pushing a wrong commit to your branch.

Regarding the previous CI failure, my best next guess is that the commit hash referenced in the Cargo.toml is too old.

rev = "368705a1465c4322948d14ee46d42475c472ca1e" # This should usually point to a commit on master.

Would you mind reverting my commit and updating the commit hash to a recent commit on master, ideally the one of v0.50.0 tag?

@@ -31,5 +31,5 @@ libp2pv0490 = { package = "libp2p", version = "0.49.0", features = ["websocket",
[dependencies."libp2pv0500"]
package = "libp2p"
git = "https://github.com/libp2p/rust-libp2p"
rev = "368705a1465c4322948d14ee46d42475c472ca1e" # This should usually point to a commit on master.
tag = "v0.50.0"
Copy link
Member

Choose a reason for hiding this comment

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

I don't think moving to tag would work here, given that we use sed in our Dockerfile matching on the string rev.

I might have been not very clear. Sorry. Let's use the commit hash that v0.50.0 points at.

Copy link
Author

Choose a reason for hiding this comment

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

Oh I see

Copy link
Contributor

Choose a reason for hiding this comment

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

Now that we have released v0.50.0 we should actually add that as a release and have this point to the most recent hash on master here!

Copy link
Author

Choose a reason for hiding this comment

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

Should this be part of this PR?

Copy link
Contributor

@thomaseizinger thomaseizinger Dec 1, 2022

Choose a reason for hiding this comment

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

It doesn't have to be. I think we can merge this separately :)

Copy link
Contributor

Choose a reason for hiding this comment

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

I opened #87 and also fixed the deprecation warnings there.

@mxinden
Copy link
Member

mxinden commented Dec 2, 2022

Closing here in favor of #87. Thanks for the help!

@mxinden mxinden closed this Dec 2, 2022
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