You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the close to 1600 tests in the test suite takes a long time and slows developer productivity. This issue will consolidate efforts to speed up running tests, primarily by allowing them to run in parallel. The roadmap will be along this design proposal.
Reacted by Marcel Raad, Kamil Dudka, Daniel Stenberg, Marcus and Max Dymond
I like the idea! Did you consider also running multiple HTTP(S) servers in parallel? It is probably not something to begin with. On the other hand, it would be good to design the solution in a way that such an extension could be introduced in the future. Some users build (lib)curl with a configuration where HTTPS is the only enabled protocol and they would not gain anything if the parallelization used a single server instance for each protocol.
I think the individual "runners" should be able to run all test servers, which should make it possible to run all runtests test cases in parallel. HTTP and HTTPS are two of the most tested protocols so it is important that they can be highly parallelized.
Daniel's explanation is right. My design will see many copies (possibly
O(hundreds)) of the business end of runtests.pl running, each one starting
whatever servers are necessary to execute perhaps a couple of dozen tests. If
each test runner ends up being given one HTTPS test among its dozen, then each
runner will start its own copy of an HTTPS server. With some intelligence, I
hope to avoid that by passing HTTPS tests to runners that are specializing in
HTTPS and FTP test to runners specializing in FTP so avoid the inefficiencies
of starting too many of the same kind of server.
When I first looked at this problem last decade, I prototyped a simpler
solution that allowed running tests of different protocols only in parallel,
which only had one server of each type running globally. But, since 55% of
tests are for HTTP/HTTPS, that solution could never drop the testing time even
in half so I didn't pursue it.
Activity
kdudka commentedon Mar 23, 2023
I like the idea! Did you consider also running multiple HTTP(S) servers in parallel? It is probably not something to begin with. On the other hand, it would be good to design the solution in a way that such an extension could be introduced in the future. Some users build (lib)curl with a configuration where HTTPS is the only enabled protocol and they would not gain anything if the parallelization used a single server instance for each protocol.
bagder commentedon Mar 23, 2023
I think the individual "runners" should be able to run all test servers, which should make it possible to run all runtests test cases in parallel. HTTP and HTTPS are two of the most tested protocols so it is important that they can be highly parallelized.
dfandrich commentedon Mar 23, 2023
286 remaining items
runtests: refactor into more packages
runtests: simplify value returned regarding use of valgrind
runtests: track only the current test timings in runner.pm
runtests: refactor the main test loop into two
devtest: add a new script for testing the test harness
runtests: turn a print into a logmsg
runtests: display logs on server failure in singletest()
runtests: create runner functions for clearlocks and stopservers
runtests: more consistently use logmsg in server control code
runtests: support buffering log messages in runner & servers
runtests: use a function to obtain $LOGDIR for a test
runtests: reduce package exports after refactoring
runtests: remove directory from server filename variables
runtests: add a runner initialization function
runtests: call citest_finishtest in singletest