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 <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-09-21 13:14:51 +01:00 committed by Pedro Algarvio
parent d53eff39fd
commit b44f80163a

View file

@ -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())