From baa45d044cea583fd4bec38ab05ee21d8501b054 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 06:49:55 +0100 Subject: [PATCH] [PR #8148/609f28f7 backport][stable-8] snap: disable some tests that take way too long (#8150) snap: disable some tests that take way too long (#8148) * Do not install microk8s in snap tests, as it is too slow. * Do not install cider in snap tests, as it is slow. (cherry picked from commit 609f28f791eb516b72fcb64c29b3b946dc295f01) Co-authored-by: Felix Fontein --- tests/integration/targets/snap/tasks/main.yml | 10 ++++++---- tests/integration/targets/snap/tasks/test_channel.yml | 2 ++ .../integration/targets/snap/tasks/test_dangerous.yml | 2 ++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/integration/targets/snap/tasks/main.yml b/tests/integration/targets/snap/tasks/main.yml index e96fbde38b..2a683617ae 100644 --- a/tests/integration/targets/snap/tasks/main.yml +++ b/tests/integration/targets/snap/tasks/main.yml @@ -13,10 +13,12 @@ block: - name: Include test ansible.builtin.include_tasks: test.yml - - name: Include test_channel - ansible.builtin.include_tasks: test_channel.yml - - name: Include test_dangerous - ansible.builtin.include_tasks: test_dangerous.yml + # TODO: Find better package to install from a channel - microk8s installation takes multiple minutes, and even removal takes one minute! + # - name: Include test_channel + # ansible.builtin.include_tasks: test_channel.yml + # TODO: Find bettter package to download and install from sources - cider 1.6.0 takes over 35 seconds to install + # - name: Include test_dangerous + # ansible.builtin.include_tasks: test_dangerous.yml - name: Include test_3dash ansible.builtin.include_tasks: test_3dash.yml - name: Include test_empty_list diff --git a/tests/integration/targets/snap/tasks/test_channel.yml b/tests/integration/targets/snap/tasks/test_channel.yml index 63c1d104f9..e9eb19c897 100644 --- a/tests/integration/targets/snap/tasks/test_channel.yml +++ b/tests/integration/targets/snap/tasks/test_channel.yml @@ -3,6 +3,8 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later +# NOTE This is currently disabled for performance reasons! + - name: Make sure package is not installed (microk8s) community.general.snap: name: microk8s diff --git a/tests/integration/targets/snap/tasks/test_dangerous.yml b/tests/integration/targets/snap/tasks/test_dangerous.yml index 4de6d4e402..8fe4edee0b 100644 --- a/tests/integration/targets/snap/tasks/test_dangerous.yml +++ b/tests/integration/targets/snap/tasks/test_dangerous.yml @@ -3,6 +3,8 @@ # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) # SPDX-License-Identifier: GPL-3.0-or-later +# NOTE This is currently disabled for performance reasons! + - name: Make sure package is not installed (cider) community.general.snap: name: cider