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
Dramatically speed up the demo_nodes_cpp tests #641
Dramatically speed up the demo_nodes_cpp tests #641
Conversation
8bc42bc
to
49db06b
Compare
That is, just wait long enough for the process to have an exit code. On its own, this change doesn't actually make a huge difference to the test times, but when combined with some of the upcoming changes it should make a significant reduction. Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Make them use underscores for the member variables, and make those member variables private. Signed-off-by: Chris Lalancette <clalancette@gmail.com>
That way we can configure some of the demos to be much more speedy, while retaining their default behavior. Signed-off-by: Chris Lalancette <clalancette@gmail.com>
IF the one-shot parameter is set, then it will quit after receiving the first request. Useful for testing. Signed-off-by: Chris Lalancette <clalancette@gmail.com>
This can shorten our tests dramatically. Signed-off-by: Chris Lalancette <clalancette@gmail.com>
49db06b
to
2d802db
Compare
After comparing the test failures before and after on Windows, I think it is fair to say that these failures aren't caused by this PR. That is, this PR seems to make no difference there (we should debug those failures separately). So I'm actually going to take this out of draft status so we can review and get this in. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The purpose of this PR is to speed up the demo_nodes_cpp tests. On my local machine, prior to this PR, the tests took ~5 minutes to run. After this PR, they take ~1 minute.
To achieve this, this PR does a number of different things:
talker
,listener
,content_filtering_publisher
, andadd_two_ints_server
to control their behavior. The major goal here is to keep their default behavior the same, but add in alternate modes to dramatically speed up tests.The individual commits have more information about each change and why I made it.
This is still a draft because I want to run extensive CI on it, particularly on Windows.