Skip to content

Conversation

kvakvs
Copy link
Collaborator

@kvakvs kvakvs commented Jul 30, 2025

Inets

Summary of changes

slave is removed from tests for inets, replaced with peer
httpd_bench_SUITE is passing again with HTTP and HTTPS cases
Cosmetic 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?

@kvakvs kvakvs added the testing currently being tested, tag is used by OTP internal CI label Jul 30, 2025
Copy link
Contributor

github-actions bot commented Jul 30, 2025

CT Test Results

  2 files   23 suites   9m 37s ⏱️
365 tests 359 ✅  6 💤 0 ❌
718 runs  635 ✅ 83 💤 0 ❌

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

@kvakvs kvakvs force-pushed the eimytdl/slave-to-peer-inets/OTP-19717 branch from 93cddfa to 3fb955b Compare August 1, 2025 23:36
@dgud dgud added the team:VM Assigned to OTP team VM label Aug 4, 2025
@kvakvs kvakvs changed the title Slave module deprecation: Replace slave to follower in code and comments [inets] Slave module deprecation: Replace slave to follower in code and comments Aug 4, 2025
@kvakvs kvakvs added team:PS Assigned to OTP team PS and removed team:VM Assigned to OTP team VM labels Aug 6, 2025
@IngelaAndin
Copy link
Contributor

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.

@kvakvs kvakvs removed the testing currently being tested, tag is used by OTP internal CI label Aug 13, 2025
@@ -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
Copy link
Contributor

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.

@IngelaAndin
Copy link
Contributor

@kvakvs You removed to much. The httpd_bench_SUITE actually does not use legacy load tests and should not be removed.

@kvakvs kvakvs force-pushed the eimytdl/slave-to-peer-inets/OTP-19717 branch from 610a145 to c3531c7 Compare September 4, 2025 11:36
@IngelaAndin IngelaAndin changed the title [inets] Slave module deprecation: Replace slave to follower in code and comments [inets] Slave module deprecation: Replace slave with peer in code and comments Sep 4, 2025
@kvakvs kvakvs force-pushed the eimytdl/slave-to-peer-inets/OTP-19717 branch from 18fca69 to 33bfdbc Compare September 4, 2025 11:48
@kvakvs kvakvs force-pushed the eimytdl/slave-to-peer-inets/OTP-19717 branch from 33bfdbc to 8c92c17 Compare September 4, 2025 12:23
{http_headers, [{"connection", "close"}]},
{http_opts,[{version, Version}]},
{httpc_opts, [{keep_alive_timeout, 0}, {max_keep_alive_length, 0}]}
| Config]);
Copy link
Contributor

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).

Copy link
Collaborator Author

@kvakvs kvakvs Sep 7, 2025

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

For the record: @jhogberg said he could help, and @Whaileee already had a script to help you with this. So I this should be solved now.

@kvakvs kvakvs added the testing currently being tested, tag is used by OTP internal CI label Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants