Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

chore(deps): update rocket, failure, rusoto and rust versions #160

Merged
merged 1 commit into from Aug 8, 2018

Conversation

brizental
Copy link
Member

@brizental brizental commented Aug 7, 2018

Fixes #156
Fixes #158

Here I update failure, rocket, rusoto and rust to the latest versions.

I had to point rusoto to a revision, because rusoto_mock stopped working after the update. I opened an issue about that rusoto/rusoto#1089.

Because I updated the rust version, there are a bunch of formatting changes in this PR, because fmt was updated as well.

r? @philbooth @vladikoff

ps.: when this gets merged we can't forget to change the override in fxa-local-dev https://github.com/mozilla/fxa-local-dev/blob/master/_scripts/install_all.sh#L42

@@ -97,9 +97,13 @@ impl Factory for Queue {
let client: Box<Sqs> = if let Some(ref keys) = settings.aws.keys {
let creds =
StaticProvider::new(keys.access.0.clone(), keys.secret.0.clone(), None, None);
Box::new(SqsClient::new(RequestDispatcher::default(), creds, region))
Box::new(SqsClient::new_with(
HttpClient::new().expect("Couldn't start HTTP Client."),
Copy link
Member Author

@brizental brizental Aug 7, 2018

Choose a reason for hiding this comment

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

I'm not really sure about this expect here, what do you think @philbooth ? Should I change this function to return a Result and handle the errors or panicking is alright in this case?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think panicking in this case is fine because it's initialisation code, so the process will abort on startup rather than later when we think everything is working correctly.

rusoto_credential = { git = "https://github.com/rusoto/rusoto/", rev="9e22eb3876a02375b3dbe14d0340f9b5c1fc55e9" }
rusoto_mock = { git = "https://github.com/rusoto/rusoto/", rev="9e22eb3876a02375b3dbe14d0340f9b5c1fc55e9" }
rusoto_ses = { git = "https://github.com/rusoto/rusoto/", rev="9e22eb3876a02375b3dbe14d0340f9b5c1fc55e9" }
rusoto_sqs = { git = "https://github.com/rusoto/rusoto/", rev="9e22eb3876a02375b3dbe14d0340f9b5c1fc55e9" }
Copy link
Contributor

Choose a reason for hiding this comment

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

It mildly concerns me that our dependence on git hashes instead of released versions of crates appears to be growing rather than shrinking. Are we really so desperate for the targeted features (including for the preceding one that caused the initial Rocket dependency on a commit hash) that we can't wait for them to show up in official releases?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I don't like that either... in this case we are pointing to the 0.33.0 release commit, so it should be fine. Also I will change this to an actual version as soon as rusoto/rusoto#1089 gets done.

We probably could have waited for them to release the rusoto version with the fixes that we need for rusoto_mock, but since we wanna test ASAP if the new release fixes our SES problems (#159) I just pointed to the revision for now.

The rocket revision concerns me more because that is almost a random commit, but apparently they are going to release the new version before RustConf or during RustConf, anyways, we will be able to change that soon :)

@@ -3,7 +3,7 @@ services:
- redis-server
cache: cargo
rust:
- nightly-2018-07-14
- nightly-2018-08-06
Copy link
Contributor

Choose a reason for hiding this comment

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

Dockerfile also needs updating to match this.

Copy link
Contributor

@philbooth philbooth left a comment

Choose a reason for hiding this comment

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

Apart from the Dockerfile update, I have no hard objections to this so r+ modulo that.

I am a little bit uncomfortable that dependening on git hashes is becoming more prevalent, but I'll defer to your and @vladikoff's judgement on that point.

My concern is mostly that we're setting ourselves up for potentially unnecessary churn by depending on details that haven't settled down as part of an official release yet. That applies to both details we know about (the things we're targeting those commit hashes for) and possibly ones we don't know about too (other commits in the tree that we're pulling in with those hashes).

@brizental
Copy link
Member Author

brizental commented Aug 8, 2018

Thanks, @philbooth ! I made the Dockerfile changes and created a PR in local-dev to update rust version :)

@philbooth philbooth merged commit 95acb7c into mozilla:master Aug 8, 2018
@vladikoff
Copy link
Contributor

I am a little bit uncomfortable that dependening on git hashes is becoming more prevalent, but I'll defer to your and @vladikoff's judgement on that point.

Yeah agreed, we can file follow up issues to get rid of git dependencies. Rusoto is a special one though because we are tracking multiple issues with it...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants