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

chore: move redirect test server to rust #6364

Merged
merged 50 commits into from
Jul 4, 2020
Merged

Conversation

ry
Copy link
Member

@ry ry commented Jun 18, 2020

No description provided.

@ry ry force-pushed the rust_http_test_server branch from 8dcfa78 to 0aa77d7 Compare June 18, 2020 16:43
@ry ry changed the title Rust http test server chore: move redirect test server to rust Jun 18, 2020
@ry ry mentioned this pull request Jun 18, 2020
6 tasks
test_util/src/lib.rs Outdated Show resolved Hide resolved
@ry ry force-pushed the rust_http_test_server branch from f18e9a6 to 47d117c Compare June 29, 2020 15:17
@piscisaureus
Copy link
Member

@ry I'm giving up on fixing the benchmarks - I have no idea what is happening here and why (it seems that) every benchmark starts a dozen servers. I'm no longer surprised that CI is red anyway, this is a mess.

Feel free of course to roll back all the non-fixes I've pushed.

@piscisaureus piscisaureus force-pushed the rust_http_test_server branch from 0b1649c to 08d4175 Compare July 4, 2020 11:19
@ry ry requested review from bartlomieju and piscisaureus July 4, 2020 14:05
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM, minus one nitpick below

[[package]]
name = "tokio-rustls"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15cb62a0d2770787abc96e99c1cd98fcf17f94959f3af63ca85bdfb203f051b4"
dependencies = [
"futures-core",
"rustls",
"rustls 0.17.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 think it means we got two different versions of tokio-rustls and rustls

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I found that weird too but there does not seem to be an easy workaround.
IIRC (from last night) reqwest requires the latest version of tokio-rustls, and warp is a little behind in updating it's dependencies...

Comment on lines +419 to +420
self.test_server.kill().expect("failed to kill test_server");
let _ = self.test_server.wait();
Copy link
Member

Choose a reason for hiding this comment

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

👍 good to know

@piscisaureus
Copy link
Member

@ry not very important I suppose since this is not performance critical code.
Should you ever find yourself not wanting to allocate so many boxes, this is the easier way -> bbb0ccb

Copy link
Member

@piscisaureus piscisaureus left a comment

Choose a reason for hiding this comment

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

Yup, ship it!

@ry ry merged commit 5f9e600 into denoland:master Jul 4, 2020
@ry ry deleted the rust_http_test_server branch July 4, 2020 17: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.

3 participants