From 6685d626d93b26da0336486c9182de34c3b98dee Mon Sep 17 00:00:00 2001 From: s-hertel <19572925+s-hertel@users.noreply.github.com> Date: Wed, 13 Nov 2024 11:47:48 -0500 Subject: [PATCH] improve ansible-galaxy-collection test failure logs for CI add the never/retry/ test alias since it doesn't fully clean up after itself, and the previous attempt is usually the cause of failure for the retry rather than adding anything informative convert the integration test role to a runme.sh test and run the test with minimum verbosity -vvvv --- test/integration/targets/ansible-galaxy-collection/aliases | 2 ++ test/integration/targets/ansible-galaxy-collection/runme.sh | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100755 test/integration/targets/ansible-galaxy-collection/runme.sh diff --git a/test/integration/targets/ansible-galaxy-collection/aliases b/test/integration/targets/ansible-galaxy-collection/aliases index 6c57208aec6..79d988f4755 100644 --- a/test/integration/targets/ansible-galaxy-collection/aliases +++ b/test/integration/targets/ansible-galaxy-collection/aliases @@ -2,3 +2,5 @@ shippable/galaxy/group1 shippable/galaxy/smoketest cloud/galaxy context/controller +# TODO: remove once the test cleans up between failures reliably and delete the runme.sh +never/retry/ diff --git a/test/integration/targets/ansible-galaxy-collection/runme.sh b/test/integration/targets/ansible-galaxy-collection/runme.sh new file mode 100755 index 00000000000..0cbe47fce45 --- /dev/null +++ b/test/integration/targets/ansible-galaxy-collection/runme.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -eux + +# running the test with -vvvv by default since it is not retried +ansible -i ../../inventory -m include_role -a "name=../../ansible-galaxy-collection/" -vvvv "$@" all