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

Update tests to use hyper 0.12 #1394

Merged

Conversation

jtgeibel
Copy link
Member

@jtgeibel jtgeibel commented May 11, 2018

This PR updates the HTTP recording test infrastructure to use hyper 0.12. The goal is to update hyper in the tests now to minimize any version changes when eventually moving production over to hyper (see companion PR #1378). While we don't have to use the same version of hyper in production and our tests, having different versions would regress compile times.

Ignoring the crate additions/removals (as production code obviously don't depend on them), the only overlap I see with production is updating libc from 0.2.33 to 0.2.42. As far as I can tell, the following changes do not affect production, even transitively (and if they do, are minimal):

  • net2 - 0.2.31 to 0.2.32
  • bytes - 0.4.5 to 0.4.8
  • futures - 0.1.17 to 0.1.21
  • tokio-core - 0.1.12 to 0.1.17
  • tokio-io - 0.1.3 to 0.1.6

It was necessary to lowercase the request header names in the recordings under http-data because the hyper client sending the request no longer uses title-case.

@jtgeibel jtgeibel changed the title Update tests to use hyper master (0.12-pre.0) Update tests to use hyper 0.12 Jun 4, 2018
@jtgeibel jtgeibel force-pushed the update-tests-to-use-hyper-master branch from b7419ff to 459cf01 Compare June 4, 2018 23:09
@jtgeibel
Copy link
Member Author

jtgeibel commented Jun 4, 2018

I've rebased and switched over to the newly released hyper 0.12.

@sgrif
Copy link
Contributor

sgrif commented Jun 6, 2018

bors: r+

bors-voyager bot added a commit that referenced this pull request Jun 6, 2018
1394: Update tests to use hyper 0.12 r=sgrif

This PR updates the HTTP recording test infrastructure to use hyper 0.12.  The goal is to update hyper in the tests now to minimize any version changes when eventually moving production over to hyper (see companion PR #1378).  While we don't *have* to use the same version of hyper in production and our tests, having different versions would regress compile times.

Ignoring the crate additions/removals (as production code obviously don't depend on them), the only overlap I see with production is updating `libc` from 0.2.33 to 0.2.40.  As far as I can tell, the following changes do not affect production, even transitively (and if they do, are minimal):

* `net2` - 0.2.31 to 0.2.32
* `bytes` - 0.4.5 to 0.4.7
* `futures` - 0.1.17 to 0.1.21
* `tokio-core` - 0.1.12 to 0.1.17
* `tokio-io` - 0.1.3 to 0.1.6

It was necessary to lowercase the request header names in the recordings under `http-data` because the hyper client sending the request no longer uses title-case.

[source]: https://twitter.com/seanmonstar/status/992156132411035648
@jtgeibel jtgeibel force-pushed the update-tests-to-use-hyper-master branch from 459cf01 to f625122 Compare June 7, 2018 03:07
@jtgeibel
Copy link
Member Author

jtgeibel commented Jun 7, 2018

Bors failed to merge this because another merge hit master while CI was running on the bors staging branch. I've rebased on master and resolved the conflicts.

@jtgeibel
Copy link
Member Author

bors: r+

bors-voyager bot added a commit that referenced this pull request Jun 20, 2018
1394: Update tests to use hyper 0.12 r=jtgeibel

This PR updates the HTTP recording test infrastructure to use hyper 0.12.  The goal is to update hyper in the tests now to minimize any version changes when eventually moving production over to hyper (see companion PR #1378).  While we don't *have* to use the same version of hyper in production and our tests, having different versions would regress compile times.

Ignoring the crate additions/removals (as production code obviously don't depend on them), the only overlap I see with production is updating `libc` from 0.2.33 to 0.2.42.  As far as I can tell, the following changes do not affect production, even transitively (and if they do, are minimal):

* `net2` - 0.2.31 to 0.2.32
* `bytes` - 0.4.5 to 0.4.8
* `futures` - 0.1.17 to 0.1.21
* `tokio-core` - 0.1.12 to 0.1.17
* `tokio-io` - 0.1.3 to 0.1.6

It was necessary to lowercase the request header names in the recordings under `http-data` because the hyper client sending the request no longer uses title-case.
@bors-voyager
Copy link
Contributor

bors-voyager bot commented Jun 20, 2018

Build succeeded

@bors-voyager bors-voyager bot merged commit f625122 into rust-lang:master Jun 20, 2018
@jtgeibel jtgeibel deleted the update-tests-to-use-hyper-master branch June 21, 2018 00:05
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.

2 participants