mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 12:17:02 +00:00
This mini series purpose is to move all tests (that uses the infrastructure to create a Scylla cluster) to shut down gracefully on shutdown. One benefit is that the shutdown sequence for cluster will be tested better, however it is not the main purpose of this change. The main purpose of this change is to pave the way for coverage reporting on all tests and not only the ones that has a standalone executables. Full test runs are only slightly impacted by this change (~2.4% increase in runtime): Without gracefull shutdown ``` time ./test.py --mode dev Found 2966 tests. ================================================================================ [N/TOTAL] SUITE MODE RESULT TEST ------------------------------------------------------------------------------ [2966/2966] topology_experimental_raft dev [ PASS ] topology_experimental_raft.test_raft_cluster_features.1 ------------------------------------------------------------------------------ CPU utilization: 13.1% real 4m50.587s user 13m58.358s sys 6m55.975s ``` With gracefull shutdown ``` time ./test.py --mode dev Found 2966 tests. ================================================================================ [N/TOTAL] SUITE MODE RESULT TEST ------------------------------------------------------------------------------ [2966/2966] topology_experimental_raft dev [ PASS ] topology_experimental_raft.test_raft_cluster_features.1 ------------------------------------------------------------------------------ CPU utilization: 12.6% real 4m57.637s user 13m56.864s sys 6m46.657s ``` Closes scylladb/scylladb#15851 * github.com:scylladb/scylladb: test.py: move to a gracefull temination of nodes on teardown test.py: Use stop lock also in the graceful version