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

deps: update to tokio v1.0 #1880

Merged
merged 1 commit into from Jan 6, 2021
Merged

deps: update to tokio v1.0 #1880

merged 1 commit into from Jan 6, 2021

Conversation

benesch
Copy link
Contributor

@benesch benesch commented Dec 24, 2020

Just a draft for the moment. Waiting on:

@benesch
Copy link
Contributor Author

benesch commented Dec 24, 2020

Things are looking pretty good. The failures are because the integration_tests and skeptical crates are not part of the workspace and so don't get the tokio-native-tls patch that's specified in the root Cargo.toml. That'll all be fixed once we have actual releases of hyper-tls and hyper-rustls.

@fanatid
Copy link
Contributor

fanatid commented Dec 24, 2020

Is this for rusoto:0.46.0?

@benesch
Copy link
Contributor Author

benesch commented Dec 24, 2020

Yep! The plan is to ship v0.46.0 as soon as this PR lands. I would expect in the next few days, but we're beholden to the hyper-tls and hyper-rustls maintainers.

@vitorenesduarte
Copy link

hyper-rustls 0.22 has landed: rustls/hyper-rustls@551d1d3

Here's the PR for hyper-tls: hyperium/hyper-tls#79

@benesch benesch force-pushed the tokio-10 branch 4 times, most recently from 72abc68 to 61746e0 Compare December 28, 2020 15:50
@benesch
Copy link
Contributor Author

benesch commented Dec 28, 2020

Whew, ok, all tests are green. I've updated the issue description to track exactly which crates we're waiting on releases for. In theory we could release without reqwest or warp, since those dependencies are only used in tests. But a release of hyper-tls is non-negotiable.

@extrawurst
Copy link

@benesch thanks for working on this! I am looking forward to this getting merged❤️

@benesch
Copy link
Contributor Author

benesch commented Dec 29, 2020

hyper-tls is out now. I'm going to wait a few days to see if tokio v1.0-compatible releases of reqwest + warp ship, for tidiness's sake. If either of those get wedged for some reason, I'll see about shipping with the Git-based dev-dependency.

@leepa
Copy link

leepa commented Jan 3, 2021

We are waiting on warp for a test framework? reqwest is now updated and as warp is only used for the credential test (and therefore not in runtime code, and completely isolated) we should be good to merge and release this?

@benesch
Copy link
Contributor Author

benesch commented Jan 3, 2021

We are waiting on warp for a test framework? reqwest is now updated and as warp is only used for the credential test (and therefore not in runtime code, and completely isolated) we should be good to merge and release this?

The updated version of reqwest hasn't hit crates.io yet, unfortunately. Even though both reqwest and warp are used only as dev dependencies, I'm leery of merging a Git dependency to master, even as a dev dependency. It's too easy for our CI to break when those Git dependencies get updated upstream.

I imagine we'll get a new release of reqwest early this week, which I think is worth waiting for. Hopefully warp too, though it's easy enough to just replace our usage of warp with raw hyper if necessary.

@seanpianka
Copy link

You can pin a specific revision of a Git dependency, i.e. the git SHA of the commit with the updated version.

@benesch
Copy link
Contributor Author

benesch commented Jan 4, 2021

You can pin a specific revision of a Git dependency, i.e. the git SHA of the commit with the updated version.

In my experience that still has some pitfalls, sadly. Specific SHAs have a tendency to vanish from GitHub, e.g., when the branch backing a PR is force pushed, or when the PR is merged via a rebase-and-merge or squash-and-merge strategy (which rewrites the commits) and the original branch is deleted.

@extrawurst
Copy link

maybe we can make it a release candidate for the time being until there are actually named releases to point to for warp and request?

@benesch
Copy link
Contributor Author

benesch commented Jan 4, 2021

I know everyone is very excited to get a new release of Rusoto, but please just bear with me for another day, or two days at most! I'd like to avoid merging a Git dependency to master, which also precludes releasing an RC.

@extrawurst
Copy link

here we go, PR for the reqwest release open: seanmonstar/reqwest#1133

@benesch
Copy link
Contributor Author

benesch commented Jan 5, 2021

And reqwest v0.11 is out! Pending any unforeseen problems, I’ll get this shipped by tonight (EST).

@benesch benesch merged commit 5b22593 into rusoto:master Jan 6, 2021
@benesch benesch deleted the tokio-10 branch January 6, 2021 00:23
@benesch
Copy link
Contributor Author

benesch commented Jan 6, 2021

Thanks for your patience, folks!

@lukesteensen lukesteensen mentioned this pull request Jan 8, 2021
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.

None yet

6 participants