From b44f80163ac46e9d6c02ea0e9c385f9f9b5b9e48 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 21 Sep 2023 13:14:51 +0100 Subject: [PATCH] Reduce the swarm minions count Newer coverage library versions consume more memory and this will avoid consuming it all and not finishing the test suite. Signed-off-by: Pedro Algarvio --- tests/pytests/scenarios/swarm/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pytests/scenarios/swarm/conftest.py b/tests/pytests/scenarios/swarm/conftest.py index 95a4fe58a35..8147eb8049d 100644 --- a/tests/pytests/scenarios/swarm/conftest.py +++ b/tests/pytests/scenarios/swarm/conftest.py @@ -41,7 +41,7 @@ def salt_cli(salt_master): @pytest.fixture(scope="package") def minion_count(): # Allow this to be changed via an environment variable if needed - return int(os.environ.get("SALT_CI_MINION_SWARM_COUNT", 20)) + return int(os.environ.get("SALT_CI_MINION_SWARM_COUNT", 15)) @pytest.fixture(scope="package") @@ -53,7 +53,7 @@ def minion_swarm(salt_master, minion_count): with ExitStack() as stack: for idx in range(minion_count): minion_factory = salt_master.salt_minion_daemon( - random_string("swarm-minion-{}-".format(idx)), + random_string(f"swarm-minion-{idx}-"), extra_cli_arguments_after_first_start_failure=["--log-level=info"], ) stack.enter_context(minion_factory.started())