From 3504bea3bb0201a5d057e8e04b2945e823bcb0b0 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Sun, 6 Oct 2024 15:11:04 +0100 Subject: [PATCH] tests: Ignore inventory files of inactive tests & benchmarks These targets are not used by any active tests, and the large numbers of hosts multiply the size of the taskvars disctionary in memory to many (10s) MiB. refs #1058 --- docs/changelog.rst | 1 + tests/ansible/ansible.cfg | 1 + tests/ansible/hosts/{k3.hosts => k3.hosts.disabled} | 0 .../ansible/hosts/{localhost.hosts => localhost.hosts.disabled} | 0 .../hosts/{osa-containers => osa-containers.hosts.disabled} | 0 5 files changed, 2 insertions(+) rename tests/ansible/hosts/{k3.hosts => k3.hosts.disabled} (100%) rename tests/ansible/hosts/{localhost.hosts => localhost.hosts.disabled} (100%) rename tests/ansible/hosts/{osa-containers => osa-containers.hosts.disabled} (100%) diff --git a/docs/changelog.rst b/docs/changelog.rst index 8fe7d16c..5d0d3ead 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -24,6 +24,7 @@ Unreleased * :gh:issue:`1106` :mod:`ansible_mitogen`: Support for `ansible_ssh_password` connection variable, and templated SSH connection password. * :gh:issue:`1136` tests: Improve Ansible fail_msg formatting. +* :gh:issue:`1137` tests: Ignore inventory files of inactive tests & benchmarks v0.3.11 (2024-10-30) diff --git a/tests/ansible/ansible.cfg b/tests/ansible/ansible.cfg index 537b5059..37edfd94 100644 --- a/tests/ansible/ansible.cfg +++ b/tests/ansible/ansible.cfg @@ -48,6 +48,7 @@ host_key_checking = False [inventory] any_unparsed_is_failed = true host_pattern_mismatch = error +ignore_extensions = ~, .bak, .disabled [callback_profile_tasks] task_output_limit = 10 diff --git a/tests/ansible/hosts/k3.hosts b/tests/ansible/hosts/k3.hosts.disabled similarity index 100% rename from tests/ansible/hosts/k3.hosts rename to tests/ansible/hosts/k3.hosts.disabled diff --git a/tests/ansible/hosts/localhost.hosts b/tests/ansible/hosts/localhost.hosts.disabled similarity index 100% rename from tests/ansible/hosts/localhost.hosts rename to tests/ansible/hosts/localhost.hosts.disabled diff --git a/tests/ansible/hosts/osa-containers b/tests/ansible/hosts/osa-containers.hosts.disabled similarity index 100% rename from tests/ansible/hosts/osa-containers rename to tests/ansible/hosts/osa-containers.hosts.disabled