-
Notifications
You must be signed in to change notification settings - Fork 3k
[inets] Slave module deprecation: Replace slave with peer in code and comments #10064
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
base: maint
Are you sure you want to change the base?
Conversation
CT Test Results 2 files 23 suites 9m 37s ⏱️ Results for commit e37fa0e. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts
// Erlang/OTP Github Action Bot |
93cddfa
to
3fb955b
Compare
I think this is not a good example, I think we should move it all to test and remove this example directory (this is very legacy way to document something). If we need more examples we should aim to improve the users guide instead. I think we should discuss if this is something to be kept at all. I do not think it has been run in a long time. |
@@ -139,7 +139,7 @@ start_node(Name) -> | |||
end, | |||
A = Args ++ " -pa " ++ Pa, | |||
Opts = [{cleanup,false}, {args, A}], | |||
case (catch test_server:start_node(Name, slave, Opts)) of |
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.
This function is not used and does not need to be keep. You could do a git grep on more functions here see which ones we should keep.
@kvakvs You removed to much. The httpd_bench_SUITE actually does not use legacy load tests and should not be removed. |
610a145
to
c3531c7
Compare
18fca69
to
33bfdbc
Compare
33bfdbc
to
8c92c17
Compare
lib/inets/test/httpd_bench_SUITE.erl
Outdated
{http_headers, [{"connection", "close"}]}, | ||
{http_opts,[{version, Version}]}, | ||
{httpc_opts, [{keep_alive_timeout, 0}, {max_keep_alive_length, 0}]} | ||
| Config]); |
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.
This line is wrongly indented. Erlang mode for emacs indents it differently, that is there is one space too much (and was so from the start).
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.
This is not a well formalized requirement. I do not use Emacs, will never be using Emacs, and i have no way to know how the correct indentation would be. Is "Emacs formatter" a separate easy to install tool which can be used in the git precommit hook and in the CI to control the code indentation? Because other formatters, like erlfmt can be, and they solve a lot of these situations by applying same style formatting on all machines and can be called from any editor on save, too.
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.
Inets
Summary of changes
slave
is removed from tests for inets, replaced with peerhttpd_bench_SUITE
is passing again with HTTP and HTTPS casesCosmetic update for
httpd_bench_SUITE
The suite takes 58 seconds on my laptop (including nginx case) all cases run and succeed.
Not tested with cross-server benchmark where test peer starts elsewhere, it is controlled by an ENV option, but maybe it is not necessary if we enable it in all test runs?