Skip to content

update test controllers to std::future/Tonic; remove threads#585

Merged
olix0r merged 23 commits intomainfrom
eliza/new-test-controller
Jun 30, 2020
Merged

update test controllers to std::future/Tonic; remove threads#585
olix0r merged 23 commits intomainfrom
eliza/new-test-controller

Conversation

@hawkw
Copy link
Contributor

@hawkw hawkw commented Jun 27, 2020

This branch updates the test support mock control plane components in
linkerd2-app-integration to use std::future, Tonic, and Tokio 0.2.
Rather than spawning a separate thread for each control plane componwnr
as we did previously, they are now spawned as tasks on the main test
thread's runtime. As discussed in #580, this may make the tests
slightly less flaky and/or slightly faster on CI.

In order to make this compile I had to increase the type length and
recursion limits for all the test crates. I have no idea why this branch
made this necessary. My guess is that the fact that we have ~12MB type
names now is at least part of the cause of linkerd/linkerd2#4676.

Depends on #580
Closes linkerd/linkerd2#3963

Signed-off-by: Eliza Weisman [email protected]

@hawkw hawkw requested review from a team, olix0r and zaharidichev June 27, 2020 00:27
Base automatically changed from eliza/deflake-reconnect to main June 29, 2020 17:48
@olix0r
Copy link
Member

olix0r commented Jun 29, 2020

@hawkw needs a rebase

@hawkw
Copy link
Contributor Author

hawkw commented Jun 29, 2020

@hawkw needs a rebase

yup, working on it right now!

@hawkw hawkw force-pushed the eliza/new-test-controller branch from a1c621a to 06a4f43 Compare June 29, 2020 18:55
hawkw added 6 commits June 29, 2020 12:09
@hawkw
Copy link
Contributor Author

hawkw commented Jun 30, 2020

@olix0r okay, this has been rebased onto main and fixed up, it should be reviewable for real now.

@olix0r olix0r merged commit 23995e7 into main Jun 30, 2020
@olix0r olix0r deleted the eliza/new-test-controller branch June 30, 2020 18:41
olix0r added a commit to linkerd/linkerd2 that referenced this pull request Jul 2, 2020
This release increases the default buffer size to match the proxy's
in-flight request limit. This reduces contention in overload--especially
high-concurrency--situations, substantially reducing tail latency.

---

* update test-support clients and servers to be natively async (linkerd/linkerd2-proxy#580)
* Print build diagnostics in docker (linkerd/linkerd2-proxy#583)
* update test controllers to std::future/Tonic; remove threads (linkerd/linkerd2-proxy#585)
* buffer: Box the inner service's reponse future (linkerd/linkerd2-proxy#586)
* Eliminate Bind & Listen traits (linkerd/linkerd2-proxy#584)
* cache: replace Lock with Buffer (linkerd/linkerd2-proxy#587)
cpretzer pushed a commit to linkerd/linkerd2 that referenced this pull request Jul 2, 2020
This release increases the default buffer size to match the proxy's
in-flight request limit. This reduces contention in overload--especially
high-concurrency--situations, substantially reducing tail latency.

---

* update test-support clients and servers to be natively async (linkerd/linkerd2-proxy#580)
* Print build diagnostics in docker (linkerd/linkerd2-proxy#583)
* update test controllers to std::future/Tonic; remove threads (linkerd/linkerd2-proxy#585)
* buffer: Box the inner service's reponse future (linkerd/linkerd2-proxy#586)
* Eliminate Bind & Listen traits (linkerd/linkerd2-proxy#584)
* cache: replace Lock with Buffer (linkerd/linkerd2-proxy#587)
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.

proxy: Update prost to 0.6

3 participants